{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adobe-creative-suite/refs/heads/main/json-schema/adobe-creative-suite-photoshop-job-status-schema.json",
  "title": "JobStatus",
  "description": "Current status and result of an asynchronous job",
  "type": "object",
  "properties": {
    "jobId": {
      "type": "string",
      "description": "Unique identifier of the job",
      "example": "f54e0fcb-260b-47c3-b520-de0d17dc2b67"
    },
    "status": {
      "type": "string",
      "description": "Current job status",
      "enum": [
        "pending",
        "running",
        "succeeded",
        "failed"
      ],
      "example": "succeeded"
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp when the job was created",
      "example": "example_value"
    },
    "modified": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp when the job was last modified",
      "example": "example_value"
    },
    "outputs": {
      "type": "array",
      "description": "List of output files produced by a successful job",
      "items": {
        "$ref": "#/components/schemas/RenderOutput"
      }
    },
    "errors": {
      "type": "array",
      "description": "List of errors if the job failed",
      "items": {
        "$ref": "#/components/schemas/JobError"
      }
    }
  }
}