Closed
Description
I'm implementing the "items" annotations and had some questions:
- Is it correct to assume that when combining Boolean and numeric "items" annotations, we first
convert a "true" Boolean annotation value to the size of the array minus one? A "false" annotation value I think would convert to -1. - Why is the annotation the max. index as opposed to the number of items the schema was applied to? A count might be much clearer and avoid the weird potential "-1" interpretation above, for example, when an array-style "items" is applied to an empty array, or an empty array "items" is applied to any array.
- Am I correct in reading the annotation value as "max. index of application regardless of success" and not "max. index of successful validation"?
See: 9.3.1.1. items
Metadata
Metadata
Assignees
Labels
No labels