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