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
Omitted prefixItems
vs empty
#1480
Comments
I suppose this is straightforward enough I'll fix & PR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The spec says of
prefixItems
:Then ends with:
Specifying that an omitted
prefixItems
behaves the same as a value that it must not be looks wrong. Comparing toallOf
/anyOf
/oneOf
which also must be non-empty arrays of schemas, they omit the sentence about omitting the keyword.I'm not sure why any of these must be non-empty - sure, when empty they end up either just allowing everything (
prefixItems
,allOf
) or nothing (anyOf
,oneOf
), but plenty of other keywords allow similar degenerate cases, e.g.minItems
may be 0 allowing everything andenum
may be empty allowing nothing. That's just an observation, not a battle I am itching to take on, and I'm sure it's all been discussed before.Related: #975 / #1001
The text was updated successfully, but these errors were encountered: