contains : Schema
contains
SchemaValidation succeeds if the instance contains an element that validates against this schema.
Kind | Applicator Annotation |
---|---|
Applies To | Array |
Dialect | 2020-12 |
Introduced In | Draft 6 |
Vocabulary | Applicator |
Specification | https://json-schema.org/draft/2020-12/json-schema-core.html#section-10.3.1.3 |
Metaschema | https://json-schema.org/draft/2020-12/meta/applicator |
Affected By |
|
Also see |
|
Annotations
This keyword produces an annotation value which is an array of the indexes to which this keyword validates successfully when applying its subschema, in ascending order. The value is the empty array if the instance is empty. The value MAY be a boolean “true” if the subschema validates successfully when applied to every index of the instance.