You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 fixesvoxpupuli#292
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.The text was updated successfully, but these errors were encountered: