{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-partial-success-event-schema.json",
  "title": "partialSuccessEvent",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-indesign-openapi.yml#/components/schemas/partialSuccessEvent",
  "allOf": [
    {
      "$ref": "#/$defs/BaseEvent"
    },
    {
      "description": "The job has succeeded with some non-critical errors.",
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "description": "The current state of the job.",
          "enum": [
            "partial_success"
          ]
        },
        "data": {
          "type": "object",
          "description": "The output response from the current state of the job."
        },
        "dataURL": {
          "type": "string",
          "description": "The data returned from the execution of the job. If the data size is between 250 KB and 20 MB, it will be provided as a pre-signed URL. If it is larger than 20 MB, the job will fail."
        },
        "outputs": {
          "type": "object",
          "description": "A list of URLs for all the successfully generated assets."
        },
        "errors": {
          "type": "array",
          "description": "A list of errors that occurred during a partially successful job.",
          "items": {
            "type": "object",
            "properties": {
              "error_code": {
                "type": "string",
                "description": "The error code for the partial failure."
              },
              "message": {
                "type": "string",
                "description": "The error message for the partial failure"
              },
              "source": {
                "type": "string",
                "description": "The source file of the partial failure error, if applicable."
              },
              "url": {
                "type": "string",
                "description": "A URL related to an asset causing the partial failure(if any), if applicable."
              }
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "BaseEvent": {
      "type": "object",
      "description": "The job event response object.",
      "properties": {
        "jobId": {
          "description": "The GUID for the job.",
          "type": "string"
        }
      }
    }
  }
}