{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-callback-logs-request-schema.json",
  "title": "CallbackLogsRequest",
  "description": "A batch of logging events posted by an external producer.",
  "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/CallbackLogsRequest",
  "properties": {
    "records": {
      "items": {
        "$ref": "#/$defs/CallbackLogRecord"
      },
      "type": "array",
      "maxItems": 1000,
      "title": "Records"
    }
  },
  "type": "object",
  "required": [
    "records"
  ],
  "$defs": {
    "CallbackLogRecord": {
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "success",
            "failure"
          ],
          "title": "Status"
        },
        "standard_logging_payload": {
          "additionalProperties": true,
          "type": "object",
          "title": "Standard Logging Payload"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error"
        }
      },
      "type": "object",
      "required": [
        "status",
        "standard_logging_payload"
      ],
      "title": "CallbackLogRecord",
      "description": "A single finished logging event to replay through the callbacks."
    }
  }
}