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

implement $additionalItems #97

Open
yanick opened this issue Jul 23, 2020 · 0 comments
Open

implement $additionalItems #97

yanick opened this issue Jul 23, 2020 · 0 comments

Comments

@yanick
Copy link
Owner

yanick commented Jul 23, 2020

The additionalItems keyword controls whether it’s valid to have additional items in the array beyond what is defined in items. Here, we’ll reuse the example schema above, but set additionalItems to false, which has the effect of disallowing extra items in the array.

The additionalItems keyword may also be a schema to validate against every additional item in the array. In that case, we could say that additional items are allowed, as long as they are all strings:

https://json-schema.org/understanding-json-schema/reference/array.html?highlight=additionalitems

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

1 participant