{
  "title": "EnumValidator",
  "@id": "stencila:EnumValidator",
  "extends": "Validator",
  "role": "validation",
  "status": "unstable",
  "category": "data",
  "description": "A schema specifying that a node must be one of several values.",
  "$comment": "Analogous to the JSON Schema [`enum` keyword](https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.6.1.2).",
  "properties": {
    "type": {
      "@id": "schema:type",
      "description": "The name of the type.",
      "type": "string",
      "enum": [
        "EnumValidator"
      ],
      "default": "EnumValidator",
      "from": "Entity"
    },
    "id": {
      "@id": "schema:id",
      "description": "The identifier for this item.",
      "type": "string",
      "from": "Entity"
    },
    "meta": {
      "@id": "stencila:meta",
      "description": "Metadata associated with this item.",
      "type": "object",
      "from": "Entity"
    },
    "values": {
      "@id": "stencila:values",
      "description": "A node is valid if it is equal to any of these values.",
      "type": "array",
      "items": {
        "$ref": "Node.schema.json"
      },
      "from": "EnumValidator",
      "isArray": true,
      "isPlural": true,
      "aliases": [
        "value"
      ]
    }
  },
  "file": "EnumValidator.schema.yaml",
  "children": [],
  "descendants": [],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schema.stenci.la/v1/EnumValidator.schema.json",
  "source": "https://github.com/stencila/schema/blob/master/schema/EnumValidator.schema.yaml",
  "type": "object",
  "propertyAliases": {
    "value": "values"
  },
  "additionalProperties": false,
  "required": [
    "type"
  ]
}
