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.
Kind | Assertion |
---|---|
Applies To | Any |
Dialect | 2020-12 |
Introduced In | Draft 1 |
Vocabulary | Validation |
Specification | https://json-schema.org/draft/2020-12/json-schema-validation.html#section-6.1.1 |
Metaschema | https://json-schema.org/draft/2020-12/meta/validation |
The supported types are:
"null"
"boolean"
"object"
"array"
"number"
"integer"
"string"