{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "urn:digital-core:example-address:address", "title": "Address", "description": "The canonical record of a physical or postal location. Canonical record published by Example Address. 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 surrogate identifier for this physical location record. Immutable once assigned." }, "address_type": { "type": ["string", "null"], "enum": ["Street Address", "PO Box", "Registered Office", "Overseas Address", null], "description": "The structural type of the address. Determines which fields are applicable." }, "address_line_1": { "type": ["string", "null"], "description": "The primary street address line. For PO Box addresses, the PO Box number." }, "address_line_2": { "type": ["string", "null"], "description": "Secondary address line for suite, level, unit, or building name where applicable." }, "suburb": { "type": ["string", "null"], "description": "The suburb or locality component of the address." }, "city": { "type": ["string", "null"], "description": "The city or town." }, "state_or_region": { "type": ["string", "null"], "description": "The state, territory, or region." }, "postcode": { "type": ["string", "null"], "description": "The postal code, as a string to preserve leading zeros." }, "country": { "type": "string", "description": "ISO 3166-1 alpha-2 country code. Mandatory for all address types." }, "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." } } }