{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/docupanda/json-schema/docupanda-auto-generate-schema-response-schema.json",
  "title": "AutoGenerateSchemaResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/docupanda-schema-api-openapi.yml#/components/schemas/AutoGenerateSchemaResponse",
  "properties": {
    "jobId": {
      "type": "string",
      "title": "Job ID",
      "description": "Unique identifier for the autogenerate schema job."
    },
    "status": {
      "$ref": "#/$defs/ProcessingStatus",
      "title": "Job Status",
      "description": "Current status of the job."
    },
    "schemaId": {
      "type": "string",
      "title": "Schema ID",
      "description": "Unique identifier for the schema being generated. The schema is only available when the job is completed."
    },
    "schemaName": {
      "type": "string",
      "title": "Schema Name",
      "description": "Name of the schema being generated."
    },
    "standardizationIds": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Standardization IDs",
      "description": "List of standardization IDs for the documents used to generate the schema. These will only become available after schema generation is complete, and only if standardizeUsingSchema is set to true."
    },
    "standardizationJobIds": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Standardization Job IDs",
      "description": "List of standardization job IDs for the documents used to generate the schema. These will only become available after schema generation is complete, and only if standardizeUsingSchema is set to true."
    }
  },
  "type": "object",
  "required": [
    "jobId",
    "status",
    "schemaId"
  ],
  "$defs": {
    "ProcessingStatus": {
      "type": "string",
      "enum": [
        "processing",
        "completed",
        "error"
      ],
      "title": "ProcessingStatus"
    }
  }
}