{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/adobe/main/json-schema/adobe-pdfto-markdown-job-status-schema.json", "title": "PDFToMarkdownJobStatus", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/adobe-pdf-to-markdown-api-openapi.yml#/components/schemas/PDFToMarkdownJobStatus", "oneOf": [ { "$ref": "#/$defs/inprogress" }, { "$ref": "#/$defs/done" }, { "$ref": "#/$defs/failed" } ], "$defs": { "done": { "title": "done", "oneOf": [ { "$ref": "#/$defs/internal" }, { "$ref": "#/$defs/externalstatus" } ] }, "external": { "title": "External with an output URI in the request", "description": "Response in case of 'done' status using signed urls", "type": "object", "properties": { "status": { "description": "Job Status", "type": "string", "enum": [ "done" ] } } }, "externaldonewithoutoutput": { "title": "External without an output URI in the request", "description": "Response in case of 'done' status", "type": "object", "properties": { "status": { "description": "Job Status", "type": "string", "enum": [ "done" ] }, "asset": { "$ref": "#/$defs/responseAsset" } } }, "externalstatus": { "title": "External", "oneOf": [ { "$ref": "#/$defs/externaldonewithoutoutput" }, { "$ref": "#/$defs/external" } ] }, "failed": { "description": "Response in case of 'failed' status", "type": "object", "properties": { "status": { "description": "Job Status", "type": "string", "enum": [ "failed" ] }, "error": { "type": "object", "properties": { "status": { "description": "Http status code returned by the service", "type": "integer" }, "code": { "description": "The string containing the code field. code is the Mnemonic returned by service in case of any failure. The below list is extendable and going forward the error codes can become more specific.", "type": "string" }, "message": { "description": "An English language string that contains more information about the error. \n\n
statuscodemessage
400CORRUPT_DOCUMENTFor $(format) mime-type The input file appears to be corrupted and cannot be processed.
400PASSWORD_PROTECTEDSource file is protected and cannot be processed.
500INTERNAL_SERVER_ERRORThere was an error processing your request.
", "type": "string" } } } } }, "inprogress": { "description": "Response in case of 'in progress' status", "type": "object", "properties": { "status": { "description": "Job Status", "type": "string", "enum": [ "in progress" ] } } }, "internal": { "title": "Internal", "description": "Response in case of 'done' status", "type": "object", "properties": { "status": { "description": "Job Status", "type": "string", "enum": [ "done" ] }, "asset": { "$ref": "#/$defs/responseAsset" } } }, "responseAsset": { "title": "asset", "description": "Details of output asset document. For more details click here .", "type": "object", "properties": { "metadata": { "type": "object", "description": "metadata details of output asset.", "properties": { "size": { "description": "The size of the Resource in bytes. This value helps in making range requests.", "type": "integer" }, "type": { "description": "The media type of the Resource.", "type": "string" } } }, "assetID": { "description": "An asset ID identifying an asset that is globally unique and never reused.", "type": "string", "required": false }, "downloadUri": { "description": "The URL used to download the Resource directly to the cloud provider.", "type": "string" } } } } }