Skip to content

Commit

Permalink
Bugfix for validating "class" field. (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
tetron committed Oct 5, 2016
1 parent 01dd303 commit 8454546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema_salad/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def validate_ex(expected_schema, datum, identifiers=None, strict=False,
raise ValidationException(u"Missing 'class' field")
else:
return False
if not validate_ex(f.type, d, identifiers, strict=strict, foreign_properties=foreign_properties, raise_ex=raise_ex):
if expected_schema.name != d:
return False
classmatch = d
break
Expand Down

0 comments on commit 8454546

Please sign in to comment.