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 50d99e4 commit ce22eb5Copy full SHA for ce22eb5
1 file changed
jsonschema/_validators.py
@@ -19,6 +19,9 @@ def patternProperties(validator, patternProperties, instance, schema):
19
20
21
def propertyNames(validator, propertyNames, instance, schema):
22
+ if not validator.is_type(instance, "object"):
23
+ return
24
+
25
for property in instance:
26
for error in validator.descend(
27
instance=property,
0 commit comments