{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://hsimc.tech/reality-registry/schemas/eperson-address.schema.json",
  "title": "HSIMC e-Person Address v0.1",
  "type": "object",
  "required": [
    "schema",
    "eperson_id",
    "subject_reality_refs",
    "address_state",
    "state_resolution_policy",
    "privacy_boundary",
    "created_at"
  ],
  "properties": {
    "schema": {
      "const": "hsimc.eperson-address.v0.1"
    },
    "eperson_id": {
      "type": "string"
    },
    "subject_reality_refs": {
      "type": "array",
      "minItems": 1
    },
    "address_state": {
      "enum": [
        "ADDRESS_REGISTERED",
        "ADDRESS_REVOKED"
      ]
    },
    "state_resolution_policy": {
      "const": "CURRENT_ROLE_AUTHORITY_LIFECYCLE_RESOLVED_FROM_EVENTS_AND_WORK_NOT_ADDRESS_RECORD"
    },
    "email_alias_ref": {
      "type": [
        "string",
        "null"
      ]
    },
    "continuity_refs": {
      "type": "array"
    },
    "privacy_boundary": {
      "const": "NO_PRIVATE_PERSONAL_INFORMATION_MANAGEMENT"
    },
    "created_at": {
      "type": "string"
    }
  },
  "description": "Stable address only. Current role, Authority, lifecycle, supervisor, model and execution permission are not trusted from this object."
}
