sunlightlabs/validictory — pull request #28 by alfredodeza (2012-05-29 14:48:22+00:00)
Title: Schema structure error message

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.