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 7
Changed In None
Introduced In Draft 4
Vocabulary Validation
Specification https://json-schema.org/draft-07/draft-handrews-json-schema-validation-01#rfc.section.6.7.3
Metaschema http://json-schema.org/draft-07/schema#
Official Tests draft7/oneOf.json
Default As if it was set to the (invalid) value: []
Annotation None
Affected By None
Affects None
Also See