type : String | Array<String>

type

String | Array<String>

Validation succeeds if the type of the instance matches the type represented by the given type, or matches at least one of the given types.

Value This keyword must be set to either a string that corresponds to one of the supported types, or a non-empty array of unique strings that correspond to one of the supported types
Kind Assertion
Applies To Any
Dialect 2019-09
Changed In Draft 4
Introduced In Draft 1
Vocabulary Validation
Specification https://json-schema.org/draft/2019-09/draft-handrews-json-schema-validation-02#rfc.section.6.1.1
Metaschema https://json-schema.org/draft/2019-09/meta/validation
Official Tests draft2019-09/type.json
Default [ "null", "boolean", "object", "array", "number", "string" ]
Annotation None
Affected By None
Affects None