{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "urn:digital-core:canonical-party:address", "title": "Address", "description": "An Address is the canonical record of a location. It holds the structured components of the place itself and nothing else: no party, no purpose, no verification. Those belong on Contact Address. Canonical record published by Canonical Party. Property names are the ODS column names. Used for both the inbound topic (records producers publish) and the compacted outbound topic (every change, keyed by address_id).", "type": "object", "additionalProperties": false, "required": ["address_id", "country"], "properties": { "address_id": { "type": "string", "format": "uuid", "description": "Globally unique identifier for this location. Immutable once assigned. Many parties may reference the same identifier through their Contact Address records." }, "address_type": { "type": ["string", "null"], "enum": ["Street Address", "PO Box", "Registered Office", "Overseas Address", null], "description": "The structural type of the address. Determines which components apply: a PO Box has no street, and an overseas address may have no state or region." }, "address_line_1": { "type": ["string", "null"], "description": "The primary street line, typically number and street name. For a PO Box, the box number." }, "address_line_2": { "type": ["string", "null"], "description": "Secondary line for a unit, level, suite or building name." }, "suburb": { "type": ["string", "null"], "description": "The suburb or locality. Kept distinct from City because in Australia and New Zealand they are genuinely different things and merging them breaks delivery." }, "city": { "type": ["string", "null"], "description": "The city or town." }, "state_or_region": { "type": ["string", "null"], "description": "The state, territory, province or region, or the local equivalent." }, "postcode": { "type": ["string", "null"], "description": "The postal code. Held as a string to preserve leading zeros and to support formats that are not numeric." }, "country": { "type": "string", "description": "ISO 3166-1 alpha-2 country code. Mandatory for every address type." }, "created_at": { "type": ["string", "null"], "format": "date-time", "description": "Set by the ODS. Optional on the inbound topic." }, "updated_at": { "type": ["string", "null"], "format": "date-time", "description": "Set by the ODS on every change. Optional on the inbound topic." } } }