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 678570a commit b749e37Copy full SHA for b749e37
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