{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yappy-biz/json-schema/yappy-biz-batch-request-schema.json",
  "title": "BatchRequest",
  "description": "Up to twenty read operations to run in one request.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yappy-biz-batch-api-openapi.yml#/components/schemas/BatchRequest",
  "type": "object",
  "required": [
    "operations"
  ],
  "properties": {
    "operations": {
      "type": "array",
      "minItems": 1,
      "maxItems": 20,
      "description": "The operations, run independently of each other.",
      "items": {
        "type": "object",
        "required": [
          "id",
          "method",
          "path"
        ],
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 64,
            "description": "Your label for this operation, echoed back."
          },
          "method": {
            "type": "string",
            "enum": [
              "GET"
            ],
            "description": "Only GET is accepted inside a batch."
          },
          "path": {
            "type": "string",
            "maxLength": 512,
            "description": "A path relative to /api/v1, query string included."
          }
        }
      }
    }
  }
}