{
  "$schema": "http://json-schema.org/draft-07/schema#",

  "$id": "https://amazonalexa.com/ask/2020/12/Module",

  "title": "Module",
  "description": "The schema for the Alexa Skills Kit (ASK) module document.",

  "type": "object",
  "additionalProperties": false,
  "required": ["schema", "expressions"],

  "properties": {
    "schema": {
      "title": "schema",
      "description": "The schema for the module file.",
      "type": "string",
      "format": "uri",
      "default": "https://amazonalexa.com/ask/2020/12/Module",
      "examples": ["https://amazonalexa.com/ask/2020/12/Module"]
    },

    "exports": {
      "title": "exports",
      "description": "The declared names that are visible outside this module.",

      "type": "array",
      "items": {
        "$ref": "https://amazonalexa.com/ask/2020/12/QualifiedName"
      }
    },

    "expressions": {
      "type": "array",
      "items": {
        "oneOf": [
          { "$ref": "https://amazonalexa.com/ask/2020/12/ActionDeclaration" },
          { "$ref": "https://amazonalexa.com/ask/2020/12/DialogDeclaration" },
          {
            "$ref": "https://amazonalexa.com/ask/2020/12/InteractionDeclaration"
          },
          { "$ref": "https://amazonalexa.com/ask/2020/12/EnumDeclaration" },
          {
            "$ref": "https://amazonalexa.com/ask/2020/12/QualifiedNameDeclaration"
          },
          { "$ref": "https://amazonalexa.com/ask/2020/12/TypeDeclaration" },
          { "$ref": "https://amazonalexa.com/ask/2020/12/Call" }
        ]
      }
    }
  }
}
