{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-secure-firewall/json-schema/cisco-secure-firewall-ticket-schema.json",
  "title": "Ticket",
  "description": "Contains the change management ticket data.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-secure-firewall-change-management-api-openapi.yml#/components/schemas/Ticket",
  "properties": {
    "assignedTo": {
      "description": "Owner of the ticket",
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "id": {
      "description": "Unique identifier representing response object",
      "type": "string"
    },
    "links": {
      "$ref": "#/$defs/ILinks",
      "type": "object"
    },
    "metadata": {
      "$ref": "#/$defs/IMetadata",
      "description": "Contains the metadata properties of the ticket.",
      "type": "object"
    },
    "name": {
      "description": "User-provided name of the ticket.",
      "type": "string"
    },
    "stateChangeDescription": {
      "type": "string"
    },
    "status": {
      "description": "Ticket status. Possible values are NEW, IN_PROGRESS, PENDING_APPROVAL, APPROVED, REJECTED, DISCARD.",
      "enum": [
        "PENDING_APPROVAL",
        "NEW",
        "APPROVED",
        "DISCARD",
        "IN_PROGRESS",
        "TAKEOVER_TICKET",
        "ON_HOLD",
        "REJECTED"
      ],
      "type": "string"
    },
    "ticketHistory": {
      "description": "Contains history of the change management ticket.",
      "items": {
        "$ref": "#/$defs/ITicketHistory",
        "type": "object"
      },
      "type": "array"
    },
    "type": {
      "description": "Type associated with resource: Ticket",
      "type": "string"
    },
    "uuid": {
      "type": "string"
    },
    "version": {
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "IDomain": {
      "properties": {
        "id": {
          "type": "string"
        },
        "links": {
          "$ref": "#/$defs/ILinks",
          "type": "object"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "ILinks": {
      "description": "This defines the self referencing links for the given resource.",
      "properties": {
        "parent": {
          "description": "Full resource URL path to reference the parent (if any) for this resource.",
          "type": "string"
        },
        "self": {
          "description": "Full resource URL path to reference this particular resource.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "IMetadata": {
      "properties": {
        "domain": {
          "$ref": "#/$defs/IDomain",
          "type": "object"
        },
        "isLocked": {
          "type": "boolean"
        },
        "lastUser": {
          "$ref": "#/$defs/IMetadataUser",
          "type": "object"
        },
        "matches": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "readOnly": {
          "$ref": "#/$defs/IReadonly",
          "type": "object"
        },
        "timestamp": {
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "IMetadataUser": {
      "properties": {
        "id": {
          "type": "string"
        },
        "links": {
          "$ref": "#/$defs/ILinks",
          "type": "object"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "IReadonly": {
      "properties": {
        "reason": {
          "enum": [
            "RBAC",
            "SYSTEM",
            "DOMAIN"
          ],
          "type": "string"
        },
        "state": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "ITicketHistory": {
      "description": "Contains history of the change management ticket.",
      "properties": {
        "comment": {
          "type": "string"
        },
        "state": {
          "description": "State of Ticket.",
          "enum": [
            "PENDING_APPROVAL",
            "NEW",
            "APPROVED",
            "DISCARD",
            "IN_PROGRESS",
            "TAKEOVER_TICKET",
            "ON_HOLD",
            "REJECTED"
          ],
          "type": "string"
        },
        "time": {
          "description": "The date and time at which the state change occurred.",
          "type": "string"
        },
        "user": {
          "description": "User who initiated state change.",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}