Skip to content

Enrichment Sidecar

Schema for enrichment YAML sidecar files that capture domain knowledge about spatial datasets — field renames, descriptions, value labels, and column ordering.

This schema defines 7 fields (1 required, 6 optional).

FieldTypeRequiredDescriptionConstraints
layer_idstringYesLayer identifier matching the pipeline stage layer.id-
sourcestringNoHuman-readable source dataset name (e.g., ‘Landgate Cadastre’)-
schema_hashstringNoSHA-256 hash of the source dataset schema at enrichment creation timePattern: ^[a-f0-9]{64}$
column_renamesobject: {string: string}NoMap of source column name to human-readable name-
descriptionsobject: {string: string}NoMap of column name to human-readable description-
value_labelsobject: {string: {string: string}}NoMap of column name to {coded_value: label} mappings for creating human-readable label columns-
column_orderarray of stringNoPreferred output column ordering (use enriched/renamed column names)-

The value_labels field uses a map-of-maps pattern. The outer keys are column names, and the inner keys are coded values mapped to human-readable labels.

value_labels:
zone_code:
R20: "Residential R20"
C1: "Commercial C1"
tenure_type:
F: "Freehold"
C: "Crown"