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

Validation of arrays according to inferred JSON Schema #91

Open
honzajavorek opened this issue Apr 19, 2017 · 3 comments
Open

Validation of arrays according to inferred JSON Schema #91

honzajavorek opened this issue Apr 19, 2017 · 3 comments

Comments

@honzajavorek
Copy link
Contributor

When validating according to a JSON example containing an array, the inferred schema correctly checks for array items, but Gavel gives an incorrect result. Read more in apiaryio/dredd#177 (comment). Possibly related to #43 as well.

@imissyouso
Copy link

Any updates here?

@honzajavorek
Copy link
Contributor Author

We did major refactoring of Gavel lately and @artem-zakharchenko was able to identify false-positive test in gavel-spec, which caused the array behavior wasn't correctly tested. We're still about to provide a fix, but if anyone wants to tackle this earlier, we're happy to provide some clues.

@artem-zakharchenko
Copy link
Contributor

Gavel 8.2.0 should now support validation of arrays based on the inferred JSON Schema.

Regression test: https://github.com/apiaryio/gavel.js/blob/03991995ce0018523170035a6a77afdc7eacb693/test/regression/json-inferred-array.test.js

@imissyouso, please, would you be able to verify that for your use case? Thanks.

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

No branches or pull requests

3 participants