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 611b468 commit 4e1bd0bCopy full SHA for 4e1bd0b
scim2_tester/filling.py
@@ -76,17 +76,11 @@ def generate_random_value(
76
77
is_email = urn and (
78
urn.endswith("emails.value")
79
- or (
80
- field_name == "value"
81
- and (field_type and "email" in field_type.__name__.lower())
82
- )
+ or (field_name == "value" and "email" in model.__name__.lower())
83
)
84
is_phone = urn and (
85
urn.endswith("phoneNumbers.value")
86
87
88
- and (field_type and "phone" in field_type.__name__.lower())
89
+ or (field_name == "value" and "phone" in model.__name__.lower())
90
91
92
value: Any
0 commit comments