{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/torgix-ai/json-schema/torgix-ai-batch-response-schema.json",
  "title": "BatchResponse",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/torgix-ai-openapi.json#/components/schemas/BatchResponse",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer"
          },
          "data": {
            "type": "object",
            "additionalProperties": true
          },
          "error": {
            "$ref": "#/$defs/Error"
          }
        }
      }
    },
    "request_id": {
      "type": "string"
    }
  },
  "$defs": {
    "Error": {
      "type": "object",
      "properties": {
        "error": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string"
            },
            "message": {
              "type": "string"
            },
            "field": {
              "type": [
                "string",
                "null"
              ]
            },
            "request_id": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}