{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/modoboa/json-schema/modoboa-paginated-log-list-schema.json",
  "title": "PaginatedLogList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/modoboa-logs-api-openapi.yml#/components/schemas/PaginatedLogList",
  "type": "object",
  "required": [
    "count",
    "results"
  ],
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Log"
      }
    }
  },
  "$defs": {
    "Log": {
      "type": "object",
      "description": "Log serializer.",
      "properties": {
        "date_created": {
          "type": "string",
          "readOnly": true
        },
        "message": {
          "type": "string"
        },
        "level": {
          "type": "string",
          "maxLength": 15
        },
        "logger": {
          "type": "string",
          "maxLength": 30
        }
      },
      "required": [
        "date_created",
        "level",
        "logger",
        "message"
      ]
    }
  }
}