{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/modoboa/json-schema/modoboa-maillog-schema.json",
  "title": "Maillog",
  "description": "Serializer for Maillog model.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/modoboa-logs-api-openapi.yml#/components/schemas/Maillog",
  "type": "object",
  "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"
  ]
}