Closed emil-rb closed 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.
SchemaParseError
JSON::Schema
JSON::Validator
See lib/json-schema/validator.rb, line 572 for the call site.
lib/json-schema/validator.rb
Thanks for reporting that, I've just raised a pull request to fix it.
Thanks for the quick action.
When one passes an object, instead of a valid schema to the library it throws
This seems to be because
SchemaParseError
is underJSON::Schema
, while the call site is inJSON::Validator
.See
lib/json-schema/validator.rb
, line 572 for the call site.