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