items : Schema | Array<Schema>
items
Schema | Array<Schema>If set to a schema, validation succeeds if each element of the instance validates against it, otherwise validation succeeds if each element of the instance validates against the schema at the same position, if any
Value | This keyword must be set to a valid JSON Schema or to a non-empty array, where each item is a valid JSON Schema |
---|---|
Kind | Applicator Annotation |
Applies To | Array |
Dialect | 2019-09 |
Changed In | Draft 6 |
Introduced In | Draft 1 |
Vocabulary | Applicator |
Specification | https://json-schema.org/draft/2019-09/draft-handrews-json-schema-02#rfc.section.9.3.1.1 |
Metaschema | https://json-schema.org/draft/2019-09/meta/applicator |
Official Tests | draft2019-09/items.json |
Default |
{}
|
Annotation | Number Boolean If set to a schema, a boolean true if it applied to any item of the instance, otherwise the largest index to which this keyword applied its subschema, or a boolean true if it was applied to every item of the instance |
Affected By |
|
Affects |
|
Also See |
|