You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The meta-schema limits "schemaArray" to have a minimum of 1 element. This applies to "items", "allOf", "anyOf", and "oneOf". However, the specification does not limit to a 1 element minimum. Either the spec should change or the meta-schemas should change.
Update: I'm wrong about "allOf", "anyOf", and "oneOf". The spec DOES say these must be non-empty. Only "items" doesn't appear to specify a minimum size in the spec.
The text was updated successfully, but these errors were encountered:
I lean towards the schema being more correct here, as it is not useful to have a zero-element schema array. I agree that the spec should explicitly state all restrictions that the schema chooses to enforce. (The reverse is not always possible, e.g. that certain URIs must be normalized.)
I'm so wrong about "allOf", "anyOf", and "oneOf". The spec DOES say those arrays must be non-empty. (What was I thinking?) Only "items" seems to disagree.
ssilverman
changed the title
Spec disagrees with meta-schema for arrays-of-schema keywords
Spec disagrees with meta-schema for "items" minimum size
Jun 22, 2020
The meta-schema limits "schemaArray" to have a minimum of 1 element. This applies to "items", "allOf", "anyOf", and "oneOf". However, the specification does not limit to a 1 element minimum. Either the spec should change or the meta-schemas should change.
Update: I'm wrong about "allOf", "anyOf", and "oneOf". The spec DOES say these must be non-empty. Only "items" doesn't appear to specify a minimum size in the spec.
The text was updated successfully, but these errors were encountered: