{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-callback-logs-response-schema.json",
  "title": "CallbackLogsResponse",
  "description": "Per-batch result: counts plus per-record failure detail so the caller can\ndistinguish a transient callback error from a structurally bad payload.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-rust-control-plane-api-openapi.yml#/components/schemas/CallbackLogsResponse",
  "properties": {
    "processed": {
      "type": "integer",
      "title": "Processed"
    },
    "failed": {
      "type": "integer",
      "title": "Failed"
    },
    "failures": {
      "items": {
        "$ref": "#/$defs/CallbackLogFailure"
      },
      "type": "array",
      "title": "Failures"
    }
  },
  "type": "object",
  "required": [
    "processed",
    "failed"
  ],
  "$defs": {
    "CallbackLogFailure": {
      "properties": {
        "index": {
          "type": "integer",
          "title": "Index"
        },
        "error": {
          "type": "string",
          "title": "Error"
        }
      },
      "type": "object",
      "required": [
        "index",
        "error"
      ],
      "title": "CallbackLogFailure",
      "description": "A record that failed to replay, identified by its index in the batch."
    }
  }
}