{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ApiRequestDetail",
  "title": "ApiRequestDetail",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "method": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "status_code": {
      "type": "integer"
    },
    "response_time": {
      "type": "number"
    },
    "ip_address": {
      "type": "string"
    },
    "request_headers": {
      "type": "object"
    },
    "request_body": {
      "type": "object"
    },
    "response_headers": {
      "type": "object"
    },
    "response_body": {
      "type": "object"
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        }
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}