OpenMetadata data contracts

OpenMetadata data contracts record schema, ownership, quality and SLA expectations for tables, topics and data products, and track whether they hold. This page explains when to use them, how to configure and set them up, and what to confirm before relying on them.

On this page

When OpenMetadata data contracts help teams agree on data

Data contracts help when the producers and consumers of a table, topic or data product disagree about what the data should look like and how reliable it must be. A producer renames a column, a pipeline runs late, or a null rate climbs, and the consuming team learns about it from a broken dashboard. A data contract records the agreement in one place so both sides can see the expected schema, the accountable owner, the quality checks and the freshness or availability expectations before anything changes. In OpenMetadata, a contract is attached to the asset it governs, so the agreement sits next to the lineage, ownership and tests that already describe that asset.

The contract covers four areas: schema, ownership, quality and SLA expectations. Contract execution is tracked, which means the checks defined in the contract are evaluated and the results are visible to the people who depend on the data, not only to the team that wrote the contract. Contracts can also be exchanged in the Open Data Contract Standard (ODCS) format, which matters if a contract must move between tools or be shared with a partner. Before you commit to this design, confirm in the OpenMetadata release you plan to run which contract fields are supported, which contract states exist and how the platform handles different ODCS versions. The documentation for your release, starting from the OpenMetadata GitHub repository, is the place to check these details.

Decide early which assets need a contract. Contracts are most useful on shared tables and data products with several consumers, and less useful on exploratory tables owned by one analyst. Assign a named owner who can approve changes to the schema and the expectations, and agree on who is notified when a check fails. Ask the implementation partner or your own platform team to test one contract end to end, including a deliberately failing check and a proposed schema change, before rolling the pattern out to other domains.

Which OpenMetadata data contract scope fits your stack

This table compares the three asset types a contract can attach to in OpenMetadata, with the questions each answers, who usually signs off and which checks are practical. Read each row against how many consumers depend on the asset, since that count usually decides whether a narrow or broad first scope is the safer start.

Scope factorTable contractTopic contractData product contract
Question it answersIs this table's schema, freshness and quality what downstream users rely on?Do producers and consumers agree on the message schema and delivery expectations?Does this bundle of assets meet the promises made to its consumers?
Usual sign-off ownerData owner of the table, with the main consumer teamProducing service owner and the streaming platform teamDomain owner or product owner, with named consumer representatives
Practical schema checksColumn names, types and nullability compared with the table in the catalogMessage schema compared with the registered schema for the topicSchemas of each member asset, checked as a group
Practical quality and freshness checksData quality tests and freshness checks already configured on the tableLag or timeliness signals if the topic is monitored outside OpenMetadataResults rolled up from the member assets' tests, confirmed per asset
Start with critical tables or full product?Start with a few tables that have the most downstream consumersStart with the topics feeding those same critical tablesStart with one product only after its member tables already carry contracts
Effect of consumer countMany consumers justify a contract with explicit SLA and change noticeMany consumers justify a versioned schema and a breaking change processMany consumers make the product promise worth formal ownership and review
Confirm before rolloutWhich contract fields your OpenMetadata version supports on tablesWhether your topic connector ingests the schema you plan to checkHow your version reports execution status for product-level contracts

How a data contract moves from definition to execution

The flow starts with the producing team's owner defining a contract on a table, topic or data product in OpenMetadata. Schema, ownership, quality and SLA expectations are linked to that asset's metadata and tests, and each run records its results. Failures route to the named owners, and the contract can be exported or imported in ODCS format for other tools. The trust boundary separates the producing team's edit rights from the consuming team's read access, so check who can change a contract before consumers depend on it.

Contract flow from owner definition through test execution, failure routing and ODCS exchange.

Setting up OpenMetadata data contracts step by step

This sequence takes a team from a confirmed OpenMetadata version and connected assets to a contract with an owner, tested quality rules, SLA expectations, a verified execution and a working notification and ODCS exchange path.

  1. Confirm version and connected assets

    Before defining anything, confirm which OpenMetadata version you run and whether it is a 2.0.x release, since the 2.0 release notes list breaking changes that affect upgrades and ingestion images. Then confirm that the connectors feeding the tables, topics and dashboards you plan to contract are running and have ingested recent metadata, and that the ingestion account can read the assets. Check the connector documentation for each source to confirm what metadata it extracts. The step is done when every target asset appears in the catalog with its schema, and you have recorded the version and connector list for the contract's scope.

  2. Assign owners and domains for each asset

    Agree in writing who owns each asset and which domain it belongs to, because the contract's accountable party and its notification target both come from this assignment. Owners should be named people or teams that can change the schema and answer for failures, not a shared mailbox nobody reads. Confirm the domain structure with the data governance lead before you attach anything, so contracts do not need to be moved later. The step is done when each target asset shows an owner and a domain in the catalog, and a spot check by someone outside the project confirms the assignments are correct.

  3. Define the first contract's schema and ownership terms

    Write the contract for one low-risk table first. Record the expected columns, data types, nullability and any allowed values, along with the owner, the consumers who depend on it and the change process that applies when the schema must change. Keep the terms short enough that producers will read and maintain them. Confirm with your OpenMetadata administrator how contracts are created in your version, whether through the UI, the API or the Python SDK, since the available paths differ by release. The step is done when the contract is saved and visible on the asset with the schema terms and owner shown.

  4. Attach quality tests and SLA expectations

    Add the data quality tests that reflect the contract's promises, such as completeness of key columns, uniqueness of identifiers and value ranges, and record the freshness or availability expectation the consumers have agreed to. Name the expected refresh behavior in plain terms and confirm with the producing team that their pipeline can meet it. Confirm the freshness and profiling capabilities of your version in the documentation before relying on them. The step is done when each promise in the contract maps to at least one test or checked expectation on the asset.

  5. Run an initial execution and check results

    Run the quality tests against the asset and review every result against the contract terms before anyone relies on it. Expect some tests to need threshold tuning on the first run, and record each change with a reason so the baseline can be explained to auditors or data consumers later. Compare the results with a manual check of a sample of rows to confirm the tests measure what the contract says. The step is done when the execution history shows a completed run with results that the owner has reviewed and signed off in the ticket or change record.

  6. Verify failure reaches the owner

    Deliberately break the asset in a non-production copy, for example by inserting a null into a required column or a duplicate key, and rerun the tests. Confirm that the failure appears in the contract's execution history, that an incident or alert is created as your version supports, and that the named owner receives the notification through the channel you configured. Record the time and channel each notification arrived through so the path can be reproduced. The step is done when the owner has acknowledged a test failure they caused on purpose, and the test is restored afterward.

  7. Set up the ODCS export or import path

    Decide whether the contract must leave OpenMetadata in Open Data Contract Standard (ODCS) format, come in from another tool, or both, and confirm in the release documentation which ODCS version and import or export features your OpenMetadata version supports. Export one contract, open it with the consuming system or a validator, and compare the fields with the original contract to find anything that did not map. Store the exported file under version control with the change record. The step is done when a round trip of the contract preserves the schema, owner and quality terms, and any gaps are documented as open items.

Schema, ownership, quality and SLA terms in one contract

The schema term protects consumers from silent breaking changes. It names the columns a consumer depends on, their data types, whether they may be null, and which kinds of change the producer may make without agreement. A useful schema term separates additive changes, such as a new optional column, from breaking changes, such as a renamed or retyped column, because the two need different approval paths.

  • Column list: Name each column the consumer reads, with its type and nullability, rather than copying the whole table definition.
  • Allowed changes: State which changes are free (new nullable columns) and which need notice or sign-off (renames, type changes, dropped columns).
  • Verification: Compare the contract with the table schema that OpenMetadata ingests from your warehouse on each run, and fail the check when they diverge.
  • Notice period: Record how much warning the producer owes before a breaking change. Confirm the value with your own consumers, since OpenMetadata does not set it for you.
  • Lineage check: Use lineage to find downstream assets that a breaking change would affect before it ships.

Confirm in the OpenMetadata data contract documentation which schema fields the contract object supports and how the schema check is triggered, since the exact configuration keys vary by release.

Exchanging data contracts in ODCS format

Export or import data contracts in ODCS format when an agreement needs to live outside the catalog, for example when a producing team, a vendor, or a tool that does not read OpenMetadata must hold the same schema, ownership, quality and SLA expectations. The point of the exchange is that both sides describe the same asset the same way. Before you start, confirm in the OpenMetadata documentation for your release which ODCS version is supported, which contract fields map to OpenMetadata fields, and which fields are dropped or ignored in either direction. Do not assume a field round-trips because it appears in the file.

Both sides have to agree on three things. The first is the contract fields themselves, such as schema columns and data types, owner, quality checks and SLA terms, and whether each one has a direct equivalent on the other side. The second is the version: a contract exported from one ODCS version and read by a tool expecting another can lose meaning without any error. The third is the asset identifier. OpenMetadata addresses tables and other assets by its fully qualified name, and the external tool will use its own naming. Decide where the mapping lives, document it, and check that the identifier used in the file resolves to exactly one asset in the target catalog.

Test a round trip before any team depends on the exchange. Pick one representative table with a contract that includes schema, an owner, at least one quality test and an SLA, export it, import it into a non-production OpenMetadata instance or a scratch copy, export again, and compare the two files field by field. Record every difference, including fields that disappear, defaults that appear and identifiers that change. Repeat the test after each OpenMetadata upgrade and whenever the external tool changes its ODCS version, because a clean round trip on one release does not guarantee the next one behaves the same way.

Who can publish, change and waive a data contract

A data contract is only as trustworthy as the people allowed to write it, change it and excuse a failing check. The cards below cover the access decisions that connect authorship, approval, exceptions, results, automation credentials and history, each of which should be confirmed in the OpenMetadata security documentation before contracts go live.

Who may create and edit contracts

Contracts sit on tables, topics and data products, so the first decision is which roles can create a contract, edit schema expectations and change ownership. Map these to the teams that actually own the producing data, not to every analyst with catalog access. Confirm in the security documentation how roles and policies are assigned, and whether a producer can edit a contract on a table owned by another domain. Test each role with a non-admin account before rollout.

Security docs

Approval of schema and SLA changes

Schema and SLA terms are the parts consumers depend on, so changes to them should need a reviewer other than the author. OpenMetadata's native review flow for contract edits should be checked against your process, because a producer who can both edit and approve a contract removes the review entirely. Ask which roles can approve, whether approval is enforced for all contract fields, and how a rejected change is recorded.

Recording waivers and temporary exceptions

A waiver lets a failing quality check or a missed freshness target pass for a defined period. Each waiver needs a named approver, a stated reason, an expiry date and a link to the affected consumers. Without those fields, exceptions quietly become the contract. Confirm whether waivers are stored as first-class records in the catalog or as free-text comments, and who can grant one.

Reading execution results as a consumer

Consumers need to see whether a contract passed, failed or was waived, but they should not be able to change the result. Check which roles can view test results, incident status and contract state, and whether those views respect the same domain boundaries as the underlying tables. Confirm how failed executions notify owners and whether consumers can subscribe without edit rights.

Scoping and rotating automation tokens

Scheduled contract checks and CI pipelines call the OpenMetadata API with tokens. Each token should be issued to one job, carry only the permissions that job needs, and be rotated on a schedule your security team sets. Confirm how tokens are created and revoked, where they are stored (never in DAG code or repository files), and whether a token can write contract definitions or only record execution results.

Keeping audit history of contract changes

An auditor or data protection reviewer may ask who changed a schema expectation, when an SLA was relaxed and who approved a waiver. OpenMetadata keeps version history for entities, but you should confirm what it records for contract fields, how long it is retained, and whether it can be exported to your log platform. Test one change end to end and confirm the record shows the actor, the timestamp and the before and after values.

OpenMetadata data contracts questions buyers ask before hiring help

How much effort does a first data contract take compared with rolling contracts out across many assets?

A first contract is mostly design work: agreeing the schema, the owner, the quality checks and the freshness expectation for one table or data product, then proving it runs. Rolling out across many assets is mostly repetition of that pattern, plus the coordination needed with each owner. Ask the partner to separate these two phases in the written scope, with the first contract as a pilot and the wider rollout priced as a defined number of assets or data products, not as an open-ended effort.

What makes data contract work take more or less effort?

Four factors move the effort most:

  • Number of assets and data products in scope, and how many consumers depend on each one.
  • Quality of existing tests and documentation. Teams with tested tables and clear descriptions need less discovery.
  • Owner availability. Contracts need a named owner who can approve terms and respond when a check fails.
  • ODCS exchange needs. Importing and exporting contracts in the Open Data Contract Standard format adds mapping and validation work, and it grows with the number of external consumers.

Ask the partner to state its assumptions for each factor in the quote.

What does the work need from our data and platform owners?

The work needs access and decisions from both groups. Data owners must confirm which schema, quality and freshness expectations matter to their consumers and sign off on the terms. Platform owners must provide a working OpenMetadata instance, service accounts with read access to the sources and a way to run checks on a schedule. Your team should also name a contact for security review of credentials and access. Put these dependencies, the people who fill each role and the dates they must be available into the written scope.

Can our internal team run data contracts without outside help?

Yes, many teams do, especially if they already run OpenMetadata and have engineers who know its APIs. OpenMetadata provides REST APIs, a Python SDK, TypeScript packages and Java libraries for programmatic access, so contract definitions can be managed as code. The harder parts are agreeing terms across owners, deciding how failures are handled and keeping contracts current as schemas change. Outside help is most useful for the first design, the pattern you will repeat and the handover, so your team can run the rest.

How long does a data contract engagement take, and what changes the timeline?

The timeline depends on scope, and no duration is set until a written scope exists. The main drivers are the number of assets and owners, whether the quality tests already exist, how many consumers need to agree to terms and whether ODCS import or export is required. A pilot on a small set of tables moves faster than a rollout across a warehouse. Ask for milestones tied to deliverables, such as contracts approved by owners, checks running in production and handover completed, rather than only to calendar dates.

What is one-time work and what recurs after a data contract goes live?

The initial design, pattern creation, contract drafting with owners and integration with the catalog are one-time costs. Recurring work includes reviewing contracts when schemas change, responding to failed checks, updating terms as consumers change and keeping the OpenMetadata platform itself upgraded. OpenMetadata maintenance releases arrive about every one to two weeks, so someone must own upgrades. Ask the partner to state which items are included in the fixed scope and which would move to a support retainer.

How do we confirm a data contract is actually being enforced?

Confirm enforcement by checking that each contract maps to tests that run on a schedule and that failures reach a named owner. Ask whether the scope includes test execution results visible in OpenMetadata, alerting routes and a documented process for a failed contract, including who can pause a data product. Enforcement also depends on access control, so confirm which accounts can edit contract terms. A written acceptance test for each contract is a useful check before sign-off.

What should we ask for in a written scope before hiring help?

Ask for a scope that lists the tables, topics and data products in or out of scope, the OpenMetadata version and deployment model, and the ODCS exchange requirements. Request the assumptions behind effort, the dependencies on your owners, the acceptance criteria for each contract and the handover plan. Also ask how changes to scope are priced and approved. DeployOpen works from a written scope agreed before work starts, so a clear scope document is the basis for an accurate quote.

How DeployOpen scopes and delivers OpenMetadata data contracts

DeployOpen plans, implements, tests, documents and supports self-hosted OpenMetadata inside your own infrastructure. For data contracts, we start from the tables, topics and data products you need to cover, agree on who owns each contract, and build the checks and exchange formats around that agreed scope.

How we scope

  • Inventory the tables, topics and data products that need contracts, with named owners for each.
  • Agree the schema, quality and SLA expectations per contract in writing before any build starts.
  • Confirm which connectors, roles and ODCS exchange files are in the fixed scope and which are not.

How we build

  • Configure contract definitions in OpenMetadata and link them to the matching catalog assets.
  • Wire data quality tests and freshness checks so contract execution results are recorded per asset.
  • Test contract failures, alert routing and ODCS import and export against sample data before rollout.

How we hand over

  • Document each contract, its owner, its checks and the steps for changing or retiring it.
  • Walk your data platform and governance teams through execution results and failure handling.
  • Deliver configuration as code where possible so changes can be reviewed and tracked in your own repositories.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after go-live.
  • Review contract coverage and execution history with your owners at agreed intervals.
  • Plan OpenMetadata upgrade testing against release notes so contract definitions keep working across versions.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.