{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentstack-tech/json-schema/agentstack-tech-batch-request-schema.json",
  "title": "BatchRequest",
  "description": "Батч запросов",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentstack-tech-batch-api-openapi.yml#/components/schemas/BatchRequest",
  "properties": {
    "requests": {
      "items": {
        "$ref": "#/$defs/BatchRequestItem"
      },
      "type": "array",
      "title": "Requests"
    },
    "execute_parallel": {
      "type": "boolean",
      "title": "Execute Parallel",
      "default": true
    }
  },
  "type": "object",
  "required": [
    "requests"
  ],
  "$defs": {
    "BatchRequestItem": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "method": {
          "type": "string",
          "title": "Method"
        },
        "url": {
          "type": "string",
          "title": "Url"
        },
        "headers": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Headers"
        },
        "body": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ],
          "title": "Body"
        },
        "params": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Params"
        }
      },
      "type": "object",
      "required": [
        "id",
        "method",
        "url"
      ],
      "title": "BatchRequestItem",
      "description": "Один запрос в батче"
    }
  }
}