-
Notifications
You must be signed in to change notification settings - Fork 398
required with empty array causes validation failure #231
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
Comments
My guess is that this changed in newer drafts, you can see in the change log:
I'd hesitate to adjust this for clients with Draft4 conformance, but I'd love to support newer versions of json-schema draft and am happy to accept PR's. |
yes this is the correct behaviour for v4 |
would love to get a pull request for v5 (and give the author push/owner access to the project). |
hi, this will be OK |
I am stuck in this same issue, not able to get through this. |
using: json-schema-validator "2.2.6"
with this schema
I'm getting the following error:
in which it seems to consider invalid
"required": []
while the specifications seems to suggest that this is a valid combination:http://json-schema.org/latest/json-schema-validation.html#rfc.section.6.17
The text was updated successfully, but these errors were encountered: