{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SupportTicket",
  "title": "SupportTicket",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "The unique ID of this ticket."
    },
    "summary": {
      "type": "string",
      "description": "The summary of this ticket."
    },
    "description": {
      "type": "string",
      "description": "The full description of this ticket."
    },
    "status": {
      "type": "string",
      "enum": [
        "closed",
        "new",
        "open"
      ],
      "description": "The status of this ticket."
    },
    "opened": {
      "type": "string",
      "format": "date-time",
      "description": "When this ticket was opened."
    },
    "closed": {
      "type": "string",
      "format": "date-time",
      "description": "When this ticket was closed."
    },
    "updated": {
      "type": "string",
      "format": "date-time",
      "description": "When this ticket was last updated."
    },
    "entity": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "label": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "description": "The entity related to this ticket."
    }
  }
}