Thalweg · API reference ← Main docs

Module model

Module model 

Source
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§

LogicalTypeOptions
The logicalTypeOptions sub-object; only the fields this model emits.
OdcsContract
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 type foreignKey) used to express a reference from a local field to another schema object.
SchemaObject
One schema[] object — a table/topic/record type.