jpmckinney / validictory

🎓 deprecated general purpose python data validator
Other
240 stars 57 forks source link

Schema structure error message #28

Closed alfredodeza closed 12 years ago

alfredodeza commented 12 years ago

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.