When trying to build a schema it was common to get into SchemaError: Schema structure is invalid..
This happened because the validation engine was expecting a dict (and actually checking the type) and was getting something else.
This pull request addresses this by changing the exception message to a more descriptive one and adds a test to make sure that the message is correctly generated.
When trying to build a schema it was common to get into
SchemaError: Schema structure is invalid.
.This happened because the validation engine was expecting a
dict
(and actually checking the type) and was getting something else.This pull request addresses this by changing the exception message to a more descriptive one and adds a test to make sure that the message is correctly generated.
All other tests continue to pass.