{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ExtensionStatusObject",
  "title": "ExtensionStatusObject",
  "type": "object",
  "required": [
    "state"
  ],
  "properties": {
    "extension": {
      "type": "string",
      "example": "407721",
      "description": "Unique extension which will be validated at the location level."
    },
    "state": {
      "type": "string",
      "enum": [
        "VALID",
        "DUPLICATE",
        "DUPLICATE_IN_LIST",
        "INVALID"
      ],
      "description": "State of the extension after it was validated.\n * `VALID` - Extension is valid.\n * `DUPLICATE` - Extension already assigned to another group.\n * `DUPLICATE_IN_LIST` - Extension already exists in the request body and was already verified.\n * `INVALID` - Extension is invalid.\n"
    },
    "errorCode": {
      "type": "number",
      "example": 9495,
      "description": "Error code of the state in case extension is not valid."
    },
    "message": {
      "type": "string",
      "example": "[Error 9495] The extension is not available. It is already assigned as a Call Park Extension: 407721.",
      "description": "Message assigned to the error code."
    }
  }
}