We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
user.json
{ "type": "object", "required": ["user"], "properties": { "user": { "allOf": [ { "type": "object", "properties": { "name": { "type": "string" } } }, { "type": "object", "properties": { "age": { "type": "integer" } } } ] } } }
Example:
require "json-schema" JSON::Validator.validate!("./user.json", user: { name: "Jhon", age: "1" })
Should raise an exception because the age is not an integer, but the current message is:
The property '#/user' of type object did not match all of the required schemas (JSON::Schema::ValidationError)
and should be an explicit messages like:
The property '#/user/age' of type string did not match the following type: integer (JSON::Schema::ValidationError)
The text was updated successfully, but these errors were encountered:
@MiguelSavignano I have tried addressing this above issue in this PR #495 Could you please check and help me get it merged.
Sorry, something went wrong.
Merge pull request #495 from anupama-kumari/ak_all_of_error_message
5dbb4df
Fix issue #474: handling all of error message
Successfully merging a pull request may close this issue.
user.json
Example:
Should raise an exception because the age is not an integer, but the current message is:
and should be an explicit messages like:
The text was updated successfully, but these errors were encountered: