{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-textract/json-schema/amazon-textract-get-lending-analysis-summary-response-schema.json",
  "title": "GetLendingAnalysisSummaryResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-textract-operations-api-openapi.yml#/components/schemas/GetLendingAnalysisSummaryResponse",
  "type": "object",
  "properties": {
    "DocumentMetadata": {
      "$ref": "#/$defs/DocumentMetadata"
    },
    "JobStatus": {
      "type": "string",
      "enum": [
        "IN_PROGRESS",
        "SUCCEEDED",
        "FAILED",
        "PARTIAL_SUCCESS"
      ],
      "description": "The current status of the lending analysis job."
    },
    "Summary": {
      "$ref": "#/$defs/LendingSummary"
    },
    "Warnings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Warning"
      },
      "description": "A list of warnings that occurred during the lending analysis operation."
    },
    "StatusMessage": {
      "type": "string",
      "description": "Returns if the lending analysis could not be completed. Contains explanation for what error occurred."
    },
    "AnalyzeLendingModelVersion": {
      "type": "string",
      "description": "The current model version of the Analyze Lending API."
    }
  },
  "$defs": {
    "DetectedSignature": {
      "type": "object",
      "properties": {
        "Page": {
          "type": "integer",
          "description": "The page a detected signature was found on."
        }
      }
    },
    "DocumentGroup": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "description": "The type of document that Amazon Textract has detected. See Analyze Lending Response Objects for a list of all types returned by Textract."
        },
        "SplitDocuments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SplitDocument"
          },
          "description": "An array that contains information about the pages of a document, defined by logical boundary."
        },
        "DetectedSignatures": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DetectedSignature"
          },
          "description": "A list of the detected signatures found in a document group."
        },
        "UndetectedSignatures": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/UndetectedSignature"
          },
          "description": "A list of any expected signatures not found in a document group."
        }
      }
    },
    "DocumentMetadata": {
      "type": "object",
      "properties": {
        "Pages": {
          "type": "integer",
          "description": "The number of pages that are detected in the document."
        }
      }
    },
    "LendingSummary": {
      "type": "object",
      "properties": {
        "DocumentGroups": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DocumentGroup"
          },
          "description": "Contains an array of all DocumentGroup objects."
        },
        "UndetectedDocumentTypes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "UndetectedDocumentTypes."
        }
      }
    },
    "SplitDocument": {
      "type": "object",
      "properties": {
        "Index": {
          "type": "integer",
          "description": "The index for a given document in a DocumentGroup of a specific Type."
        },
        "Pages": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "An array of page numbers for a for a given document, ordered by logical boundary."
        }
      }
    },
    "UndetectedSignature": {
      "type": "object",
      "properties": {
        "Page": {
          "type": "integer",
          "description": "The page where a signature was expected but not found."
        }
      }
    },
    "Warning": {
      "type": "object",
      "properties": {
        "ErrorCode": {
          "type": "string",
          "description": "The error code for the warning."
        },
        "Pages": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "A list of the pages that the warning applies to."
        }
      }
    }
  }
}