{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/feranor-com/json-schema/feranor-com-logs-report-schema.json",
  "title": "LogsReport",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/feranor-com-sidecar-openapi.json#/components/schemas/LogsReport",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "capacity",
    "logs"
  ],
  "properties": {
    "capacity": {
      "type": "integer",
      "format": "int32",
      "description": "How many entries are kept in memory (2000)."
    },
    "logs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LogRecord"
      }
    }
  },
  "$defs": {
    "LogRecord": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "at",
        "level",
        "category"
      ],
      "properties": {
        "at": {
          "type": "string",
          "format": "date-time"
        },
        "level": {
          "type": "string",
          "enum": [
            "Information",
            "Warning",
            "Error",
            "Critical"
          ]
        },
        "category": {
          "type": "string"
        },
        "eventId": {
          "type": "integer",
          "format": "int32"
        },
        "eventName": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "exceptionType": {
          "type": "string",
          "description": "An exception's type, never its message, which may hold a server path."
        }
      }
    }
  }
}