{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/modoboa/json-schema/modoboa-paginated-maillog-list-schema.json",
  "title": "PaginatedMaillogList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/modoboa-logs-api-openapi.yml#/components/schemas/PaginatedMaillogList",
  "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/Maillog"
      }
    }
  },
  "$defs": {
    "Maillog": {
      "type": "object",
      "description": "Serializer for Maillog model.",
      "properties": {
        "id": {
          "type": "integer",
          "readOnly": true
        },
        "queue_id": {
          "type": "string",
          "maxLength": 50
        },
        "date": {
          "type": "string",
          "format": "date-time"
        },
        "sender": {
          "type": "string",
          "format": "email",
          "maxLength": 254
        },
        "rcpt": {
          "type": "string",
          "format": "email",
          "maxLength": 254
        },
        "original_rcpt": {
          "type": [
            "string",
            "null"
          ],
          "format": "email",
          "maxLength": 254
        },
        "size": {
          "type": "integer",
          "maximum": 9223372036854775807,
          "minimum": 0,
          "format": "int64"
        },
        "status": {
          "type": "string",
          "maxLength": 15
        }
      },
      "required": [
        "date",
        "id",
        "queue_id",
        "rcpt",
        "sender",
        "size",
        "status"
      ]
    }
  }
}