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
When validating arrays and an items schema is specified in the form of array of schemas, validation fails if the validated array contains less items than specified by items. This is not compliant with JSON Schema: items and additionalItems spec . In section 5.3.1.3. Example, the spec clearly indicates that arrays with fewer items than specified by the items array in the schema are valid.
Example:
varschema={type: 'array',items: [{type: 'string'},{type: 'integer'}]};validator(schema).validate([]);// throws, in conflict with the JSON Schema spec
The text was updated successfully, but these errors were encountered:
When validating arrays and an
items
schema is specified in the form of array of schemas, validation fails if the validated array contains less items than specified byitems
. This is not compliant with JSON Schema: items and additionalItems spec . In section 5.3.1.3. Example, the spec clearly indicates that arrays with fewer items than specified by theitems
array in the schema are valid.Example:
The text was updated successfully, but these errors were encountered: