Files
semprini-data-product-templ…/canonical_data_product/example/events/schemas/address.schema.json
T
paulandClaude Opus 5 62a3714562 Add the canonical data product template
Moves the data product template from semprini-blog-dataproducts, as adapted to
the semprini-data domain platform, into canonical_data_product/. Its worked
example passed 9 of 9 checks on the domain platform on 2026-09-17.

Adds agent-canonical-product, the blog's agent-product adapted to generate a
product into a domain repository from a declaration in the domain's model
repository, and README/CLAUDE.md describing the template catalogue, the
product contract with the domain platform, and team ownership. Source-aligned
and experience templates are planned.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 22:55:11 +12:00

60 lines
2.2 KiB
JSON

{
"$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."
}
}
}