voxpupuli / json-schema

Ruby JSON Schema Validator
MIT License
1.53k stars 242 forks source link

Made sure we include the module name for SchemaParseErrors #293

Closed iainbeeston closed 8 years ago

iainbeeston commented 8 years ago

If you pass an unrecognized object for the schema, we should be raising a SchemaParseError, however instead right now a NameError is raised, beacuse we're not correctly qualifying the error class with it's module.

I've corrected the class/module name and added tests.

This fixes #292

RST-J commented 8 years ago

:+1:

iainbeeston commented 8 years ago

@davidnquach Sorry for the delay, but I've released this fix now as 2.6.1