Skip to content
New issue

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

Unable to Validate v4 Schema File #57

Closed
matt-glover opened this issue Jun 25, 2013 · 2 comments
Closed

Unable to Validate v4 Schema File #57

matt-glover opened this issue Jun 25, 2013 · 2 comments

Comments

@matt-glover
Copy link

When I attempt to validate against a draft v4 schema using JSON::Validator.fully_validate_schema(schema_path, version: :draft4) I receive error messages similar to the following:

The property '#/properties/data/required' of type Array did not match the following type: boolean in schema http://json-schema.org/draft-03/schema#"

I see the same issue without specifying the draft version

Seems like the draft v4 schema JSON resource is a copy of the v3 schema file with some whitespace changes.

Validating an actual JSON document using my v4 schema seems to work without issue.

@hoxworth
Copy link
Contributor

Thanks - apparently was trying to rush that. Fixed this and added tests for draft3/draft4 validation. Released a new 2.0.1 gem that should resolve this issue.

@matt-glover
Copy link
Author

Works great. Thanks for the quick turnaround!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants