Files
semprini-data-product-templ…/canonical_data_product/events/schemas/entity.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

45 lines
1.5 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:{{domain.slug}}:{{product.slug}}:{{table}}",
"title": "{{entity.name}}",
"description": "{{entity.description}} Canonical record published by {{product.name}}. 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 {{table}}_id).",
"type": "object",
"additionalProperties": false,
"required": ["{{table}}_id"],
"properties": {
"{{table}}_id": {
"type": "string",
"format": "uuid",
"description": "{{identifier.description}}"
},
"{{column}}": {
"type": "{{json_type}}",
"description": "{{attribute.description}}"
},
"{{optional_column}}": {
"type": ["{{json_type}}", "null"],
"description": "{{attribute.description}}"
},
"{{enum_column}}": {
"type": ["string", "null"],
"enum": ["{{enum_value}}", null],
"description": "{{attribute.description}}"
},
"{{parent_table}}_id": {
"type": "string",
"format": "uuid",
"description": "Identifier of the owning {{parent_entity}}."
},
"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."
}
}
}