{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/modoboa/json-schema/modoboa-email-address-with-name-schema.json",
  "title": "EmailAddressWithName",
  "description": "Email address + contact name serializer.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/modoboa-emails-api-openapi.yml#/components/schemas/EmailAddressWithName",
  "type": "object",
  "properties": {
    "pk": {
      "type": "integer",
      "readOnly": true,
      "title": "ID"
    },
    "address": {
      "type": "string",
      "format": "email",
      "maxLength": 254
    },
    "type": {
      "$ref": "#/$defs/TypeE1dEnum"
    },
    "display_name": {
      "type": "string",
      "readOnly": true
    }
  },
  "required": [
    "address",
    "display_name",
    "pk",
    "type"
  ],
  "$defs": {
    "TypeE1dEnum": {
      "enum": [
        "home",
        "work",
        "other"
      ],
      "type": "string",
      "description": "* `home` - Home\n* `work` - Work\n* `other` - Other"
    }
  }
}