Data Contract Generator
Drafts a YAML or Markdown data contract from a sample, leaving the human decisions as TODOs.
Loading the tool…
How to use this tool
- Paste a header row and a representative sample of the data — twenty rows tells you more than five.
- Name the dataset and the owner, and pick YAML or Markdown.
- Select Draft contract.
- Work through every TODO with the people who own the data. Those are the parts a sample cannot answer.
What data contract generator does
The reason most datasets have no contract is not that nobody wants one, it is that starting from an empty file is unpleasant and the result has to be argued over anyway. Starting from something already half filled in changes the conversation from "will we write one" to "is this right", which is a far easier conversation to have.
This infers what a sample can support — field names, types, which fields were null, which looked unique, a candidate key — and leaves everything a sample cannot know as an explicit TODO: the owner, the freshness SLA, the classification, and what happens when a check fails. Those are not gaps to be filled with defaults. A contract nobody had to complete is a contract nobody agreed to.