enum : Array<Any>
enum
Array<Any>Validation succeeds if the instance is equal to one of the elements in this keyword’s array value.
Value | This keyword must be set to a non-empty array of unique JSON values |
---|---|
Kind | Assertion |
Applies To | Any |
Dialect | Draft 6 |
Changed In | None |
Introduced In | Draft 1 |
Vocabulary | Validation |
Specification | https://json-schema.org/draft-06/draft-wright-json-schema-validation-01#rfc.section.6.23 |
Metaschema | http://json-schema.org/draft-06/schema# |
Official Tests | draft6/enum.json |
Default | None |
Annotation | None |
Affected By | None |
Affects | None |
Also See |
|