Skip to content

Commit ce22eb5

Browse files
committed
Pass the propertyNames test properly now.
1 parent 50d99e4 commit ce22eb5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jsonschema/_validators.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ def patternProperties(validator, patternProperties, instance, schema):
1919

2020

2121
def propertyNames(validator, propertyNames, instance, schema):
22+
if not validator.is_type(instance, "object"):
23+
return
24+
2225
for property in instance:
2326
for error in validator.descend(
2427
instance=property,

0 commit comments

Comments
 (0)