{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-validate-address-request-schema.json",
  "title": "ValidateAddressRequest",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-addresses-api-openapi.yml#/components/schemas/ValidateAddressRequest",
  "properties": {
    "administrative_area": {
      "$ref": "#/$defs/administrative_area"
    },
    "country_code": {
      "$ref": "#/$defs/country_code"
    },
    "extended_address": {
      "$ref": "#/$defs/extended_address"
    },
    "locality": {
      "$ref": "#/$defs/locality"
    },
    "postal_code": {
      "$ref": "#/$defs/postal_code"
    },
    "street_address": {
      "$ref": "#/$defs/street_address"
    }
  },
  "required": [
    "country_code",
    "street_address",
    "postal_code"
  ],
  "type": "object",
  "$defs": {
    "administrative_area": {
      "description": "The locality of the address. For US addresses, this corresponds to the state of the address.",
      "type": "string"
    },
    "country_code": {
      "description": "The two-character (ISO 3166-1 alpha-2) country code of the address.",
      "type": "string"
    },
    "extended_address": {
      "description": "Additional street address information about the address such as, but not limited to, unit number or apartment number.",
      "type": "string"
    },
    "locality": {
      "description": "The locality of the address. For US addresses, this corresponds to the city of the address.",
      "type": "string"
    },
    "postal_code": {
      "description": "The postal code of the address.",
      "type": "string"
    },
    "street_address": {
      "description": "The primary street address information about the address.",
      "type": "string"
    }
  }
}