Skip to content

Commit 8454546

Browse files
authored
Bugfix for validating "class" field. (#61)
1 parent 01dd303 commit 8454546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schema_salad/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def validate_ex(expected_schema, datum, identifiers=None, strict=False,
204204
raise ValidationException(u"Missing 'class' field")
205205
else:
206206
return False
207-
if not validate_ex(f.type, d, identifiers, strict=strict, foreign_properties=foreign_properties, raise_ex=raise_ex):
207+
if expected_schema.name != d:
208208
return False
209209
classmatch = d
210210
break

0 commit comments

Comments
 (0)