voxpupuli / json-schema

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

NameError: uninitialized constant JSON::Validator::SchemaParseError #292

Closed emil-rb closed 8 years ago

emil-rb commented 8 years ago

When one passes an object, instead of a valid schema to the library it throws

NameError:
       uninitialized constant JSON::Validator::SchemaParseError

This seems to be because SchemaParseError is under JSON::Schema, while the call site is in JSON::Validator.

See lib/json-schema/validator.rb, line 572 for the call site.

iainbeeston commented 8 years ago

Thanks for reporting that, I've just raised a pull request to fix it.

emil-rb commented 8 years ago

Thanks for the quick action.