-
Notifications
You must be signed in to change notification settings - Fork 22
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
Support schema validation for root-level arrays #43
Comments
According to the meta schema, As a workaround you can define
|
no workaround needed |
Hi @netmilk. I've also experienced this issue and I don't think the workaround you suggest has the correct result. As seen in https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.5:
So you would end up validating each position in the array and not all possible items. |
🎉 This issue has been resolved in version 8.2.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Root-level arrays validation is supported by both explicit JSON Schema and implicit expected body. Please refer to the regression tests below for the example of usage. Using JSON SchemaUsing inferred schema from expected
|
See http://stackoverflow.com/questions/25027328/apiary-blueprint-markdown-for-an-array-response-body for issue description.
The text was updated successfully, but these errors were encountered: