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, a non-empty array of unique strings that correspond to one of the supported types, or the value any . If the keyword is not defined or the value is not in the list of supported types, any type of value is acceptable.
|
---|---|
Kind | Assertion |
Applies To | Any |
Dialect | Draft 3 |
Changed In | Draft 4 |
Introduced In | Draft 1 |
Vocabulary | Core |
Specification | https://json-schema.org/draft-03/draft-zyp-json-schema-03.pdf#5.1 |
Metaschema | http://json-schema.org/draft-03/schema# |
Official Tests | draft3/type.json |
Default |
[ "null", "boolean", "object", "array", "number", "string", "any"]
|
Annotation | None |
Affected By | None |
Affects | None |