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

specification doesn't state if 'prefixItems' array can be empty #975

Closed
karenetheridge opened this issue Aug 28, 2020 · 4 comments · Fixed by #1001
Closed

specification doesn't state if 'prefixItems' array can be empty #975

karenetheridge opened this issue Aug 28, 2020 · 4 comments · Fixed by #1001

Comments

@karenetheridge
Copy link
Member

The metaschema (meta/applicator.json) specifies that prefixItems (formerly the array form of items) must have at least one element. However, the specification text does not explicitly state this. It does make this explicit for schema-array keywords such as allOf, e.g. "This keyword's value MUST be a non-empty array." so it should do so here as well.

@Relequestual
Copy link
Member

Agreed.

@Relequestual
Copy link
Member

Re-opening because I assume the meta-schema also needs to be updated, and I'm off to sleep now!

@Relequestual Relequestual reopened this Sep 28, 2020
@handrews
Copy link
Contributor

@Relequestual the meta-schema already required one element, we just needed to make the spec consistent.

@Relequestual
Copy link
Member

I could have, you know, checked... -_-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment