You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When additionalProperties is set to false, the ValidationError attributes don't contain the key of the attribute that violates the validation. For instance, if schema = {"foo": "string", "additionalProperties": false}, then instance = {"bar": 1, "foo": "1"} will raise the error, but there's no way of knowing that bar was the cause of it. Is there an alternative way of finding that out? We need it in order to be able to filter JSON messages according to the defined schema.
The text was updated successfully, but these errors were encountered:
When
additionalProperties
is set tofalse
, theValidationError
attributes don't contain the key of the attribute that violates the validation. For instance, ifschema = {"foo": "string", "additionalProperties": false}
, theninstance = {"bar": 1, "foo": "1"}
will raise the error, but there's no way of knowing thatbar
was the cause of it. Is there an alternative way of finding that out? We need it in order to be able to filter JSON messages according to the defined schema.The text was updated successfully, but these errors were encountered: