{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://mail.hsimc.tech/schemas/eperson-mail-binding.schema.json",
  "title": "HSIMC e-Person Mail Binding",
  "type": "object",
  "required": [
    "eperson_id",
    "mail_address_id",
    "email_address",
    "binding_state",
    "no_reuse",
    "current_authority_persisted"
  ],
  "properties": {
    "eperson_id": {
      "type": "string"
    },
    "mail_address_id": {
      "type": "string"
    },
    "email_address": {
      "type": "string"
    },
    "transport_binding_ref": {
      "type": [
        "string",
        "null"
      ]
    },
    "binding_state": {
      "enum": [
        "RESERVED",
        "BOUND",
        "ACTIVE",
        "SUSPENDED",
        "REVOKED",
        "RETIRED"
      ]
    },
    "no_reuse": {
      "const": true
    },
    "current_authority_persisted": {
      "const": false
    },
    "authority_resolution": {
      "const": "RESOLVE_FROM_CURRENT_WORK_REALITY_AUTHORITY_AT_ACTION_TIME"
    }
  }
}
