Add Canonical Party as generated in semprini-blog-dataproducts
The canonical data product for the Digital Core domain, copied unchanged from the blog repository's products/canonical-party (generated by /agent-product from data_model/data_products/canonical.md, 65 of 65 checks on the blog's stack on 2026-09-09). The next commit adapts it to the domain platform. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
commit
cfb32d2d1b
20 files changed
+2222
No files matched your search
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"$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."
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user