Expand description
A serde model for emitting ODCS (Open Data Contract Standard) v3.1.0
documents. This is the subset needed to serialise a data contract’s schema:
the top-level contract fields, schema[] objects, their properties[]
(with logicalTypeOptions, nested properties, and items), and
schema-level relationships[] for cross-object references.
Parsing ODCS into [twg_contract_core]’s resolved spec is a separate,
still-scaffold concern (see the crate root); this module is the write side,
used by the schema bridge (ADR-0064).
Structs§
- Logical
Type Options - The
logicalTypeOptionssub-object; only the fields this model emits. - Odcs
Contract - A minimal ODCS v3.1.0 data contract, sufficient to describe a schema.
- Property
- One property (field) of a schema object.
- Relationship
- A schema-level relationship (
from/to, default typeforeignKey) used to express a reference from a local field to another schema object. - Schema
Object - One
schema[]object — a table/topic/record type.