Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants