voxpupuli / json-schema

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

:errors_as_objects can never be false in base_schema.validate #392

Closed johngluckmdsol closed 6 years ago

johngluckmdsol commented 6 years ago

This means that the error message will always contain the UUID of the schema and not the uri.
That is because @base_schema.validate(@data,[],self,@validation_options)

uses @validation_options and those do not assign :error_as_objects so it will always be the default

Note: this is a problem when using fully_validate

johngluckmdsol commented 6 years ago

Misunderstanding

iainbeeston commented 6 years ago

Ok, closing this then