Enkinex ODCS Library
Enkinex ODCS is a library for writing data governance as code. It implements the Open Data Contract Standard (ODCS) as modular KCL schemas, bringing data contracts modularity, maintainability, type safety, constraints, and two-way validation.
The library is composed of six modules — common, catalog, contract, iam, quality, server — plus the root
odcs.k, which imports from every module and composes the final DataContract schema.
Library Code
GitHubThe KCL schema library — six modules plus the root DataContract, with the generated schema reference.
Tutorial Code
GitHubThe finished contract project built in the tutorial, ready to clone, export, and adapt.
Tutorial
DocsAuthor a data contract as a typed KCL project step by step, then export it to YAML.
Quick Start
Everything below assumes the KCL CLI
>= 0.12.7 is on your PATH — the tutorial's
Installing KCL page walks
through it.
Add Enkinex ODCS to your KCL project
From the root of your KCL module, pull the library in as a Git dependency
pinned to the release tag. It lands in kcl.mod as enkinex_odcs, which is
the name you import from in your .k files.
kcl mod add --git https://github.com/enkinex/enkinex-odcs --tag 'v3.1.0'
Clone the Enkinex ODCS library from GitHub
To read the schemas, run the test fixtures, or contribute a change, clone the library itself:
git clone https://github.com/enkinex/enkinex-odcs.git
Clone the Enkinex ODCS tutorial code from GitHub
The complete tutorial project — the ODCS example contract written as modular KCL — is a separate repository:
git clone https://github.com/enkinex/enkinex-odcs-tutorial.git