{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yappy-biz/json-schema/yappy-biz-batch-response-schema.json",
  "title": "BatchResponse",
  "description": "One entry per operation, in the order supplied. Check each status; the envelope is 200 even when an operation failed.",
  "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/BatchResponse",
  "type": "object",
  "required": [
    "object",
    "results"
  ],
  "properties": {
    "object": {
      "type": "string",
      "const": "batch",
      "description": "Type discriminator."
    },
    "results": {
      "type": "array",
      "description": "Per-operation outcomes.",
      "items": {
        "type": "object",
        "required": [
          "id",
          "status",
          "body"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The label you supplied."
          },
          "status": {
            "type": "integer",
            "description": "HTTP status for this operation."
          },
          "body": {
            "description": "The operation's response body, or its problem document."
          }
        }
      }
    }
  }
}