{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/docupanda/json-schema/docupanda-apply-transformation-response-schema.json",
  "title": "ApplyTransformationResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/docupanda-transformation-api-openapi.yml#/components/schemas/ApplyTransformationResponse",
  "properties": {
    "jobId": {
      "type": "string",
      "title": "Jobid"
    },
    "source": {
      "type": "string",
      "enum": [
        "standardization",
        "document"
      ],
      "title": "Source"
    },
    "standardizationId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Standardizationid"
    },
    "documentId": {
      "type": "string",
      "title": "Documentid"
    },
    "data": {
      "title": "Data"
    },
    "steps": {
      "items": {
        "$ref": "#/$defs/TransformationStep"
      },
      "type": "array",
      "title": "Steps"
    },
    "receipt": {
      "$ref": "#/$defs/TransformationReceipt"
    }
  },
  "type": "object",
  "required": [
    "jobId",
    "source",
    "standardizationId",
    "documentId",
    "data",
    "steps",
    "receipt"
  ],
  "$defs": {
    "TransformationReceipt": {
      "properties": {
        "transformations": {
          "items": {
            "$ref": "#/$defs/TransformationReceiptEntry"
          },
          "type": "array",
          "title": "Transformations"
        },
        "inputHash": {
          "type": "string",
          "title": "Inputhash"
        },
        "contextHash": {
          "type": "string",
          "title": "Contexthash"
        },
        "outputHash": {
          "type": "string",
          "title": "Outputhash"
        }
      },
      "type": "object",
      "required": [
        "transformations",
        "inputHash",
        "contextHash",
        "outputHash"
      ],
      "title": "TransformationReceipt"
    },
    "TransformationReceiptEntry": {
      "properties": {
        "transformationId": {
          "type": "string",
          "title": "Transformationid"
        },
        "sourceHash": {
          "type": "string",
          "title": "Sourcehash"
        }
      },
      "type": "object",
      "required": [
        "transformationId",
        "sourceHash"
      ],
      "title": "TransformationReceiptEntry"
    },
    "TransformationStep": {
      "properties": {
        "transformationId": {
          "type": "string",
          "title": "Transformationid"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "elapsedMs": {
          "type": "number",
          "title": "Elapsedms"
        }
      },
      "type": "object",
      "required": [
        "transformationId",
        "name",
        "elapsedMs"
      ],
      "title": "TransformationStep"
    }
  }
}