Skip to main content

EnumValidator

A schema specifying that a node must be one of several values.

Properties#

Name@idTypeDescriptionInherited from
typeschema:type'EnumValidator'The name of the type.Entity
idschema:idstringThe identifier for this item.Entity
metastencila:metaobjectMetadata associated with this item.Entity
valuesstencila:valuesArray of NodeA node is valid if it is equal to any of these values.EnumValidator

Related#

Notes#

  1. Analogous to the JSON Schema enum keyword.
  2. Available as JSON-LD.
  3. Available as JSON Schema.
  4. This documentation was generated from EnumValidator.schema.yaml.