oneOf : Array<Schema>
oneOf
Array<Schema>An instance validates successfully against this keyword if it validates successfully against exactly one schema defined by this keyword’s value.
Value | This keyword must be set to a non-empty array, where each item is a valid JSON Schema |
---|---|
Kind | Applicator |
Applies To | Any |
Dialect | Draft 6 |
Changed In | None |
Introduced In | Draft 4 |
Vocabulary | Validation |
Specification | https://json-schema.org/draft-06/draft-wright-json-schema-validation-01#rfc.section.6.28 |
Metaschema | http://json-schema.org/draft-06/schema# |
Official Tests | draft6/oneOf.json |
Default |
As if it was set to the (invalid) value:
[]
|
Annotation | None |
Affected By | None |
Affects | None |
Also See |
|