Available on crate feature
contract only.Expand description
Machine-readable contract exports: JSON Schema and an OpenLineage
SchemaDatasetFacet. Pure functions over a ContractSpec — no I/O.
Used by faucet contract --export …; available to library callers too.
Constants§
- OPENLINEAGE_
SCHEMA_ FACET_ URL - Pinned OpenLineage
SchemaDatasetFacetschema URL used byto_openlineage_facet.
Functions§
- to_
json_ schema - Render the contract as a standalone JSON Schema (draft 2020-12) document.
- to_
openlineage_ facet - Render the contract as an OpenLineage
SchemaDatasetFacet— the same facet shapefaucet-lineageattaches to dataset events, so downstream OpenLineage consumers can ingest the contract as a schema promise.