{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phone-com/json-schema/phone-com-menu-schema.json",
  "title": "Menu",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phone-com-menus-api-openapi.yml#/components/schemas/Menu",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 30,
      "description": "Menu Name"
    },
    "allow_extension_dial": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Determines whether a caller can enter an extension number to bypass the menu"
    },
    "keypress_wait_time": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "maximum": 5,
      "description": "Number of seconds to wait for the caller to choose a menu option. Must be between 1 and 5 seconds."
    },
    "greeting": {
      "description": "Greeting that is played when a caller enters a menu."
    },
    "keypress_error": {
      "description": "Message that is played when the caller makes a keypress error."
    },
    "timeout_handler": {
      "description": "Route that will be entered when the caller fails to choose a menu option within the allotted time."
    },
    "options": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "#",
              0,
              1,
              2,
              3,
              4,
              5,
              6,
              7,
              8,
              9
            ],
            "description": "Keypad key. Must equal a single digit or the pound sign ('#')."
          },
          "route": {
            "description": "Route which will be entered when the user presses the designated key"
          }
        },
        "required": [
          "key",
          "route"
        ]
      },
      "description": "Array of menu option objects."
    }
  },
  "required": [
    "name"
  ]
}