{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getmattered/json-schema/getmattered-applicant-address-choice-schema.json",
  "title": "ApplicantAddressChoice",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getmattered-integrations-api-openapi.yml#/components/schemas/ApplicantAddressChoice",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "relay"
          ]
        }
      },
      "required": [
        "kind"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "mailbox"
          ]
        },
        "provider": {
          "type": "string",
          "enum": [
            "gmail",
            "outlook"
          ],
          "description": "Connected user mailbox provider"
        }
      },
      "required": [
        "kind",
        "provider"
      ]
    }
  ]
}