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 an array of unique JSON values Hint: Use the jsonschema metaschema and jsonschema lint commands to catch keywords set to invalid values
Kind Assertion
Applies To Any
Base Dialect 2019-09
Changed In None
Introduced In Draft 1
Vocabulary Validation
Specification https://json-schema.org/draft/2019-09/draft-handrews-json-schema-validation-02#rfc.section.6.1.2
Metaschema https://json-schema.org/draft/2019-09/meta/validation
Official Tests draft2019-09/enum.json
Default None
Annotation None
Affected By None
Affects None
Also See