{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/JobDetail",
  "title": "JobDetail",
  "type": "object",
  "description": "Detailed representation of an execution job",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique job identifier",
      "example": "abc123"
    },
    "appId": {
      "type": "string",
      "description": "Workflow application ID",
      "example": "500123"
    },
    "createDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time the job was created",
      "example": "2026-01-15T10:30:00Z"
    },
    "status": {
      "type": "string",
      "description": "Current job status",
      "example": "example_value"
    },
    "disposition": {
      "type": "string",
      "description": "Final disposition of the job",
      "example": "example_value"
    },
    "outputs": {
      "type": "array",
      "description": "Output files generated by the job",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Output identifier"
          },
          "availableFormats": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Available download formats"
          },
          "fileName": {
            "type": "string",
            "description": "Name of the output file"
          }
        }
      },
      "example": []
    },
    "messages": {
      "type": "array",
      "description": "Messages generated during execution",
      "items": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "description": "Message status code"
          },
          "text": {
            "type": "string",
            "description": "Message text"
          },
          "toolId": {
            "type": "integer",
            "description": "ID of the tool that generated the message"
          }
        }
      },
      "example": []
    },
    "priority": {
      "type": "string",
      "enum": [
        "Low",
        "Medium",
        "High",
        "Critical"
      ],
      "example": "Low"
    },
    "workerTag": {
      "type": "string",
      "example": "example_value"
    },
    "runWithE2": {
      "type": "boolean",
      "example": true
    }
  }
}