We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 583bc45 commit 0f71f2fCopy full SHA for 0f71f2f
1 file changed
scim2_tester/filling.py
@@ -82,7 +82,7 @@ def generate_random_value(
82
elif field_type is bool:
83
value = random.choice([True, False])
84
85
- elif get_origin(field_type) is Reference:
+ elif get_origin(field_type) is Reference and get_args(field_type)[0] != Any:
86
ref_type = get_args(field_type)[0]
87
if ref_type not in (ExternalReference, URIReference):
88
model = model_from_ref_type(context, ref_type, different_than=obj.__class__)
0 commit comments