<!-- AUTOGENERATED from CHANGELOG.md by docs/scripts/generate-release-notes.mjs. Do not edit by hand. -->

# Release Notes

Every released version of the Data Contract CLI, newest first. The CLI follows
[Semantic Versioning](https://semver.org/spec/v2.0.0.html); breaking changes are
marked as such in the entry.

- Install or upgrade with `uv tool install --upgrade datacontract-cli` or `pip install --upgrade datacontract-cli` — see [Installation](./installation.md).
- Packages: [PyPI](https://pypi.org/project/datacontract-cli/#history) · [Docker Hub](https://hub.docker.com/r/datacontract/cli/tags) · [GitHub releases](https://github.com/datacontract/datacontract-cli/releases)

## Unreleased {#unreleased}

### Added
- `datacontract test` and `datacontract import sqlserver` sign in to SQL Server with an Entra ID access token read from a file (`DATACONTRACT_SQLSERVER_AUTHENTICATION=token`, `DATACONTRACT_SQLSERVER_TOKEN_FILE_PATH`) ([#1830](https://github.com/datacontract/datacontract-cli/issues/1830) [@SreeramaYeshwanthGowd](https://github.com/SreeramaYeshwanthGowd))

### Fixed
- `datacontract test` checks the constraints and quality rules of nested properties (struct fields and array items) on Dremio servers
- `datacontract test` finds tables in Postgres schemas with upper case letters, such as `"Reporting"`
- `datacontract test` checks the other columns of a Postgres table with a column of a type ibis cannot read, such as `regclass`
- `datacontract import postgres` and `import sql` no longer map bit strings of more than one bit (`bit(8)`, `bit varying`) to `boolean`

## 1.2.11 — 2026-11-17 {#v1-2-11}

### Added
- Dremio (new `dremio` extra):
  - `datacontract test` tests Dremio servers: the checks run as jobs over Dremio's REST API, in the path the server's `schema` names, so tables and views in nested folders of a source or space are found by their name; a user and password or a personal access token sign in, and the declared `physicalType` is checked against the column types Dremio reports
  - `datacontract import dremio` creates a data contract from the tables and views in a Dremio source, space or folder (`--schema lake.sales.marts`), with the full column types Dremio reports, including the element types of lists and the fields of structs, and a ready-to-test `servers` block
- `datacontract test`:
  - checks the metadata of files on S3, Google Cloud Storage and local servers (size, content type, last modified, user-defined metadata, …) on servers with `format: metadata` ([#1823](https://github.com/datacontract/datacontract-cli/issues/1823))
  - freshness and retention service levels read fields inside a struct (`orders.audit.revision_ts`) ([#1778](https://github.com/datacontract/datacontract-cli/issues/1778) [@travishofmeister](https://github.com/travishofmeister))

### Changed
- `datacontract test`: Azure Blob metadata checks are enabled with the server `format: metadata` instead of the non-standard schema `logicalType: blob` ([#1823](https://github.com/datacontract/datacontract-cli/issues/1823))
- The bundled Data Contract Editor (`datacontract edit`) is updated to 0.1.19

### Fixed
- `datacontract test`:
  - finds columns whose name contains `.` or `[`, also in `{property}` of SQL rules, and no longer reads a name like `a.b` as field `b` of struct `a` ([#1760](https://github.com/datacontract/datacontract-cli/issues/1760),[#1824](https://github.com/datacontract/datacontract-cli/issues/1824) [@eugen-goebel](https://github.com/eugen-goebel))
  - reads tables named `tables`, `databases`, `schemas` or `variables` on DuckDB-backed servers, such as MySQL's `information_schema.TABLES` ([#1823](https://github.com/datacontract/datacontract-cli/issues/1823))
- `datacontract import spark` maps Spark `GeometryType` and `GeographyType` columns to the logical type `object` ([#1836](https://github.com/datacontract/datacontract-cli/issues/1836) [@IchEssBlumen](https://github.com/IchEssBlumen))
- `datacontract dbt sync`: generated tests quote the columns marked `quote: true`, and sync marks names that need quoting on every platform ([#1835](https://github.com/datacontract/datacontract-cli/issues/1835) [@jschoedl](https://github.com/jschoedl))

## 1.2.10 — 2026-11-14 {#v1-2-10}

### Added
- `datacontract export`:
  - `polars`: export the schemas as Polars `pl.Schema` definitions ([#1552](https://github.com/datacontract/datacontract-cli/issues/1552) [@DariusHQ](https://github.com/DariusHQ) [@Sruthi-23](https://github.com/Sruthi-23))
  - `html` renders Markdown in descriptions and links the diagram to the schema tables ([#1775](https://github.com/datacontract/datacontract-cli/issues/1775),[#1826](https://github.com/datacontract/datacontract-cli/issues/1826) [@dmaresma](https://github.com/dmaresma))
  - `mermaid` draws ODCS v3.2 relationships, shrinks diagrams too large to render, and handles `$` in names ([#1775](https://github.com/datacontract/datacontract-cli/issues/1775) [@dmaresma](https://github.com/dmaresma))
  - `sql` writes MySQL table and column descriptions as `COMMENT`s ([#1811](https://github.com/datacontract/datacontract-cli/issues/1811) [@ReguiguiMohamed](https://github.com/ReguiguiMohamed) [@justinmcgowanlsi](https://github.com/justinmcgowanlsi))
- `datacontract test`, `ci` and `lint`: `--output-format oors` writes the results as an Open Observability Results Standard (OORS) v0.8.1 document (experimental) ([#1796](https://github.com/datacontract/datacontract-cli/issues/1796))
- `datacontract test`:
  - a schema with the custom property `additionalProperties: false` fails on columns it does not declare; `datacontract import jsonschema` and `export jsonschema` map it to and from the JSON Schema keyword ([#1722](https://github.com/datacontract/datacontract-cli/issues/1722),[#1825](https://github.com/datacontract/datacontract-cli/issues/1825) [@markhm](https://github.com/markhm) [@lairdman7](https://github.com/lairdman7))
  - reads the tables of an `iceberg` server at a tag, branch, or snapshot ID set with `DATACONTRACT_ICEBERG_REF` ([#1828](https://github.com/datacontract/datacontract-cli/issues/1828) [@JdataNich](https://github.com/JdataNich))
  - test Excel sheets whose header is not in the first row, with an `xlsxRange` custom property per schema, and fail a sheet whose header row is empty ([#1793](https://github.com/datacontract/datacontract-cli/issues/1793) [@nicolehazel](https://github.com/nicolehazel))
- `datacontract catalog --format markdown` writes the catalog as Markdown pages with an `index.md` ([#1775](https://github.com/datacontract/datacontract-cli/issues/1775) [@dmaresma](https://github.com/dmaresma))
- `datacontract changelog --output-format json|yaml`: print the changelog as JSON or YAML to process it with other tools ([#1792](https://github.com/datacontract/datacontract-cli/issues/1792) [@eugen-goebel](https://github.com/eugen-goebel))
- `datacontract test` and `datacontract import` authenticate to Azure through the Azure credential chain (e.g. `az login`) when no service principal is configured ([#1797](https://github.com/datacontract/datacontract-cli/issues/1797) [@dmaresma](https://github.com/dmaresma))
- Error messages link to the matching docs page: the server type's reference page when `datacontract test` fails, the format's guide when `import` or `export` fails, and the installation page when an optional dependency is missing
- Trino connections support custom HTTP headers via `DATACONTRACT_TRINO_HTTP_HEADERS` ([#1809](https://github.com/datacontract/datacontract-cli/issues/1809) [@starhel](https://github.com/starhel))

### Changed
- `datacontract lint` and `datacontract test` fail on duplicate schema, property, server and role names, and on duplicate `id`s within the same array; checks are skipped with a custom `--json-schema` ([#1771](https://github.com/datacontract/datacontract-cli/issues/1771) [@gkoenig](https://github.com/gkoenig))
- `datacontract export markdown` includes a Mermaid entity relationship diagram; `--no-mermaid` leaves it out ([#1775](https://github.com/datacontract/datacontract-cli/issues/1775) [@dmaresma](https://github.com/dmaresma))

### Security
- `datacontract api` keeps a Trino JWT token held in the server's environment from hosts a request chooses ([#1809](https://github.com/datacontract/datacontract-cli/issues/1809))

### Fixed
- `datacontract test` works without network access when the `xlsx`, `s3`, `gcs` or `azure` extra is installed ([#1800](https://github.com/datacontract/datacontract-cli/issues/1800) [@nicolehazel](https://github.com/nicolehazel))
- Inlining a linked definition merges `logicalTypeOptions` key by key, and allowed values the contract declares in an older form (`logicalTypeOptions.enum`, the `enum` custom property, the `invalidValues` quality rule) win over the definition's `enum` ([#1812](https://github.com/datacontract/datacontract-cli/issues/1812))
- `datacontract dbt sync` inlines the definitions a contract's properties link to, like `lint`, `test` and `export` ([#1765](https://github.com/datacontract/datacontract-cli/issues/1765) [@bonamim](https://github.com/bonamim))
- `datacontract export markdown` writes `customProperties` as bullets, not a Python dump ([#1775](https://github.com/datacontract/datacontract-cli/issues/1775) [@dmaresma](https://github.com/dmaresma))
- `datacontract catalog`: home links lead to the catalog's index when it is not hosted at the domain root ([#1810](https://github.com/datacontract/datacontract-cli/issues/1810) [@jpartyka-gemius](https://github.com/jpartyka-gemius))
- `datacontract export sql` quotes MySQL table, view and column names, so reserved words like `order` no longer break the DDL

## 1.2.9 — 2026-10-30 {#v1-2-9}

### Added
- `datacontract test`:
  - loads the custom quality checks a contract uses from Entropy Data when an Entropy Data API key is set, unless the local folder has them
  - check constraints and quality rules on nested properties on Snowflake servers, in `VARIANT` columns as well as structured ones
  - set the BigQuery query location and a Cloud KMS encryption key (CMEK) via `DATACONTRACT_BIGQUERY_LOCATION` / `DATACONTRACT_BIGQUERY_KMS_KEY_NAME` or the server `customProperties` `location` / `kmsKeyName` ([#1728](https://github.com/datacontract/datacontract-cli/issues/1728) [@SabineGl](https://github.com/SabineGl) [@ezno12](https://github.com/ezno12))
  - log in to Snowflake with workload identity federation (AWS, Azure, GCP or OIDC) via `DATACONTRACT_SNOWFLAKE_WORKLOAD_IDENTITY_PROVIDER`, reading an OIDC token from `DATACONTRACT_SNOWFLAKE_TOKEN_FILE_PATH`
- `datacontract export sql`: export a schema with `physicalType: view` as a view ([#1031](https://github.com/datacontract/datacontract-cli/issues/1031) [@dmaresma](https://github.com/dmaresma) [@OGsiji](https://github.com/OGsiji))

### Changed
- The `snowflake` extra supports snowflake-connector-python 5.x and requires at least 3.17
- `datacontract test` matches custom quality check IDs regardless of case
- `datacontract test`: errors about custom quality checks name the folder searched, and the check and its arguments when the database rejects its query

### Security
- `datacontract api` refuses headers that name a file on the server or the server's own workload identity, and keeps Snowflake and Databricks credentials held in the server's environment from hosts a request chooses
- `datacontract api` applies its credential and local file guards to servers declared as `type: custom` with a `customType`, or with an ODCS type synonym such as `postgresql`

### Fixed
- `datacontract test` on BigQuery: SQL quality rules and custom quality checks can name the table without its dataset again ([#1770](https://github.com/datacontract/datacontract-cli/issues/1770))

## 1.2.8 — 2026-10-26 {#v1-2-8}

### Added
- `datacontract test`: test Excel workbooks (`format: xlsx`) (new `xlsx` extra) ([#1717](https://github.com/datacontract/datacontract-cli/issues/1717) [@nicolehazel](https://github.com/nicolehazel))
- `datacontract test`: test API servers whose schemas are served by different endpoints, with an `endpoint` custom property per schema, including relationships across endpoints ([#1780](https://github.com/datacontract/datacontract-cli/issues/1780))
- `datacontract import openapi` imports several operations (repeat `--operation`, or pick them from a list in a terminal) ([#1780](https://github.com/datacontract/datacontract-cli/issues/1780))
- `datacontract edit --language` shows the editor in English, German, Swedish or French
- `datacontract import avro` and `export avro` keep the `aliases` of fields and of the top-level record ([#1744](https://github.com/datacontract/datacontract-cli/issues/1744) [@lairdman7](https://github.com/lairdman7))

### Changed
- The documentation moved from docs.datacontract.com to cli.datacontract.com
- `datacontract lint` and `datacontract test`: reject duplicate keys in a data contract instead of silently keeping the last value ([#1741](https://github.com/datacontract/datacontract-cli/issues/1741) [@kamathramu87](https://github.com/kamathramu87))
- `datacontract breaking` grades more changes to quality rules and to `minimum`/`maximum` bounds instead of warning ([#1761](https://github.com/datacontract/datacontract-cli/issues/1761))
- `datacontract test`: a quality rule that can't use its custom quality check reports `error` instead of `warning` or `failed` ([#1773](https://github.com/datacontract/datacontract-cli/issues/1773))
- `datacontract test`: custom quality checks accept the files Entropy Data writes, with a `default` query and the argument type `any` (`ansi` and `value` still work) ([#1773](https://github.com/datacontract/datacontract-cli/issues/1773))
- `datacontract export odcs`, `import odcs` and `import excel` write a `team` given as a list of members as a team object with `members` (this syntax is preferred by ODCS 3.2) ([#1768](https://github.com/datacontract/datacontract-cli/issues/1768))
- `datacontract export excel`: the ODCS v3.2 template shows a tooltip with the field description on every field label ([#1763](https://github.com/datacontract/datacontract-cli/issues/1763))

### Fixed
- `datacontract changelog` and `datacontract breaking` recognize a quality rule that was named, renamed or moved, instead of reporting it as removed and added ([#1761](https://github.com/datacontract/datacontract-cli/issues/1761))
- `datacontract breaking` no longer flags changes that `datacontract test` does not check ([#1761](https://github.com/datacontract/datacontract-cli/issues/1761))
- Contracts whose `team` is the deprecated list of members no longer fail to export, `import odcs --owner` or `dbt sync` ([#1768](https://github.com/datacontract/datacontract-cli/issues/1768))
- `datacontract export sql`: apostrophes and backslashes in descriptions no longer break ClickHouse and Snowflake `COMMENT` clauses ([#1729](https://github.com/datacontract/datacontract-cli/issues/1729) [@banshee](https://github.com/banshee) [@ezno12](https://github.com/ezno12))
- `datacontract dbt sync`: library metrics (`nullValues`, `missingValues`, `invalidValues`, `duplicateValues`) generate tests that check the metric against its bound ([#1767](https://github.com/datacontract/datacontract-cli/issues/1767))

## 1.2.7 — 2026-10-16 {#v1-2-7}

### Changed
- `datacontract breaking` consistently grades changes from the consumer's perspective by default (previously an inconsistent mix of consumer and producer perspective) ([#1746](https://github.com/datacontract/datacontract-cli/issues/1746))

### Added
- `datacontract test`: API servers send POST requests with query parameters and a JSON body, set by the `method`, `params` and `body` custom properties, and an `X-API-Key` header from `DATACONTRACT_API_HEADER_X_API_KEY` (also used by `datacontract import odata`) ([#1747](https://github.com/datacontract/datacontract-cli/issues/1747))
- `datacontract breaking --perspective consumer|producer` (and `perspective` on `POST /breaking`) selects whose expectations changes are graded against, and the output shows whether each change tightens or loosens the contract ([#1746](https://github.com/datacontract/datacontract-cli/issues/1746))
- `datacontract import openapi` imports POST operations, and writes required query parameters to the `params` custom property ([#1747](https://github.com/datacontract/datacontract-cli/issues/1747))

### Security
- `datacontract api`: a posted contract's `api` server may not reach private network addresses unless the server runs with `--allow-private-network`, and is refused while `DATACONTRACT_API_HEADER_AUTHORIZATION` or `DATACONTRACT_API_HEADER_X_API_KEY` is set on the server ([#1747](https://github.com/datacontract/datacontract-cli/issues/1747))

## 1.2.6 — 2026-10-13 {#v1-2-6}

### Changed
- A `null` in the `enum` of a required property is a validation error ([#1742](https://github.com/datacontract/datacontract-cli/issues/1742))
- `datacontract test`:
  - every nested property, array item and map key and value gets its own type check, with a nested `physicalType` checked on Athena, Trino, Databricks, BigQuery, Snowflake, ClickHouse and Hive ([#1719](https://github.com/datacontract/datacontract-cli/issues/1719))
  - a property whose data cannot hold the structure declared inside it fails its own type check, and the checks inside it are reported as warnings ([#1719](https://github.com/datacontract/datacontract-cli/issues/1719))
  - a property with `properties`, `items` or a `map` block but no type is checked as an object, array or map ([#1719](https://github.com/datacontract/datacontract-cli/issues/1719))
- `datacontract import glue`, `athena`, `unity`, `hive` and `clickhouse`: arrays, structs and maps get their base type as `physicalType`, their items, fields, keys and values keep their own ([#1719](https://github.com/datacontract/datacontract-cli/issues/1719))

### Fixed
- `datacontract test`:
  - a `null` among an `enum` or `validValues` no longer lets every other value pass ([#1742](https://github.com/datacontract/datacontract-cli/issues/1742))
  - a declared `physicalType: json`, `jsonb` or `variant` matches a json column on servers whose native types are not read ([#1719](https://github.com/datacontract/datacontract-cli/issues/1719))
  - rules on the key or value of a map are reported as warnings instead of being ignored ([#1719](https://github.com/datacontract/datacontract-cli/issues/1719))
- `datacontract export jsonschema` and `datacontract test` on JSON files allow `null` for an optional property with an `enum` ([#1742](https://github.com/datacontract/datacontract-cli/issues/1742))

## 1.2.5 — 2026-10-12 {#v1-2-5}

### Changed
- `datacontract lint --all-errors`: unknown fields are warnings instead of errors, unless a custom `--schema` rejects them

### Added
- `datacontract import postgres` imports primary and foreign keys from the Postgres catalog, also for SELECT-only roles ([#1709](https://github.com/datacontract/datacontract-cli/issues/1709) [@vtulus](https://github.com/vtulus))
- `datacontract edit`: enable the editor's AI assistant via `DATACONTRACT_EDITOR_AI_*` environment variables (endpoint, API key, model, provider, auth header)
- `datacontract test`: check constraints and quality rules on nested properties on Athena and Trino servers
- `DATACONTRACT_CONNECT_TIMEOUT` (default 30 seconds): `datacontract test` on Postgres, Redshift, MySQL and SQL Server fails with a connection error instead of waiting forever for a server that does not answer, e.g. on a wrong port

### Fixed
- `datacontract lint` and `datacontract test`: warn about unknown fields, such as a misspelled `quality`, instead of silently ignoring them (will be an error in the next major version in January 2027)
- `datacontract import sqlserver` and the physical type checks of `datacontract test` work on case-sensitive SQL Server databases such as Microsoft Fabric warehouses ([#1705](https://github.com/datacontract/datacontract-cli/issues/1705) [@Octacon100](https://github.com/Octacon100))
- `datacontract import`: Postgres and DuckDB `uuid` columns import as `string` with format `uuid` instead of without a logicalType
- `datacontract dbt sync`: generated composite primary key, length, pattern and range tests work on Databricks, BigQuery and Snowflake ([#1713](https://github.com/datacontract/datacontract-cli/issues/1713))
- `datacontract api`: the endpoints run in a thread pool, so a slow or hanging `POST /test` no longer blocks every other request to the server

## 1.2.4 — 2026-10-06 {#v1-2-4}

### Added
- `datacontract test`: custom quality checks, SQL checks defined once in a folder (`--custom-quality-checks`) and used by name from a contract's quality rules ([#1703](https://github.com/datacontract/datacontract-cli/issues/1703))
- `datacontract test`: check that foreign keys declared under `relationships` have no values missing from the referenced schema ([#1691](https://github.com/datacontract/datacontract-cli/issues/1691),[#1698](https://github.com/datacontract/datacontract-cli/issues/1698) [@jarichb](https://github.com/jarichb))

### Security
- Redact secrets in the MySQL connection string of error messages ([#1706](https://github.com/datacontract/datacontract-cli/issues/1706),[#1708](https://github.com/datacontract/datacontract-cli/issues/1708) [@SabineGl](https://github.com/SabineGl))
- `--debug` tracebacks no longer print local variables, which could hold credentials ([#1708](https://github.com/datacontract/datacontract-cli/issues/1708))

### Fixed
- `datacontract test`: `mustBe` and `mustNotBe` holding a `${VAR}` reference to a number compare with the number, not its text ([#1703](https://github.com/datacontract/datacontract-cli/issues/1703))
- `datacontract test`: SQL quality queries on Athena are read as Trino SQL, so a backslash in a string no longer gets the query refused ([#1703](https://github.com/datacontract/datacontract-cli/issues/1703))

## 1.2.3 — 2026-10-05 {#v1-2-3}

### Added
- ClickHouse and Hive:
  - `datacontract test`: test ClickHouse and Hive servers (new `clickhouse` and `hive` extras) ([#1687](https://github.com/datacontract/datacontract-cli/issues/1687))
  - `datacontract import clickhouse` and `datacontract import hive`: import a data contract from a live ClickHouse or Hive database ([#1687](https://github.com/datacontract/datacontract-cli/issues/1687))
  - `datacontract import sql`: support the `clickhouse` and `hive` dialects ([#1687](https://github.com/datacontract/datacontract-cli/issues/1687))
- XML:
  - `datacontract import xsd`: import a data contract from an XML Schema (XSD) file (new `xml` extra) ([#1684](https://github.com/datacontract/datacontract-cli/issues/1684))
  - `datacontract export xsd`: export a data contract to an XML Schema (XSD) ([#1684](https://github.com/datacontract/datacontract-cli/issues/1684))
  - `datacontract test`: test XML files (`format: xml`) ([#1684](https://github.com/datacontract/datacontract-cli/issues/1684))
- `datacontract import openapi`: import a data contract from the response of a GET operation in an OpenAPI 3.x document
- `datacontract test`: test YAML responses of API servers
- `datacontract export pydantic-model`: export `logicalTypeOptions` as `pydantic.Field` constraints ([#1678](https://github.com/datacontract/datacontract-cli/issues/1678),[#1679](https://github.com/datacontract/datacontract-cli/issues/1679) [@amassoudi](https://github.com/amassoudi))
- `datacontract export dbt-models` and `dbt-sources` write a property's `meta` custom property to the column's `config.meta` ([#1655](https://github.com/datacontract/datacontract-cli/issues/1655),[#1661](https://github.com/datacontract/datacontract-cli/issues/1661) [@lguyaux](https://github.com/lguyaux))

### Changed
- `datacontract export dbt-models`, `datacontract export dbt-sources` and `datacontract dbt sync` nest generic-test parameters under `arguments:` **(we now require dbt 1.10+)** ([#1680](https://github.com/datacontract/datacontract-cli/issues/1680),[#1682](https://github.com/datacontract/datacontract-cli/issues/1682) [@opencode13241-eng](https://github.com/opencode13241-eng) [@benvdh](https://github.com/benvdh))
- `datacontract export pydantic-model`: optional fields default to `None` ([#1678](https://github.com/datacontract/datacontract-cli/issues/1678),[#1679](https://github.com/datacontract/datacontract-cli/issues/1679) [@amassoudi](https://github.com/amassoudi))
- `datacontract test`:
  - an optional field that no record of a JSON, YAML or XML document has is no longer reported as missing
  - warns when the column types cannot be read from the catalog, as the physical type checks then compare only the logicalType ([#1688](https://github.com/datacontract/datacontract-cli/issues/1688))
  - `glue`, `kinesis` and `sftp` servers report that they are valid ODCS but cannot be tested yet, like the other untestable server types ([#1688](https://github.com/datacontract/datacontract-cli/issues/1688))

### Fixed
- `datacontract export dbt-models` and `dbt-sources` write column `meta` and `tags` under `config`, so dbt Fusion accepts the output ([#1661](https://github.com/datacontract/datacontract-cli/issues/1661))
- `datacontract test`:
  - reports "no checks were executed" instead of failing when nothing was tested ([#1504](https://github.com/datacontract/datacontract-cli/issues/1504),[#1675](https://github.com/datacontract/datacontract-cli/issues/1675))
  - a JSON record that breaks the JSON Schema no longer stops the other checks, and every such record is reported
  - JSON schema validation on S3 checks every file matched by the location, not only the last one ([#1511](https://github.com/datacontract/datacontract-cli/issues/1511),[#1673](https://github.com/datacontract/datacontract-cli/issues/1673) [@AdamoElProfesor](https://github.com/AdamoElProfesor))
  - JSON schema validation on S3 uses the AWS credential chain ([#1683](https://github.com/datacontract/datacontract-cli/issues/1683))
  - a JSON value of the wrong type fails the JSON Schema check, not every check on its column
  - the JSON Schema check reads `.jsonl` and `.ndjson` files, and files without a `delimiter` the way DuckDB does
  - constraints on the items of an array of plain values (`pattern`, `enum`, `minimum`, …) are checked
  - required fields of an absent optional object are no longer reported as missing ([#1684](https://github.com/datacontract/datacontract-cli/issues/1684))
  - JSON files that are not found are reported instead of failing with a TypeError
  - a duplicate check on a composite primary key no longer breaks the JSON output and `run.pretty()` ([#1687](https://github.com/datacontract/datacontract-cli/issues/1687))
  - a `DATACONTRACT_MAX_ERRORS` below 1 is reported as a configuration error ([#1673](https://github.com/datacontract/datacontract-cli/issues/1673) [@AdamoElProfesor](https://github.com/AdamoElProfesor))
- `datacontract import jsonschema`:
  - resolves local `$ref`s and merges `allOf`, which imported as strings or not at all
  - imports `const`, `additionalProperties` as a map, `minItems`, `maxItems`, `uniqueItems`, `multipleOf` and `examples`, and warns about the keywords it leaves out
  - boolean schemas (`true`, `false`) no longer fail the import
- `datacontract import dbt` keeps column `meta` instead of silently dropping it: `classification` maps to ODCS `classification`, the other entries to a `meta` custom property ([#1655](https://github.com/datacontract/datacontract-cli/issues/1655),[#1661](https://github.com/datacontract/datacontract-cli/issues/1661) [@lguyaux](https://github.com/lguyaux))
- `datacontract import sql`: the fields of a `STRUCT` column are no longer imported as columns of the table ([#1688](https://github.com/datacontract/datacontract-cli/issues/1688))
- `datacontract export html`: add schema and property anchors (`#<schema name>.<property name>`) and nested objects in array `items` back ([#1676](https://github.com/datacontract/datacontract-cli/issues/1676),[#1677](https://github.com/datacontract/datacontract-cli/issues/1677) [@dmaresma](https://github.com/dmaresma))
- `datacontract api`: authoritative definitions are looked up with the Entropy Data API key sent with the request again (since v1.2.1, the API was unable to resolve authoritative definitions if ENTROPY_DATA_API_KEY was unset) ([#1681](https://github.com/datacontract/datacontract-cli/issues/1681))
- `datacontract api` caches authoritative definitions for only 60s, previously until the next restart ([#1681](https://github.com/datacontract/datacontract-cli/issues/1681))
- `datacontract export sodacl`: date and timestamp `minimum`/`maximum` no longer fail in soda-core ([#1662](https://github.com/datacontract/datacontract-cli/issues/1662),[#1665](https://github.com/datacontract/datacontract-cli/issues/1665) [@AdamoElProfesor](https://github.com/AdamoElProfesor) [@parvin-97](https://github.com/parvin-97))
- `datacontract test` and `datacontract import s3`: public S3 buckets are read at the server's `endpointUrl` ([#1683](https://github.com/datacontract/datacontract-cli/issues/1683))

## 1.2.2 — 2026-09-25 {#v1-2-2}

### Added
- `datacontract api`: `--contract-variables` and `--allow-local-files` options, as alternatives to their environment variables
- `datacontract import odata` creates a datacontract from OData 4 metadata at a URL or from a local file ([#1649](https://github.com/datacontract/datacontract-cli/issues/1649) [@jahlen](https://github.com/jahlen))
- `datacontract export` writes SQL Server `VECTOR(n)` and `VECTOR(n, float16)` vector types
- `datacontract test` checks constraints and quality rules of nested properties on servers read through DuckDB ([#1278](https://github.com/datacontract/datacontract-cli/issues/1278))

### Changed
- `datacontract lint` and `datacontract test`: a quality rule the CLI cannot run is reported as a warning instead of being silently dropped
- The bundled Data Contract Editor (`datacontract edit`) is updated to 0.1.14
- `${VAR}` references are accepted in fields with a fixed set of values (`quality.type`, `quality.metric`, `quality.dimension`, `logicalType`, `servers[].type`); `datacontract test` fails when one resolves into anything else
- `datacontract test` reports nested checks it cannot run and unsupported type checks on parquet files as warnings ([#1278](https://github.com/datacontract/datacontract-cli/issues/1278))

### Security
- `datacontract api`:
  - a posted data contract resolves `${VAR}` only from the variables allow-listed with `--contract-variables`
  - a `${X:-local}` server type no longer slips past the checks for local files and environment-held credentials
- `datacontract test`: a SQL quality rule on a `mysql` server can no longer reach the MySQL server or its credentials; rules on `mysql` and `iceberg` servers are read as DuckDB SQL

### Fixed
- Loading a DCS contract dropped quality rule `arguments`, so `invalidValues` and `missingValues` rules lost their configuration
- `datacontract test --dry-run`: a check that could not be planned no longer reports the run as `skipped`
- Non-ASCII characters in data contract and import source files are now decoded as UTF-8, fixing garbling on Windows ([#1650](https://github.com/datacontract/datacontract-cli/issues/1650) [@ymurong](https://github.com/ymurong))
- `datacontract test`: SQL quality rule placeholders are quoted when the name needs it (e.g. a column with a space), and a query that does not parse reports the parse error ([#1653](https://github.com/datacontract/datacontract-cli/issues/1653))
- `datacontract import spark` preserves `varchar(...)` and `char(...)` types nested inside `struct`, `array` and `map` columns instead of widening them to `string` ([#1634](https://github.com/datacontract/datacontract-cli/issues/1634) [@IchEssBlumen](https://github.com/IchEssBlumen))
- `datacontract import jsonschema` keeps the type of nullable `anyOf`/`oneOf` properties and warns about union types ([#1278](https://github.com/datacontract/datacontract-cli/issues/1278))
- `datacontract export sodacl` warns about the nested properties it leaves out ([#1278](https://github.com/datacontract/datacontract-cli/issues/1278))

## 1.2.1 — 2026-09-22 {#v1-2-1}

### Highlights
- Support for SAP HANA and Exasol

### Added
- `datacontract test`:
  - supports SAP HANA Cloud and SAP Datasphere through the optional `hana` extra ([#1332](https://github.com/datacontract/datacontract-cli/issues/1332) [@ToniLippmann](https://github.com/ToniLippmann))
  - supports Exasol through the `exasol` extra ([#1335](https://github.com/datacontract/datacontract-cli/issues/1335))
  - on Databricks and Spark checks nested array and struct properties ([#1278](https://github.com/datacontract/datacontract-cli/issues/1278) [@rob-h-w](https://github.com/rob-h-w))
- `datacontract export excel` and `datacontract import excel` support all versions of the Excel template (ODCS v3.0.2, v3.1.0, v3.2.0)
- `datacontract import sql` detects table-level PRIMARY KEY and FOREIGN KEY constraints, derives `unique: true` for single-column keys, and emits property-level `relationships` in the ODCS shorthand format ([#1618](https://github.com/datacontract/datacontract-cli/issues/1618) [@dmaresma](https://github.com/dmaresma))
- `datacontract export great-expectations --checks` restricts the suite to `quality` and/or `properties` expectations ([#1617](https://github.com/datacontract/datacontract-cli/issues/1617) [@julienguilhempartner-spec](https://github.com/julienguilhempartner-spec))
- `datacontract import` warns once per import about column types that have no mapping to a `logicalType` ([#1629](https://github.com/datacontract/datacontract-cli/issues/1629) [@regdat](https://github.com/regdat))

### Changed
- `datacontract lint` validates against the ODCS schema for the `apiVersion` the contract declares, instead of always the newest one
- `datacontract-cli[csv]` installs DuckDB, which `datacontract import csv` needs, instead of pandas
- Internal logging uses named module loggers instead of the root logger ([#1605](https://github.com/datacontract/datacontract-cli/issues/1605) [@sondrfos](https://github.com/sondrfos))

### Security
- `datacontract test` and `datacontract import sqlserver` escape the host, database and driver in the SQL Server connection string, so a `;` in the contract's `servers` block can no longer inject connection keywords
- `datacontract api`:
  - resolves `authoritativeDefinitions` only against the Entropy Data host configured on the server, without following redirects, and answers a failed lookup on every endpoint with `422` and the URL, never with what the host answered
  - answers a non-ASCII `x-api-key` with `403` instead of `500` and warns on failed API key checks
  - `/test` no longer logs the submitted contract
- `datacontract changelog` and `datacontract breaking` no longer interpret contract values as terminal markup

### Fixed
- `datacontract test`:
  - `--filter` reports a duplicate key whose other occurrence lies outside the filtered rows ([#1593](https://github.com/datacontract/datacontract-cli/issues/1593),[#1619](https://github.com/datacontract/datacontract-cli/issues/1619) [@gkhnelbstn](https://github.com/gkhnelbstn))
  - no longer counts `NULL` values as duplicates of each other in uniqueness checks
  - SQL Server / Microsoft Fabric `cli` auth works again on macOS/Linux, and `ActiveDirectoryInteractive` fails fast off Windows instead of timing out ([#1603](https://github.com/datacontract/datacontract-cli/issues/1603) [@johannzv](https://github.com/johannzv))
  - reports a `freshness` service level it cannot interpret as a single failed check instead of aborting the whole run; freshness now also accepts an ISO-8601 duration as its value, like retention
- `datacontract import`:
  - maps timestamp, time, decimal, JSON-like and small integer column types that previously came out as `string` or `date` to the right `logicalType`, including in `avro` and `spark` imports ([#1629](https://github.com/datacontract/datacontract-cli/issues/1629) [@regdat](https://github.com/regdat))
  - `s3`, `gcs` and `adls` accept `--format` again, so Delta tables can be imported ([#1628](https://github.com/datacontract/datacontract-cli/issues/1628) [@regdat](https://github.com/regdat))
  - `sql` warns about statements it cannot parse and therefore skips, such as a `CREATE TABLE` with unquoted hyphens in its name ([#686](https://github.com/datacontract/datacontract-cli/issues/686) [@dwelden](https://github.com/dwelden))
- `datacontract dbt sync` writes the generated-column marker under `config.meta` instead of a top-level `meta` so the model YAML parses under dbt Fusion; files written by an earlier version are migrated on the next sync ([#1633](https://github.com/datacontract/datacontract-cli/issues/1633) [@FredrikBakken](https://github.com/FredrikBakken))
- `datacontract dbt sync` removes a column it generated once the property leaves the contract, without `--prune`; a column the user added their own tests or settings to is kept
- `datacontract changelog` and `datacontract breaking`:
  - report changes in list items that have no name, url or id, such as unnamed `quality` rules
  - report a renamed schema correctly
  - `breaking` recognizes changes to `quality` rules

## 1.2.0 — 2026-09-08 {#v1-2-0}

This release adds support for the [Open Data Contract Standard v3.2.0](https://github.com/bitol-io/open-data-contract-standard/blob/main/CHANGELOG.md) ([#1557](https://github.com/datacontract/datacontract-cli/issues/1557)).

### Fixed
- Iceberg testing uses AWS SSO credentials for S3 Tables data files and supports logical table aliases.
- Iceberg catalog imports supply a catalog name, preserve qualified table identifiers, and correctly map temporal and binary fields.
- `datacontract test` checks vector element types when the data source reports them ([#1585](https://github.com/datacontract/datacontract-cli/issues/1585))

### Added
- `datacontract test` resolves variables in property names, enum values, nested type options, library quality arguments, and service levels ([#1583](https://github.com/datacontract/datacontract-cli/issues/1583))
- Lint requires vector dimensions and rejects duplicate enum values regardless of their labels ([#1586](https://github.com/datacontract/datacontract-cli/issues/1586))
- Contracts declaring `apiVersion: v3.2.0` lint and round-trip, including `enum`, `map`, `vector`, `semanticType`, `synonyms`, `deprecated`, `context`, variables in string values, and the new server types ([#1558](https://github.com/datacontract/datacontract-cli/issues/1558))
- `datacontract export avro-idl` writes `map<...>` and `array<float>` for `map` and `vector` properties; `datacontract export sqlalchemy` writes `JSON` and `ARRAY(Float)` ([#1558](https://github.com/datacontract/datacontract-cli/issues/1558))
- `datacontract test` resolves `${VAR}` and `${VAR:-default}` references in server fields and SQL quality queries from the environment; an unset variable without a default fails the run with its name, and `export` keeps the references ([#1559](https://github.com/datacontract/datacontract-cli/issues/1559))
- Server `port` may be a string such as `${DB_PORT}`, including in Excel imports; config files accept `${VAR:-default}` ([#1559](https://github.com/datacontract/datacontract-cli/issues/1559))
- `enum` on properties is read by `datacontract test`, the jsonschema, avro, avro-idl, protobuf, pydantic-model, dcs, great-expectations, sodacl and data-caterer exporters, and dbt test mapping, ahead of `logicalTypeOptions.enum`, the `enum` custom property and the `invalidValues` rule; HTML export lists the values with labels and descriptions ([#1560](https://github.com/datacontract/datacontract-cli/issues/1560))
- `datacontract import` from JSON Schema, Avro, Protobuf and DCS writes allowed values as `enum` entries instead of an `invalidValues` quality rule or custom properties ([#1560](https://github.com/datacontract/datacontract-cli/issues/1560))
- `datacontract export pydantic-model` types an enumerated string or integer property as `typing.Literal` ([#1560](https://github.com/datacontract/datacontract-cli/issues/1560))
- `logicalType: map` with a `map` block (`key` and `value` as full property definitions) is a first-class type: `datacontract test` checks the key and value types, including nested objects and maps, on DuckDB, Databricks, Snowflake, Trino, Kafka and the file sources ([#1562](https://github.com/datacontract/datacontract-cli/issues/1562))
- `datacontract export` writes native map types for snowflake, databricks, dataframe, duckdb (local, s3), clickhouse, trino, spark, iceberg, avro, avro-idl, protobuf, pydantic-model, go and dcs, JSON for postgres, mysql, sqlserver, oracle and bigquery, and `additionalProperties` for jsonschema; HTML shows the key and value types ([#1562](https://github.com/datacontract/datacontract-cli/issues/1562))
- `datacontract import` from sql, databricks/unity, spark, glue, iceberg, avro, parquet and dcs writes `logicalType: map` with the key and value instead of `physicalType: map` with custom properties; the `mapKeyType`, `mapValueType`, `mapKeys` and `mapValues` custom properties are still read but deprecated ([#1562](https://github.com/datacontract/datacontract-cli/issues/1562))
- `logicalType: vector` with `logicalTypeOptions.dimensions` is a first-class type: `datacontract test` accepts a native vector or an array of numbers and compares the dimensions when the column states them; `export` writes `vector(n)` for postgres, `VECTOR(FLOAT, n)` for snowflake, `FLOAT[n]` for duckdb, `vector(n)` for mysql, arrays of floats for databricks, dataframe, trino, clickhouse, bigquery, spark, iceberg, avro, avro-idl, protobuf, pydantic-model, go and dcs, and a fixed-length array of numbers for jsonschema ([#1563](https://github.com/datacontract/datacontract-cli/issues/1563))
- `datacontract import` from sql, postgres and snowflake reads `vector(n)`, `halfvec(n)` and `VECTOR(FLOAT, n)` columns as `logicalType: vector` with their dimensions, and parquet reads a fixed-size list of floats the same way ([#1563](https://github.com/datacontract/datacontract-cli/issues/1563))
- `datacontract export html` renders `semanticType`, `synonyms`, `deprecated` and `context` on schema objects and properties, the contract-level `context`, `vendor` on custom properties, and `customProperties` and `authoritativeDefinitions` on SLA entries; `export rdf` writes `enum` entries, `synonyms`, `map` definitions, `customProperties` and other nested definitions as nodes of their own instead of dropping them or printing a model repr ([#1561](https://github.com/datacontract/datacontract-cli/issues/1561))
- `datacontract changelog` matches `synonyms`, `enum` entries, `context` statements and constraints, and the nested lists of SLA entries by their natural key, and relationships by `id` when present, instead of by position ([#1561](https://github.com/datacontract/datacontract-cli/issues/1561))
- `datacontract test` reads CSV files from local, s3, gcs and azure servers and Kafka JSON messages in the server's declared `encoding`, and uses the Athena `workgroup` (also `DATACONTRACT_ATHENA_WORKGROUP`), which makes `stagingDir` optional ([#1564](https://github.com/datacontract/datacontract-cli/issues/1564))
- The ODCS v3.2.0 server types `hana`, `iceberg`, `exasol`, `teradata`, `ingres`, `vectorwise`, `versant` and `poet` lint and export; `test` explains that it cannot connect to them yet, and the synonyms `fastobjects` and `btrieve` resolve to `poet` and `zen` ([#1564](https://github.com/datacontract/datacontract-cli/issues/1564))
- `datacontract export sql --sql-server-type auto` warns before falling back to the snowflake dialect for a server type without one ([#1564](https://github.com/datacontract/datacontract-cli/issues/1564))
- `datacontract test` supports the `iceberg` server type: tables are read from the REST catalog named by `catalogUrl`, `namespace` and `warehouse` with pyiceberg (credentials via `DATACONTRACT_ICEBERG_CREDENTIAL` or `DATACONTRACT_ICEBERG_TOKEN`, data files via the S3 options; `DATACONTRACT_ICEBERG_CATALOG_TYPE` selects a `sql`, `glue` or `hive` catalog instead of `rest`, `DATACONTRACT_ICEBERG_S3_ENDPOINT` points at an S3-compatible store, Amazon S3 Tables and the Glue REST endpoint are signed with SigV4 from the AWS credentials, `DATACONTRACT_ICEBERG_PROPERTIES` passes further catalog properties through), and `datacontract import iceberg --catalog-url` creates a contract from a catalog table with a ready-to-test server ([#1565](https://github.com/datacontract/datacontract-cli/issues/1565))

### Changed
- `datacontract breaking` detects enum restrictions and vector shape changes ([#1584](https://github.com/datacontract/datacontract-cli/issues/1584))
- `datacontract init` and all importers write `apiVersion: v3.2.0` ([#1558](https://github.com/datacontract/datacontract-cli/issues/1558))
- The bundled Data Contract Editor (`datacontract edit`) is updated to 0.1.13 ([#1566](https://github.com/datacontract/datacontract-cli/issues/1566))
- `open-data-contract-standard` dependency bumped to 3.2.x ([#1558](https://github.com/datacontract/datacontract-cli/issues/1558))
- Lint accepts stable ids with any character except whitespace and `.#/\@!%&^`, as in the released ODCS v3.2.0 schema

## 1.1.3 — 2026-09-03 {#v1-1-3}

### Added
- An `authoritativeDefinitions` link can reference a file next to the contract, either a property in another contract (`url: business.odcs.yaml#schema/orders/properties/order_id`) or a file that is the definition itself (`url: definitions/order_id.odcs.yaml`), resolved relative to the referencing contract ([#1453](https://github.com/datacontract/datacontract-cli/issues/1453))
- `datacontract breaking` command and `POST /breaking` endpoint for breaking change detection ([#1016](https://github.com/datacontract/datacontract-cli/issues/1016) [@pierre-monnet](https://github.com/pierre-monnet))
- `DATACONTRACT_KAFKA_GROUP_PREFIX` environment variable to customise the consumer group ID prefix used during Kafka testing ([#1553](https://github.com/datacontract/datacontract-cli/issues/1553) [@philipp-lutz](https://github.com/philipp-lutz))
- `datacontract test` checks the ODCS array options `minItems`, `maxItems` and `uniqueItems` ([#1514](https://github.com/datacontract/datacontract-cli/issues/1514) [@OGsiji](https://github.com/OGsiji))
- `datacontract export odcs` defaults `status` to `draft` when the source DCS contract has no `info.status` ([#1542](https://github.com/datacontract/datacontract-cli/issues/1542) [@michal-swiatowy](https://github.com/michal-swiatowy))
- `datacontract export great-expectations` covers the `logicalTypeOptions` constraints, attaches contract metadata to every expectation, checks the column set instead of the column order and takes a `--suite-name` ([#1544](https://github.com/datacontract/datacontract-cli/issues/1544) [@julienguilhempartner-spec](https://github.com/julienguilhempartner-spec))
- `datacontract test --dry-run` reports the checks a run would execute without connecting to the server or reading any data ([#1510](https://github.com/datacontract/datacontract-cli/issues/1510) [@OGsiji](https://github.com/OGsiji))

### Fixed
- `datacontract export jsonschema`, `datacontract export avro` and `datacontract test` on local files use a property's `physicalName` as the field name when set, instead of the logical `name` ([#1494](https://github.com/datacontract/datacontract-cli/issues/1494) [@philipp-lutz](https://github.com/philipp-lutz))
- `datacontract import sql` takes the server's `database` and `schema` from a qualified `CREATE TABLE`, instead of always writing placeholders ([#651](https://github.com/datacontract/datacontract-cli/issues/651) [@ReguiguiMohamed](https://github.com/ReguiguiMohamed))
- `datacontract import sql` no longer fails on a DDL file that contains `CREATE SCHEMA` ([#1529](https://github.com/datacontract/datacontract-cli/issues/1529) [@ReguiguiMohamed](https://github.com/ReguiguiMohamed))
- `datacontract test` sums every component of an ISO 8601 retention period, instead of reading only the first one ([#1538](https://github.com/datacontract/datacontract-cli/issues/1538))
- `datacontract test` reports each freshness and retention check result on its own check, instead of writing every result to the first one ([#1515](https://github.com/datacontract/datacontract-cli/issues/1515) [@erikgrip2](https://github.com/erikgrip2))
- `datacontract test --publish` with an empty value runs without publishing, instead of failing ([#1491](https://github.com/datacontract/datacontract-cli/issues/1491))

## 1.1.2 — 2026-08-26 {#v1-1-2}

### Added
- New server type `duckdb` to test the tables inside a DuckDB database file (the file is opened read-only)
- `--dry-run` flag for `datacontract dbt sync` that reports the same plan as a real sync, but writes nothing to disk ([#1513](https://github.com/datacontract/datacontract-cli/issues/1513) [@q-maze](https://github.com/q-maze))
- Test results report how many rows a check found bad out of the rows it read, plus the data quality dimension and the `quality` rule a check comes from ([#1526](https://github.com/datacontract/datacontract-cli/issues/1526))
- `postgresql` is accepted as the ODCS synonym of the `postgres` server type
- `datacontract import pydantic-model` reads the contract description from the module docstring ([#1507](https://github.com/datacontract/datacontract-cli/issues/1507) [@OGsiji](https://github.com/OGsiji))

### Changed
- The `engine` field of test results is now always one of `datacontract-cli`, `dbt` or `jsonschema`; the values `datacontract`, `ibis` and `dbt-sync` no longer occur ([#1505](https://github.com/datacontract/datacontract-cli/issues/1505))
- `datacontract test` and `datacontract ci` report a failed publish of the test results on the console and exit with code 1, instead of silently succeeding
- `datacontract api`:
  - only publishes test results to the Entropy Data platform or the host configured via `ENTROPY_DATA_HOST`; other `publish_url` targets are refused ([#1541](https://github.com/datacontract/datacontract-cli/issues/1541))
  - no longer sends permissive `Access-Control-Allow-Origin: *` headers; it serves no CORS headers at all, since the only browser client is the same-origin Swagger UI
  - no longer reloads on file changes by default; pass `--reload` to enable it (development only)
- A JSON Schema check that could not be run is reported as `skipped`, not `info`

### Security
- `datacontract export html` and `datacontract catalog` now HTML-escape data contract field values, closing a stored cross-site scripting hole
- The Entropy Data API key is only sent to the Entropy Data host, no longer to any host a data contract URL or `--publish` URL points at; set `ENTROPY_DATA_HOST` for a self-hosted deployment
- A `quality.type: sql` rule must be a read-only query; DDL, DML, `COPY`, `ATTACH` and the like are reported as a failed check instead of being executed, for every data source
- `datacontract api`:
  - refuses `servers[].type: local`, so a posted data contract cannot read the files of the server running it; set `DATACONTRACT_CLI_API_ALLOW_LOCAL_FILES=true` to allow it
  - confines the DuckDB connection of a file-based server to the data locations the posted data contract declares
  - refuses to send an environment-held data source credential to a host named by the posted contract, preventing credential exfiltration through a crafted `servers` section
  - compares the `x-api-key` header in constant time to avoid a timing side channel
  - reports the URL of a failed `authoritativeDefinitions` lookup instead of echoing the server-side error reason, which is now logged instead

### Fixed
- A `quality.type: sql` rule is read in the SQL dialect of its server type, so dialect-specific syntax (BigQuery backticks, Snowflake `SAMPLE`, SQL Server `TOP`) is no longer mistaken for an invalid query
- Configuration options that override a server's location (`DATACONTRACT_BIGQUERY_PROJECT`, `DATACONTRACT_POSTGRES_SCHEMA`, and the like) now apply to the whole test run, not just to the connection
- Test results published to Entropy Data no longer drop the quality rule id, category, rule definition and failed samples
- `datacontract test` and `datacontract export sodacl` freshness and retention checks now honor the schema object's and property's `physicalName` ([#1488](https://github.com/datacontract/datacontract-cli/issues/1488) [@erikgrip2](https://github.com/erikgrip2))
- `datacontract test --publish` no longer fails for runs with skipped checks (skipped checks are omitted from the published test results)
- BigQuery: `DATACONTRACT_BIGQUERY_BILLING_PROJECT` no longer overrides the server's `project`, so tables are still read from the data project ([#1358](https://github.com/datacontract/datacontract-cli/issues/1358))
- `datacontract export pydantic-model` exports the ODCS `timestamp` and `time` logical types as `datetime.datetime` and `datetime.time` instead of guessing from the physical type, which turned a `TIMESTAMPTZ` column into a `str` ([#1507](https://github.com/datacontract/datacontract-cli/issues/1507) [@OGsiji](https://github.com/OGsiji))
- `datacontract export pydantic-model` exports the ODCS `date` logical type as `datetime.date` instead of `datetime.datetime` ([#1507](https://github.com/datacontract/datacontract-cli/issues/1507) [@OGsiji](https://github.com/OGsiji))
- `datacontract import pydantic-model` maps `datetime.datetime` to the `timestamp` logical type and `datetime.time` to `time` ([#1507](https://github.com/datacontract/datacontract-cli/issues/1507) [@OGsiji](https://github.com/OGsiji))
- `datacontract export dcs` exports a `pii` custom property as a boolean instead of the string `'True'`

## 1.1.1 — 2026-08-14 {#v1-1-1}

### Added
- SQL quality rules support the `${dataset}`, `${project}`, `${catalog}`, and `${database}` placeholders for the server's values
- `datacontract test --metadata-only` runs only checks that read the schema (field presence and types) and reports checks that read row values as skipped
- `datacontract test --checks` accepts the ODCS terms `properties` and `slaProperties`, keeping `schema` and `servicelevel` as legacy aliases
- Released Docker images are signed with cosign keyless signing, on Docker Hub and the Amazon ECR Public mirror; see [Installation](https://docs.datacontract.com/installation#verifying-the-image) for how to verify them
- `datacontract import pydantic-model` creates a data contract from Pydantic models

### Changed
- `datacontract export excel` uses the ODCS Excel template bundled with the CLI instead of downloading it, so the export works offline; use `--template` for a custom template
- The OpenAPI document of `datacontract api` reports the CLI version, describes every endpoint, parameter, and response model, and names its operations `testDataContract`, `lintDataContract`, `exportDataContract`, and `changelogBetweenDataContracts`
- `DATACONTRACT_CLI_API_KEY` now also protects `POST /lint` and `POST /export`, which previously answered without an API key
- Test results name the check fields `qualityId` and `failedSamples` instead of `quality_id` and `failed_samples`; the old names are deprecated, but still accepted as input and still written next to the new ones
- `datacontract import unity` no longer writes the `databricksType` custom property, which duplicated `physicalType`
- `datacontract export sql --server databricks` keeps the declared length of `varchar(n)` and `char(n)` instead of exporting `STRING`

### Fixed
- `datacontract test` for API servers with `delimiter: array` no longer fails JSON schema validation with `data must be object` ([#1495](https://github.com/datacontract/datacontract-cli/issues/1495))
- `POST /export` answers `422` instead of `500` when the posted data contract cannot be parsed
- `datacontract test` for Databricks no longer fails all checks of a model with a `GEOGRAPHY` or `GEOMETRY` column ([#1483](https://github.com/datacontract/datacontract-cli/issues/1483))
- `datacontract export pydantic-model` no longer emits an unparseable empty class for an object property without properties
- An empty `--publish` value now means "don't publish" instead of failing with a URL validation error

## 1.1.0 — 2026-08-04 {#v1-1-0}

This release drops the pyspark compile-time dependency. The server types `dataframe` and `databricks` still work with a provided Spark session.
This removes the JVM dependency, makes the images much, much smaller (Docker image from 777 MB to 277 MB), and many CVEs are resolved.

### Added
- `DATACONTRACT_KAFKA_MAX_MESSAGES` limits how many messages `datacontract test` reads from a topic, and `DATACONTRACT_KAFKA_TIMEOUT` how long it waits for one

### Changed
- `datacontract test` for Kafka no longer needs PySpark or a Java runtime: `datacontract-cli[kafka]` now installs confluent-kafka, fastavro, and DuckDB instead
- `datacontract-cli[databricks]` and `datacontract-cli[dataframe]` no longer install PySpark, so they can no longer shadow the build a Databricks Runtime or EMR cluster provides; supply your own PySpark for the Spark session these server types take, and `databricks-runtime` is now an alias of `databricks`
- `datacontract-cli[all]` installs no PySpark at all, and so needs no Java runtime
- The Docker image ships no JRE and uses a shell-less base image; a derived image can no longer `RUN pip install`, so `datacontract dbt test`, which needs a dbt adapter, is not available in the container
- `datacontract import unity` resolves struct and array columns into nested properties without PySpark installed
- `spark_exporter.to_spark_schema()`, `to_struct_type()`, `to_struct_field()`, and `to_spark_data_type()` return the exporter's own `SparkDataType` instead of `pyspark.sql.types` objects; use `to_spark_dict()` or the new `to_pyspark_schema()` for real PySpark schemas
- Kafka topics with an Avro union of more than one non-null type are now reported as an error instead of being decoded into a struct of the union's members
- Kafka messages without a value (compaction tombstones) are skipped instead of being checked as a row of nulls

### Fixed
- `datacontract export spark` and `datacontract export great-expectations --engine spark` no longer require PySpark to be installed
- `spark_exporter.to_spark_dict()` reports which PySpark version lacks a type instead of raising a bare `AttributeError`, e.g. `VariantType` before PySpark 4.0
- `datacontract test` for Databricks no longer creates ibis's memtable staging volume, so read-only service principals without `CREATE VOLUME` permission can run tests

## 1.0.17 — 2026-08-01 {#v1-0-17}

### Deprecated
- `DATAMESH_MANAGER_API_KEY`, `DATAMESH_MANAGER_HOST`, `DATACONTRACT_MANAGER_API_KEY`, and `DATACONTRACT_MANAGER_HOST` (and the matching `Config` fields): use `ENTROPY_DATA_API_KEY` and `ENTROPY_DATA_HOST` instead

### Added
- `datacontract export html` fits to datacontract-editor visualization
- `datacontract test --filter` and `--filters` test only the rows matching a SQL predicate, e.g., the latest partition; also available as `filter`/`filters` query parameters on the API server's `POST /test` ([#1463](https://github.com/datacontract/datacontract-cli/issues/1463))
- Credentials and connection options can be passed programmatically via `DataContract(config=...)` and `DataContract.import_from_source(..., config=...)`, using the typed `datacontract.Config` class or a dict keyed by the environment variable names
- The API server accepts per-request credentials on `POST /test` via `datacontract-*` headers (e.g. `datacontract-snowflake-password`)
- Credentials and connection options can be provided in a YAML config file, via `--config-file` (defaults to `./datacontract-config.yaml` or `~/.datacontract/config.yaml`) or `Config.from_yaml()`, with `${VAR}` references resolved from the environment
- New Snowflake connection options: `DATACONTRACT_SNOWFLAKE_TOKEN`, `DATACONTRACT_SNOWFLAKE_PASSCODE`, `DATACONTRACT_SNOWFLAKE_PRIVATE_KEY`, `DATACONTRACT_SNOWFLAKE_NETWORK_TIMEOUT`, `DATACONTRACT_SNOWFLAKE_SOCKET_TIMEOUT`, `DATACONTRACT_SNOWFLAKE_HOST`, `DATACONTRACT_SNOWFLAKE_PORT`
- Config options to override the server details from the data contract (host, port, database, schema, catalog, project, dataset, account, service name, staging directory) for Postgres, MySQL, SQL Server, Oracle, Redshift, Snowflake, BigQuery, Databricks, Trino, Athena, and Impala, e.g. `DATACONTRACT_POSTGRES_HOST` ([#1076](https://github.com/datacontract/datacontract-cli/issues/1076))
- Data contract locations now support `s3://` URLs for commands that read contracts, including `lint`, `test`, `export`, `publish`, `changelog`, and `ci`
- The documentation now supports raw Markdown access by adding a `.md` extension in url ([#1464](https://github.com/datacontract/datacontract-cli/issues/1464))

### Changed
- `datacontract test` against Snowflake only forwards the documented `DATACONTRACT_SNOWFLAKE_*` options to the connector; unknown variables are ignored with a warning
- `DATACONTRACT_SNOWFLAKE_ACCOUNT` overrides the contract's `account` instead of being ignored with a warning
- `DATACONTRACT_DATABRICKS_SERVER_HOSTNAME` overrides the contract's `host`; previously the contract value won when both were set

### Fixed
- `datacontract dbt sync` writes a description on all dbt tests, not only newly-generated ones

## 1.0.16 — 2026-07-31 {#v1-0-16}

### Added
- `datacontract test` reads the Avro schema of a Kafka topic from the Confluent Schema Registry via `DATACONTRACT_KAFKA_SCHEMA_REGISTRY_URL`, `DATACONTRACT_KAFKA_SCHEMA_REGISTRY_USERNAME`, and `DATACONTRACT_KAFKA_SCHEMA_REGISTRY_PASSWORD` ([#1347](https://github.com/datacontract/datacontract-cli/issues/1347))

### Deprecated
- `DATACONTRACT_SNOWFLAKE_PRIVATE_KEY_PATH`, `DATACONTRACT_SNOWFLAKE_PRIVATE_KEY_PASSPHRASE`, and `DATACONTRACT_SNOWFLAKE_CONNECTION_TIMEOUT`: use `DATACONTRACT_SNOWFLAKE_PRIVATE_KEY_FILE`, `DATACONTRACT_SNOWFLAKE_PRIVATE_KEY_FILE_PWD`, and `DATACONTRACT_SNOWFLAKE_LOGIN_TIMEOUT` instead
- `DATACONTRACT_SQLSERVER_TRUSTED_CONNECTION`: use `DATACONTRACT_SQLSERVER_AUTHENTICATION=windows` instead

### Fixed
- `datacontract test` against a Kafka topic reports Avro messages it cannot decode as such, instead of reading every field as null ([#1347](https://github.com/datacontract/datacontract-cli/issues/1347))
- `datacontract test` connects to Databricks with an OAuth service principal again, instead of failing with `Error during request to server` on databricks-sql-connector 4.3.0 and later ([#1389](https://github.com/datacontract/datacontract-cli/issues/1389))
- `DATACONTRACT_SQLSERVER_TRUSTED_CONNECTION` no longer overrides an explicitly set `DATACONTRACT_SQLSERVER_AUTHENTICATION`, so a leftover flag cannot silently downgrade an Entra ID login to Windows authentication
- `datacontract test` passes `DATACONTRACT_IMPALA_AUTH_MECHANISM`, `DATACONTRACT_IMPALA_USE_HTTP_TRANSPORT`, and `DATACONTRACT_IMPALA_HTTP_PATH` to Impala again, so a Cloudera Virtual Warehouse can be reached instead of failing with `TSocket read 0 bytes`
- `datacontract test` passes the `servers` block `catalog` to Athena again, instead of always querying `awsdatacatalog`
- `datacontract test` supports `DATACONTRACT_BIGQUERY_IMPERSONATION_ACCOUNT` again to impersonate a service account
- `datacontract test` applies the documented Snowflake key-pair and timeout variables instead of silently ignoring them: the names they were documented under are not accepted by the Snowflake driver, and now map to the ones that are
- `datacontract dbt sync` does not assume `severity: warn` as default anymore: tests now fail with dbt's default severity unless the contract declares a non-blocking `quality.severity`
- `datacontract dbt sync` no longer drops or misplaces YAML comments that introduce the next column, test, or key

## 1.0.15 — 2026-07-30 {#v1-0-15}

### Added
- `datacontract test` treats a server typed `mssql` as SQL Server, so contracts carrying the ODBC/dbt spelling are testable (ODCS itself only defines `sqlserver`)
- `datacontract test --quality-id` runs a single quality rule by its ODCS `quality.id`, and `--tag` runs every quality rule declaring one of the given `quality.tags` ([#1080](https://github.com/datacontract/datacontract-cli/issues/1080))
- Test results report the `quality_id` and `tags` of the quality rule a check comes from
- New `databricks-runtime` extra for installing inside a Databricks Runtime, where the cluster already provides PySpark: `pip install datacontract-cli[databricks-runtime]` ([#1211](https://github.com/datacontract/datacontract-cli/issues/1211) [@chifu1234](https://github.com/chifu1234))
- The docs Commands reference documents the global options `--version` and `--system-truststore`, and every import and export guide links to its command page and back
- `datacontract test --dimension` runs only the checks measuring one data quality dimension, e.g. `--dimension uniqueness`; it matches the ODCS `quality.dimension` of a rule and the schema and service level checks that measure the same aspect
- New `dataframe` extra installs just what testing Spark DataFrames needs: `pip install datacontract-cli[dataframe]`
- `datacontract import trino` creates a data contract from a Trino catalog, including a ready-to-test `servers` block
- `datacontract import oracle` creates a data contract from a live Oracle database, including a ready-to-test `servers` block
- `datacontract import gcs` and `datacontract import adls` create a data contract from files in Google Cloud Storage or Azure Blob Storage, including a ready-to-test `servers` block
- `datacontract import sqlserver` creates a data contract from a live SQL Server database, including a ready-to-test `servers` block
- `datacontract import mysql` creates a data contract from a live MySQL database, including a ready-to-test `servers` block
- The documentation has a [Release Notes](https://docs.datacontract.com/release-notes) page, generated from this changelog
- The documentation has a guide to [migrate contracts from DCS to ODCS](https://docs.datacontract.com/migrate-dcs-to-odcs)
- `datacontract import s3` creates a data contract from files in an S3 bucket, including a ready-to-test `servers` block
- `datacontract import athena` creates a data contract from an Amazon Athena database, including a ready-to-test `servers` block
- `datacontract import unity` is now `datacontract import databricks`; the `unity` format name keeps working
- Redshift infers the authentication method: a password means a database login, otherwise your AWS session is used for IAM. `DATACONTRACT_REDSHIFT_AUTHENTICATION` is no longer required and remains as an override
- `datacontract import postgres` creates a data contract from a live Postgres schema, including a ready-to-test `servers` block
- `datacontract import redshift` creates a data contract from an Amazon Redshift schema, including a ready-to-test `servers` block
- Redshift supports IAM authentication, using temporary credentials from your AWS session instead of a database password
- `datacontract import bigquery` now generates a `servers` block, so `datacontract test` works right after the import
- `datacontract test` verifies declared primary keys: each key column must have no missing values, and the key must have no duplicates (a composite key is checked as a tuple) ([#1220](https://github.com/datacontract/datacontract-cli/issues/1220) [@DMZ22](https://github.com/DMZ22))

### Fixed
- `datacontract test` checked `physicalType` against a same-named table in another schema when one existed, because the native column types were read from the catalog without the contract's schema
- `datacontract test` against SQL Server no longer fails every check with "Could not read model" when `server.schema` differs from the login's default schema
- `datacontract-cli[s3]` could not run `datacontract test`, and `datacontract-cli[gcs]` was missing the AWS duckdb extension the GCS connection loads; each data source extra now installs everything its guide needs
- The API testing guide stated that no extra is required, but the response is tested with duckdb; it installs `datacontract-cli[duckdb]` now
- `datacontract test` told users to install `datacontract-cli[local]`, an extra that does not exist, and `datacontract-cli[api]`, which installs the web server rather than a test backend; both now point at `duckdb`
- `datacontract import gcs` wrote `type: gcs`, which is not an ODCS server type, so the imported contract failed `datacontract lint` and `datacontract test`; GCS is now written as an `s3` server on the Google interoperability endpoint
- A data contract could inject SQL into the duckdb session through `endpointUrl`, which is interpolated into the statement that stores the S3, GCS and Azure credentials; every value is escaped now
- The `datacontract api` server accepted a local file path as the `schema` query parameter, so a caller could have it read files from the server's filesystem; only `http(s)` URLs are accepted now
- Trino physical type checks were silently skipped: its `information_schema` has no length or precision columns, so the catalog query failed and a wrong `physicalType` still passed
- `datacontract import athena` and `datacontract import glue` now honour `DATACONTRACT_S3_ACCESS_KEY_ID` and `DATACONTRACT_S3_SECRET_ACCESS_KEY`; the Glue catalog was read with ambient AWS credentials only
- S3 now uses an existing AWS session (`aws sso login`, `AWS_PROFILE`, instance roles) when no access key is configured; previously such a setup failed with `403 Forbidden`
- Documented that Athena authenticates with an existing AWS session (`aws sso login`, `AWS_PROFILE`, instance roles); static access keys were presented as the only option
- `regionName` in an Athena `servers` block was ignored, so the region could only be set via `DATACONTRACT_S3_REGION`
- `datacontract import glue` mapped `timestamp` columns to `logicalType: date` instead of `timestamp`
- Testing and importing Redshift failed with `codec not available in Python: 'UNICODE'`
- Error messages no longer drop bracketed text such as `pip install "botocore[crt]"`
- BigQuery export failed on fields with `logicalType: time`
- Testing Parquet files failed for `number` fields without a declared precision and scale
- CSV and JSON imports now write detected formats (`email`, `uuid`, `date-time`) to `logicalTypeOptions.format` instead of a custom property, so they are validated by `datacontract test`
- SQL imports now map `TIME` types with precision or time zone (e.g. `TIME(9)`) to `logicalType: time`; previously the logical type was left unset
- `datacontract test --checks quality` now runs `rowCount` quality rules, which were wrongly categorized as schema checks
- `datacontract import dbt` derives the contract `id` from the dbt manifest's `project_name` instead of always emitting the placeholder `my-data-contract` ([#1221](https://github.com/datacontract/datacontract-cli/issues/1221) [@DMZ22](https://github.com/DMZ22))
- A `physicalType` declaring a zero scale (`NUMBER(38,0)`, `decimal(18,0)`) failed against its own column on Snowflake, Oracle, SQL Server and Databricks ([#1377](https://github.com/datacontract/datacontract-cli/issues/1377) [@DMZ22](https://github.com/DMZ22))
- Snowflake `physicalType` checks failed for structured `OBJECT`, `ARRAY` and `MAP` columns, whose fields are now compared field by field instead of as rendered strings ([#1377](https://github.com/datacontract/datacontract-cli/issues/1377) [@DMZ22](https://github.com/DMZ22))
- `datacontract test` on Athena failed a `physicalType` written in the Hive spelling `datacontract import athena` produces (`array<string>` against the reported `array(varchar)`) ([#1377](https://github.com/datacontract/datacontract-cli/issues/1377) [@DMZ22](https://github.com/DMZ22))
- A `physicalType` declaring fractional seconds (`TIMESTAMP_NTZ(9)`, `datetime2(7)`, `timestamp(3)`) failed against its own column, so every timestamp column imported from Snowflake failed the first `datacontract test`
- `datacontract test` and `datacontract import oracle` read Oracle character lengths in bytes, so an `NVARCHAR2(50)` column was reported and checked as `NVARCHAR2(100)`
- `datacontract test` on Databricks could not check the element types of `ARRAY`, `MAP` and `STRUCT` columns, which the catalog reports as a bare type name

## 1.0.14 — 2026-07-23 {#v1-0-14}

### Added
- `datacontract export protobuf` supports a customizable package name via the `protoPackageName` custom property ([#1381](https://github.com/datacontract/datacontract-cli/issues/1381) [@Schokuroff](https://github.com/Schokuroff))
- `datacontract export protobuf` emits `optional` for non-required message/object fields ([#1390](https://github.com/datacontract/datacontract-cli/issues/1390) [@Schokuroff](https://github.com/Schokuroff))

### Fixed
- `datacontract dbt sync` resolves `{object}`/`{property}` placeholders in custom `sql` quality checks to the dbt `ref()` and column name ([#1397](https://github.com/datacontract/datacontract-cli/issues/1397))
- SyntaxWarning during installation: `datacontract/lint/resolve.py:72: SyntaxWarning: 'return' in a 'finally' block return except_message` is handled properly ([#1384](https://github.com/datacontract/datacontract-cli/issues/1384) [@Cupprum](https://github.com/Cupprum))
- `datacontract test` no longer reports "backend is not installed" for Athena and other ibis SQL backends when `packaging` is missing from the environment

## 1.0.13 — 2026-07-14 {#v1-0-13}

### Added
- `datacontract test` reports the nested types of a property that declares `properties:` or `items:` as a separate check
- `datacontract test` on Snowflake verifies the `physicalType` of nested properties against the real column type

### Fixed
- `datacontract test` on Snowflake matches a `physicalType` against the alias the catalog reports, such as `BIGINT` on a `NUMBER(38,0)` column
- `datacontract test` no longer reports a mismatch for a `physicalType` without precision, such as `NUMBER` on a `NUMBER(12,2)` column

## 1.0.12 — 2026-07-10 {#v1-0-12}

### Fixed
- `datacontract test` now recursively verifies nested `logicalType` for Snowflake structured `OBJECT`/`ARRAY` columns ([#1373](https://github.com/datacontract/datacontract-cli/issues/1373))
- `datacontract test` now fails for complex types when the nested type definition cannot be verified (e.g. if array<integer> is required, array<json> will no longer be accepted) ([#1373](https://github.com/datacontract/datacontract-cli/issues/1373))

## 1.0.11 — 2026-07-09 {#v1-0-11}

### Added
- `datacontract import` can now import BigQuery type `INTERVAL` ([#1367](https://github.com/datacontract/datacontract-cli/issues/1367),[#1372](https://github.com/datacontract/datacontract-cli/issues/1372) [@fantastisch](https://github.com/fantastisch))

### Fixed
- Failed business definition IRI lookups now suggest the `ENTROPY_DATA_HOST` value to set when the IRI host does not match the configured entropy-data host.
- `datacontract test` no longer reports a physical type mismatch for BigQuery type aliases, such as a `physicalType` of `INTEGER` on an `INT64` column ([#1371](https://github.com/datacontract/datacontract-cli/issues/1371) [@fantastisch](https://github.com/fantastisch))
- `datacontract test` no longer fails with `CANNOT_CONVERT_COLUMN_INTO_BOOL` on Databricks when a Spark session is used

## 1.0.10 — 2026-07-08 {#v1-0-10}

### Added
- extended `datacontract dbt sync`:
  - now edits existing properties files (schema.yaml) in-place instead of creating new ones
  - preserve manual edits to a properties file
  - edit schema incl. descriptions, column types and tags, not only tests
  - add `--prune` flag to remove everything that's not specified in the contract (models, tags, checks) - per default, only generated content gets removed
  - support for multiple contract versions (`versions:` block)
  - possibility to sync multiple contracts at once
  - store the contract id and version in the `meta:` block
- added `datacontract dbt test`: Use local `dbt` to run all tests that have been generated using `datacontract dbt sync` earlier (scoped to a single data contract, or all data contracts in the opened dbt project)
  - optionally publish to Entropy Data

### Changed
- `datacontract dbt sync`:
  - no longer executes tests per default (use `--run-tests` or run `datacontract dbt test` afterwards)
- `datacontract test` now verifies a field's `physicalType` against the column's real native type from the platform catalog (length and precision included), taking precedence over `logicalType` ([#1354](https://github.com/datacontract/datacontract-cli/issues/1354))
- `datacontract test` JSON output now includes `datacontractCliVersion` ([#1353](https://github.com/datacontract/datacontract-cli/issues/1353) [@hk8suva](https://github.com/hk8suva))
- `datacontract test` type-check errors now report the first failing field and a count of the remaining errors ([#1334](https://github.com/datacontract/datacontract-cli/issues/1334) [@jorgengranseth](https://github.com/jorgengranseth))

### Fixed
- `datacontract test` no longer fails the type check for SQL Server `uniqueidentifier` (UUID) columns with "the column type could not be determined" ([#1354](https://github.com/datacontract/datacontract-cli/issues/1354))
- `datacontract test` against BigQuery no longer fails SQL quality checks with `'RowIterator' object has no attribute 'fetchone'`
- `datacontract import` against BigQuery applies correct `logicalType` for BigQuery types `TIMESTAMP`, `DATETIME`, and `TIME` ([#1366](https://github.com/datacontract/datacontract-cli/issues/1366) [@fantastisch](https://github.com/fantastisch)) 

## 1.0.9 — 2026-06-26 {#v1-0-9}

### Fixed
- `datacontract test` against Kafka no longer reports every field as null for plain (non-Confluent Schema Registry) Avro messages ([#1344](https://github.com/datacontract/datacontract-cli/issues/1344))
- Honor the `pattern` argument in `invalidValues` quality checks ([#1346](https://github.com/datacontract/datacontract-cli/issues/1346))

## 1.0.8 — 2026-06-25 {#v1-0-8}

### Fixed
- `datacontract test` against Redshift no longer fails with `relation "pg_catalog.pg_enum" does not exist`. Redshift rides the Postgres ibis backend, whose schema introspection joins `pg_catalog.pg_enum` to detect enum columns — a relation Redshift does not expose. Introspection now omits that join (Redshift has no enum types).

## 1.0.7 — 2026-06-25 {#v1-0-7}

### Added
- New global option `--system-truststore` (env `DATACONTRACT_SYSTEM_TRUSTSTORE`) to verify TLS using the operating system's certificate trust store, for use behind corporate proxies or with internal CAs.

## 1.0.6 — 2026-06-24 {#v1-0-6}

### Fixed
- `datacontract test` against Redshift no longer fails with `column "current_schema" does not exist`. Redshift rides the Postgres ibis backend, whose introspection resolved the active schema with `SELECT current_schema` (no parentheses) — valid on PostgreSQL but rejected by Redshift, which only supports `current_schema()`. The configured server `schema` is now passed explicitly during introspection, skipping that query.

## 1.0.5 — 2026-06-24 {#v1-0-5}

### Fixed
- `datacontract test` now only supports logicalTypes. Previously physicalType was preferrerd and used even if logicalType did not exist. 
- `datacontract test` field type check now compares the full structured type tree for `object` and `array` logical types.
- Unknown and unsupported types are silently ignored rather than failing the check. Specifically the `map` type is not supported until ODCS version v3.2.0 and is also ignored. 
- `datacontract --help` no longer fails with `ModuleNotFoundError: No module named 'ibis'` when the optional `ibis` extra is not installed.
- `datacontract test` against Oracle now qualifies tables with the configured server `schema` (owner), fixing `Could not read model '<table>': <table>` when the login user differs from the table owner.



## 1.0.4 — 2026-06-22 {#v1-0-4}

### Added
- `datacontract test` validates Azure Blob Storage / ADLS Gen2 file metadata against a data contract used as a storage policy ([#1227](https://github.com/datacontract/datacontract-cli/issues/1227))
- `datacontract test` against Trino now supports `DATACONTRACT_TRINO_AUTHENTICATION=jwt` with `DATACONTRACT_TRINO_JWT_TOKEN`, and `DATACONTRACT_TRINO_AUTHENTICATION=oauth2` for the interactive browser flow.
- `datacontract export sql --dialect clickhouse`: export data contracts to ClickHouse SQL DDL. ([#1293](https://github.com/datacontract/datacontract-cli/issues/1293))
- Example data contracts and import sources under `examples/`, used as the worked examples on the docs export and import pages.

### Fixed
- `datacontract import unity` now imports struct and array columns as structured ODCS types instead of only a flat type string: structs get nested `properties`, arrays get `items` (parsed recursively from Unity's `type_json`, including descriptions on nested fields). Arrays also get the correct `logicalType: array` (previously `object`); this logical type fix applies to the `sql` and `snowflake` importers as well. Map columns and other unmappable SQL types now leave `logicalType` unset (instead of the invalid `object`) until ODCS v3.2 adds `logicalType: map` (RFC 0030). ([#1280](https://github.com/datacontract/datacontract-cli/issues/1280))
- `datacontract export dcs` no longer crashes on data contracts with a structured description or a standard server.
- `datacontract test` against Oracle releases before 23ai no longer fails every check with `ORA-00923: FROM keyword not found where expected` during schema introspection.
- `datacontract test` now recognizes Oracle `VARCHAR2`/`NVARCHAR2` (with or without a length, e.g. `VARCHAR2(4000)`) as string types in the field type check.

## 1.0.3 — 2026-06-15 {#v1-0-3}

### Added
- `datacontract import powerbi` imports a data contract from a Power BI semantic model (.pbit, .bim, or .json) ([#1232](https://github.com/datacontract/datacontract-cli/issues/1232),[#1233](https://github.com/datacontract/datacontract-cli/issues/1233) [@dmaresma](https://github.com/dmaresma))

### Changed
- `datacontract edit` shows the edited filename in the editor header, no longer offers New/Load Example/Open, and Cancel reverts to the file on disk

### Fixed
- `datacontract test` no longer aborts remaining quality checks after a SQL quality check falls back to native execution on DuckDB-backed sources ([#1302](https://github.com/datacontract/datacontract-cli/issues/1302))
- Athena: pass `DATACONTRACT_S3_SESSION_TOKEN` to the connection again, fixing `UnrecognizedClientException` with temporary AWS credentials ([#1309](https://github.com/datacontract/datacontract-cli/issues/1309))

## 1.0.2 — 2026-06-11 {#v1-0-2}

### Added
- `datacontract edit` now accepts a URL: it asks to download a local copy and opens that in the editor, using the configured API key (e.g., `ENTROPY_DATA_API_KEY`) to fetch the file.
- BigQuery: added support for a separate billing/compute project via the `DATACONTRACT_BIGQUERY_BILLING_PROJECT` environment variable. When set, query jobs are submitted to (and billed against) the billing project while data is read from the `project` specified in the server config. This enables cross-project and cross-organisation validation without requiring `bigquery.jobUser` on the data project.
### Fixed
- `datacontract test` no longer fails on Spark/Databricks tables containing columns of types ibis cannot represent, such as VariantType ([#1296](https://github.com/datacontract/datacontract-cli/issues/1296))
- The `postgres` and `redshift` extras now install `psycopg[binary]`, whose wheels bundle the libpq client library. Previously, `datacontract test` against PostgreSQL/Redshift failed on machines without PostgreSQL client libraries installed (`couldn't import psycopg: no pq wrapper available`).

## 1.0.1 — 2026-06-10 {#v1-0-1}

### Added
- Environment variables (e.g., credentials for `datacontract test`) are now also loaded from a `.env` file in the current working directory, walking up parent directories until one is found. Already-set environment variables take precedence over `.env` values, so exported variables and CI secrets keep working unchanged. ([#1295](https://github.com/datacontract/datacontract-cli/issues/1295))
- `datacontract edit <file>` opens a local data contract file in the [Data Contract Editor](https://github.com/datacontract/datacontract-editor) (web UI). Starts a local web server (default port 4243, requires the `api` extra) that serves the editor, writes saves directly back to the file, and doubles as the editor's test runner: "Run test" in the editor executes the data contract tests locally via the server's own `/test` endpoint. The editor is bundled with the CLI and works offline; `--editor-version` loads a specific editor version from the CDN instead, `--editor-assets-url` a self-hosted build. If the file does not exist, the command offers to initialize a new data contract (same template as `datacontract init`). Saving gives feedback in the editor and on the console.

### Fixed
- `datacontract test` no longer fails with `Compilation rule for RegexSearch operation is not defined` when a contract uses `logicalTypeOptions.pattern` (or `pattern`) against SQL Server. SQL Server has no native regex operator, so the ibis mssql backend cannot compile `re_search`; pattern checks now fall back to a `PATINDEX(...) > 0` LIKE match, restoring the behaviour of the former soda-core engine. Patterns that use real regex syntax (anchors, quantifiers, groups, `.`) cannot be expressed as a T-SQL LIKE pattern and now raise a clear error instead of failing cryptically. ([#1284](https://github.com/datacontract/datacontract-cli/issues/1284))

## 1.0.0 — 2026-06-04 {#v1-0-0}

### Breaking Changes
- Replaced the Soda Core quality/test engine with [ibis](https://ibis-project.org/). `datacontract test` now compiles schema and quality checks into ibis expressions (dialect-correct SQL per backend via sqlglot, local/remote files via DuckDB) instead of generating SodaCL. Install extras now pull `ibis-framework[<backend>]` instead of `soda-core-*`. Check semantics and pass/fail results are preserved for the supported sources (postgres, redshift, mysql, snowflake, bigquery, databricks, sqlserver, oracle, trino, athena, impala, kafka/dataframe via the ibis Spark backend, and local/S3/GCS/Azure files).
- Raw SodaCL custom quality checks (`quality.type: custom` with `engine: soda`) are no longer executed and now report a warning. Migrate them to `quality.type: sql` or a library metric (e.g. `metric: rowCount`).

### Added
- Python 3.13 and 3.14 support (`requires-python` now allows 3.10–3.14). On 3.13/3.14 the Spark-backed extras resolve to PySpark 4.0 (Spark 3.5 has no 3.13+ build); the Kafka/Avro connector jars already adapt to the runtime Spark/Scala version. `create_spark_session` now pins `PYSPARK_PYTHON`/`PYSPARK_DRIVER_PYTHON` to the running interpreter so Spark's Python workers match the driver.
- `datacontract test` against Databricks now supports more authentication methods beyond the personal access token (`DATACONTRACT_DATABRICKS_TOKEN`): an OAuth service principal for machine-to-machine auth (`DATACONTRACT_DATABRICKS_CLIENT_ID` + `DATACONTRACT_DATABRICKS_CLIENT_SECRET`), a local config profile via the Databricks SDK unified auth (`DATACONTRACT_DATABRICKS_PROFILE`, also covers Azure CLI/MSI), and an explicit connector auth type (`DATACONTRACT_DATABRICKS_AUTH_TYPE`, e.g. `databricks-oauth` for the interactive browser flow).
- `datacontract test` now records structured `diagnostics` on each check explaining why it passed or failed: the metric, measured value, threshold, and (for "bad row" metrics) the total row count and failed fraction. `invalid_count` checks also report the validity rule they enforced (e.g. `{"max_length": 20}`, `{"pattern": "^.+@.+$"}`). The diagnostics surface in the JSON output and the JUnit failure text. This replaces the Soda-specific `diagnostics` payload that the ibis migration had left unpopulated.
- `datacontract test` now honors ODCS `quality.unit: percent` on the count-of-bad-rows library metrics (`nullValues`, `missingValues`, `invalidValues`). The threshold is then compared against the failed fraction (0–100) of the model row count instead of an absolute count, so e.g. `metric: nullValues`, `unit: percent`, `mustBeLessThan: 5` passes when fewer than 5% of rows are null. Percent on metrics where a row fraction has no meaning (`rowCount`, `duplicateValues`) logs a warning and falls back to the absolute count. The measured `percent` is added to the check diagnostics.
- `datacontract test` now honors ODCS `quality.severity`: a non-blocking severity (`info`, `warning`, `low`, `minor`, `trivial`) downgrades a failing quality check to a `warning` instead of a `failed`, so it no longer fails the run. Any other severity (or none) still fails. The severity is recorded in the check diagnostics.
- `datacontract test --include-failed-samples` collects a small sample of the rows that failed each `missing`/`invalid`/`duplicate` check (off by default). Each sample is restricted to the contract's identifier columns (`unique` / `primaryKey` fields) plus the offending column; duplicate checks report the duplicated key values and their counts. Columns whose ODCS `classification` marks them sensitive (`pii`, `personal`, `confidential`, `restricted`, `sensitive`, `secret`) are omitted. Samples are capped at 5 rows per check and surface on `Check.failed_samples` in the JSON output and in the JUnit failure text. This is local-only and needs no Soda Cloud (soda-core itself collects failed-row samples only via Soda Cloud).

### Changed
- MySQL is tested through DuckDB's `mysql` extension instead of ibis's native MySQL backend, so the `mysql` extra stays pure-pip (no `mysqlclient` C build / system MySQL client libraries required).
- Bumped DuckDB to the 1.5.x line (from 1.0.x) with the bundled `duckdb-extension-*` wheels (httpfs/aws/azure) pinned in lockstep. The 1.5.x extension wheels publish arm64 Linux builds, so air-gapped installs on arm64 Linux are now supported (the previous platform skip markers were removed).
- The Kafka/Avro Spark connector jars are now derived from the installed PySpark at runtime (Spark version + Scala binary version), so both PySpark 3.5.x (Scala 2.12) and 4.x (Scala 2.13) work. The `kafka` and `databricks` extras allow `pyspark<5.0`.
- `import protobuf` now uses the pure-Python `proto-schema-parser` instead of the `protoc` system binary. The `protobuf` extra no longer requires `protoc` (or the `protobuf` runtime), so `.proto` import works out of the box, including transitive imports across subdirectories.
- Container image is now based on [Docker Hardened Images](https://hub.docker.com/hardened-images/catalog/dhi/python): signed, ships SBOM/VEX, and has tighter CVE patch SLAs than upstream Debian. Runs as nonroot (uid 65532) instead of root. `pip` / `uv` installs at build time are routed through Socket Firewall Free, which blocks malicious dependencies. ([#1275](https://github.com/datacontract/datacontract-cli/issues/1275), [#1277](https://github.com/datacontract/datacontract-cli/issues/1277))
- Container image now ships Eclipse Temurin JRE 17, so PySpark-backed engines (Kafka, Spark) actually run inside the image — previously they failed at `SparkSession` startup because the base image had no JVM. End users pulling `datacontract/cli` are unaffected by the build-side changes. ([#1277](https://github.com/datacontract/datacontract-cli/issues/1277))

### Fixed
- DuckDB S3 secret creation no longer fails (`Secret Validation Failure`) on DuckDB ≥1.5: explicit `KEY_ID`/`SECRET` now use the default `config` provider instead of `CREDENTIAL_CHAIN`.
- `import csv` no longer fails with a DuckDB binder error on DuckDB ≥1.5 (the uniqueness probe now uses `count(DISTINCT ...)` via SQL).

### Removed
- The `soda-core` runtime dependency and all `soda-core-*` install extras, plus the `setuptools` runtime shim they required. The `sodacl` export format (`datacontract export sodacl`) is unchanged and is now generated independently of any Soda runtime.
- The unused `details` field on test-result checks (`Run.checks[].details`). It was a Soda-era placeholder that was never populated; the new structured `diagnostics` field replaces it. The JUnit failure text no longer prints a `Details:` line.

## 0.12.5 — 2026-05-30 {#v0-12-5}

### Added
- Resolve `authoritativeDefinitions[type=definition]` on schema properties, filling fields the contract author left unset ([#1261](https://github.com/datacontract/datacontract-cli/issues/1261))
  - **Breaking:** Per default, any resolution failure of `authoritativeDefinitions[type in {definition, semantics}]` now rejects the contract on `lint`, `test`, `ci`, `export`, and `changelog`. ([#1261](https://github.com/datacontract/datacontract-cli/issues/1261))
  - Resolve `authoritativeDefinitions[type=semantics]` (and the legacy `type=semantic`) the same way. A `url:` that points at the configured entropy-data host is fetched directly; a `url:` that's an IRI (host doesn't match) is routed through `GET /api/semantics?iri=...` on the configured host, which uses the API key's organization to resolve. ([#1262](https://github.com/datacontract/datacontract-cli/issues/1262))
  - `--no-inline-references` flag to skip the HTTP fetch ([#1261](https://github.com/datacontract/datacontract-cli/issues/1261))
- When `--json-schema` points at a custom JSON Schema, the ODCS Pydantic step now accepts extra top-level fields the schema allows ([#1266](https://github.com/datacontract/datacontract-cli/issues/1266))

### Changed
- JSON Schema validation errors now identify the offending schema and property by name instead of array indices ([#1255](https://github.com/datacontract/datacontract-cli/issues/1255) [@dmaresma](https://github.com/dmaresma))
- `test`, `lint`, and `ci` now infer `--output-format` from the `--output` file extension when not given (`.json` → json, `.xml` → junit) ([#1156](https://github.com/datacontract/datacontract-cli/issues/1156) [@dallylee](https://github.com/dallylee))

### Fixed
- Schema type check no longer fails for `varchar(n)` columns on Databricks with PySpark 4.0+, and for `map` and `varchar` types nested inside `struct` columns; affected columns emit a warning and skip the type check instead ([#1219](https://github.com/datacontract/datacontract-cli/issues/1219),[#1245](https://github.com/datacontract/datacontract-cli/issues/1245) [@IchEssBlumen](https://github.com/IchEssBlumen))
- `WARNING`/`ERROR` log messages are no longer hidden by default for `import`, `export`, `changelog`, `catalog`, `dbt`, and `publish` ([#1264](https://github.com/datacontract/datacontract-cli/issues/1264))
- `datacontract test` against S3, GCS, and Azure no longer fails with `Failed to download extension` in air-gapped containers. The required DuckDB extensions are now bundled via the `s3`/`gcs`/`azure` install extras ([#1191](https://github.com/datacontract/datacontract-cli/issues/1191) [@ParenParikh](https://github.com/ParenParikh))
- JSON/CSV/Parquet with DuckDB: `field_is_present` check now correctly detects missing columns ([#1065](https://github.com/datacontract/datacontract-cli/issues/1065),[#1163](https://github.com/datacontract/datacontract-cli/issues/1163) [@hieusats](https://github.com/hieusats))
- `import dbt --model <name>.vN` now correctly imports the specified version of a versioned dbt model. Previously the filter compared the full `name.vN` string against `node["name"]` (which is always the bare base name), producing a silent empty contract ([#1249](https://github.com/datacontract/datacontract-cli/issues/1249) [@willbowditch](https://github.com/willbowditch))

## 0.12.4 — 2026-05-21 {#v0-12-4}

### Added
- `datacontract test` now logs the Data Contract CLI version and whether it ran as a local CLI or through the FastAPI server (including the request URL) as part of the test result logs

### Fixed
- Schema checks now resolve each property by its `physicalName` when set (falling back to `name`), matching the existing table-level resolution and the SQL/BigQuery exporters. Previously a property whose logical `name` differed from its physical column (e.g. `name: brand` with `physicalName: BRAND`) failed the presence and type checks even though the physical column existed ([#1246](https://github.com/datacontract/datacontract-cli/issues/1246))

## 0.12.3 — 2026-05-18 {#v0-12-3}

### Added
- new `datacontract dbt sync` command: generate dbt tests from an ODCS contract, then run `dbt test` for them, and optionally publish the results to Entropy Data ([#1222](https://github.com/datacontract/datacontract-cli/issues/1222), [#1235](https://github.com/datacontract/datacontract-cli/issues/1235))
- `redshift` server type for `datacontract test` (requires `pip install datacontract-cli[redshift]`). ([#1236](https://github.com/datacontract/datacontract-cli/issues/1236))

### Fixed
- SQL type converter: emit canonical `decimal`/`numeric` per dialect (Postgres → `numeric`, MySQL → `decimal`) so `test`'s column-type check matches `information_schema` ([#1237](https://github.com/datacontract/datacontract-cli/issues/1237))

## 0.12.2 — 2026-05-05 {#v0-12-2}

### Added
- `impala` extra (`pip install datacontract-cli[impala]`) — pulls in `soda-core-impala`. Impala engine support landed in [#965](https://github.com/datacontract/datacontract-cli/issues/965) but the install extra was never added; users had to install `soda-core-impala` manually. Also included in `[all]`.

### Changed
- **breaking:** drop the `dbt` extra and the `dbt-core` dependency. `import dbt` now reads `manifest.json` directly with no third-party dependency, and works without installing any extra. Minimum supported manifest schema version is v9 (dbt 1.5+). Users who installed `datacontract-cli[dbt]` should switch to plain `datacontract-cli`.
- **breaking:** the `protobuf` extra now requires the `protoc` compiler installed on the system. Replaces the bundled `grpcio-tools` (~50 MB of platform-specific protoc binaries) with the lighter `protobuf` runtime (`>=3.20,<7.0`). `import protobuf` raises a clear error with platform-specific install hints if `protoc` is not on `PATH`. Install with `brew install protobuf` (macOS), `sudo apt install protobuf-compiler` (Debian/Ubuntu), etc. — see README.

### Fixed
- README install table: add missing `csv`, `excel`, and `oracle` extras. The matching `[project.optional-dependencies]` entries already existed but were undocumented.
- quality: support `{object}` and `${object}` placeholder in SQL quality queries as the ODCS-spec name for the current schema object (alias for `{model}`/`{table}`) ([#676](https://github.com/datacontract/datacontract-cli/issues/676))
- `changelog` command help text now advertises `(url or path)` for V1/V2 arguments, clarifying that HTTP/HTTPS URLs are accepted ([#1162](https://github.com/datacontract/datacontract-cli/issues/1162))
- **breaking:** `test` command now exits non-zero when a server is specified, but soda-core fails to connect or authenticate ([#1181](https://github.com/datacontract/datacontract-cli/issues/1181))
- correct swapped `check_type` labels  `model_qualty_sql` and `field_quality_sql` ([#1187](https://github.com/datacontract/datacontract-cli/issues/1187))
- `import spark` now emits a native Spark SQL physicalType (e.g. `string`) instead of Python repr (e.g. `StringType()`). Contracts imported using Spark in v0.11.0–v0.12.1 did not perform type checks and must be re-imported. ([#1048](https://github.com/datacontract/datacontract-cli/issues/1048))
- Re-add `setuptools` as a base dependency. soda-core's `env_helper.py` imports `from distutils.util import strtobool`; `distutils` was removed from stdlib in Python 3.12 and stripped from python-build-standalone 3.11 builds. `setuptools` provides the `distutils` shim. Previously pulled in transitively via `grpcio-tools`; now required explicitly. Reverts [#1199](https://github.com/datacontract/datacontract-cli/issues/1199) — see soda-core#2091.
- SLA freshness checks now quote column identifiers with special characters ([#1202](https://github.com/datacontract/datacontract-cli/issues/1202))
- update field / model quotation for Impala, dataframe, and Kafka ([#1202](https://github.com/datacontract/datacontract-cli/issues/1202))

## 0.12.1 — 2026-04-21 {#v0-12-1}

### Fixed
- make `--schema` a deprecated alias for `--json-schema` to (will be removed in v0.13.0)

## 0.12.0 — 2026-04-20 {#v0-12-0}

This release introduces several changes to improve the usability of `datacontract-cli` for AI Agents.

- **Breaking**: Several changes in the CLI syntax ([#1157](https://github.com/datacontract/datacontract-cli/issues/1157)):
> Fix in v0.12.1: re-added `--schema` as alias for the new `--json-schema` (will be removed in v0.13.0)

| Command                                    | Old option                                    | New option                             |
  |--------------------------------------------|-----------------------------------------------|----------------------------------------|
  | `lint`, `test`, `ci`, `publish`, `catalog` | `--schema <PATH>` (will work until v0.13.0)   | `--json-schema <PATH>`                 |
  | `export`, `import`                         | `--format <FORMAT> <OPTIONS>`                 | `<FORMAT> <OPTIONS>` (drop `--format`) |
  | **Export options:**                        |                                               |                                        |
  | `export --format dbt`                      | `--format dbt`                                | `dbt-models` (format renamed)          |
  | `export --format great-expectations`       | `--sql-server-type <TYPE>`                    | `--dialect <TYPE>`                     |
  | `export --format rdf`                      | `--rdf-base <URI>`                            | `--base <URI>`                         |
  | `export --format sql`                      | `--sql-server-type <TYPE>`                    | `--dialect <TYPE>`                     |
  | `export --format sql-query`                | `--sql-server-type <TYPE>`                    | `--dialect <TYPE>`                     |
  | **Import options:**                        |                                               |                                        |
  | `import --format bigquery`                 | `--bigquery-[project\|dataset\|table] <NAME>` | `--[project\|dataset\|table] <NAME>`   |
  | `import --format dbt`                      | `--dbt-model <NAME>`                          | `--model <NAME>`                       |
  | `import --format glue`                     | `--source <NAME>`, `--glue-table <NAME>`      | `--database <NAME>`, `--table <NAME>`  |
  | `import --format iceberg`                  | `--iceberg-table <NAME>`                      | `--table <NAME>`                       |
  | `import --format unity`                    | `--unity-table-full-name <NAME>`              | `--table <NAME>`                       |
  | `import --format spark`                    | `--source <NAMES>`                            | `--tables <NAMES>`                     |
  | `import`                                   | `--template`                                  | dropped (was a no-op)                  |

The `--schema` option (referring to the ODCS JSON schema) was renamed to `--json-schema` to avoid confusion with `--schema-name`, which refers to the schema within the data contract to test for.

- Error messages for uncaught exceptions are shortened now. Pass `--debug` (or set `DATACONTRACT_CLI_DEBUG=1`) to see the full traceback. ([#1175](https://github.com/datacontract/datacontract-cli/issues/1175))
- Add example calls to `--help` outputs ([#1176](https://github.com/datacontract/datacontract-cli/issues/1176))
- Add explicit errors when required env vars for soda connections are missing ([#1177](https://github.com/datacontract/datacontract-cli/issues/1177))
- Validate some of the CLI options against their allowed values instead of accepting any string ([#1178](https://github.com/datacontract/datacontract-cli/issues/1178))


## 0.11.9 — 2026-04-20 {#v0-11-9}

### Added
- Added `--checks` option to `test` command to selectively run check categories: `schema`, `quality`, `servicelevel` ([#678](https://github.com/datacontract/datacontract-cli/issues/678))
- Added `--schema-name` option to `test` command to test a specific schema instead of all schemas ([#1079](https://github.com/datacontract/datacontract-cli/issues/1079),[#1085](https://github.com/datacontract/datacontract-cli/issues/1085) [@kelsoufi-sanofi](https://github.com/kelsoufi-sanofi))

### Fixed
- Move `precision`/`scale` for `number` types from `logicalTypeOptions` to `customProperties` ([#1145](https://github.com/datacontract/datacontract-cli/issues/1145),[#1160](https://github.com/datacontract/datacontract-cli/issues/1160) [@davidb-tada](https://github.com/davidb-tada))
- Emit placeholder server values in SQL importer so generated contracts pass lint ([#1146](https://github.com/datacontract/datacontract-cli/issues/1146),[#1152](https://github.com/datacontract/datacontract-cli/issues/1152) [@Ai-chan-0411](https://github.com/Ai-chan-0411))
- Fix Protobuf export for arrays of objects and improve message/enum naming to UpperCamelCase ([#1012](https://github.com/datacontract/datacontract-cli/issues/1012) [@Schokuroff](https://github.com/Schokuroff))
- Exit with code 1 when `--server` name is not found ([#1153](https://github.com/datacontract/datacontract-cli/issues/1153),[#1161](https://github.com/datacontract/datacontract-cli/issues/1161) [@Ai-chan-0411](https://github.com/Ai-chan-0411))

Thanks to [@kelsoufi-sanofi](https://github.com/kelsoufi-sanofi) for the new `--schema-name` option on `test`, and to [@Schokuroff](https://github.com/Schokuroff), [@Ai-chan-0411](https://github.com/Ai-chan-0411), and [@davidb-tada](https://github.com/davidb-tada) for their contributions.

## 0.11.8 — 2026-04-10 {#v0-11-8}

### Added
- Added `ci` command for CI/CD-optimized test runs: multi-file support, GitHub Actions annotations and step summary, Azure DevOps annotations, `--fail-on` flag, `--json` output ([#1114](https://github.com/datacontract/datacontract-cli/issues/1114))
- Added `changelog` command and API endpoint ([#1118](https://github.com/datacontract/datacontract-cli/issues/1118) [@davidb-tada](https://github.com/davidb-tada))
- Added opt-in `--all-errors` mode for `datacontract lint` to report all JSON Schema validation errors, with matching `all_errors` support in the Python library and API ([#1125](https://github.com/datacontract/datacontract-cli/issues/1125) [@jmbenedetto](https://github.com/jmbenedetto))
- Added `--schema-name` option to custom model export ([#978](https://github.com/datacontract/datacontract-cli/issues/978) [@AntoineGiraud](https://github.com/AntoineGiraud))

### Fixed
- Avro importer now raises an error for union fields with multiple non-null types, which are not supported by ODCS ([#1124](https://github.com/datacontract/datacontract-cli/issues/1124))
- Fix SQL export generating multiple PRIMARY KEY constraints for composite keys ([#1026](https://github.com/datacontract/datacontract-cli/issues/1026),[#1092](https://github.com/datacontract/datacontract-cli/issues/1092) [@barry0451](https://github.com/barry0451) [@dwestheide](https://github.com/dwestheide))
- Preserve parametrized physicalTypes for SQL export ([#1086](https://github.com/datacontract/datacontract-cli/issues/1086),[#1093](https://github.com/datacontract/datacontract-cli/issues/1093) [@barry0451](https://github.com/barry0451) [@alexander-griesbeck](https://github.com/alexander-griesbeck))
- Fix incorrect SQL type mappings: SQL Server `double`/`jsonb`, MySQL bare `varchar`, missing Trino types ([#1110](https://github.com/datacontract/datacontract-cli/issues/1110))
- Fix markdown export breaking table structure when extra field values contain pipe characters ([#832](https://github.com/datacontract/datacontract-cli/issues/832),[#1117](https://github.com/datacontract/datacontract-cli/issues/1117) [@barry0451](https://github.com/barry0451) [@grepwood](https://github.com/grepwood))
- Fix dbt import using incorrect physicalType instead of actual materialization type ([#1136](https://github.com/datacontract/datacontract-cli/issues/1136))
- Remove unnecessary numpy dependency from databricks and kafka extras ([#1135](https://github.com/datacontract/datacontract-cli/issues/1135) [@kayhendriksen](https://github.com/kayhendriksen))

Special thanks to [@davidb-tada](https://github.com/davidb-tada) for the outstanding contribution of the new `changelog` command and API endpoint! Also thanks to [@barry0451](https://github.com/barry0451) for multiple quality fixes across the SQL exporter and markdown export, and to [@AntoineGiraud](https://github.com/AntoineGiraud) and [@jmbenedetto](https://github.com/jmbenedetto) for their feature contributions.

## 0.11.7 — 2026-03-24 {#v0-11-7}

### Fixed
- Escape single quotes in string values for SodaCL checks ([#1090](https://github.com/datacontract/datacontract-cli/issues/1090))
- Escape BigQuery field and model names with backticks for SodaCL checks ([#736](https://github.com/datacontract/datacontract-cli/issues/736))
- Escape Databricks model names with backticks for SodaCL checks
- Fixed catalog export SpecView not having a tags property for the index.html template ([#1059](https://github.com/datacontract/datacontract-cli/issues/1059))
- Fix SQL importer type mappings: binary types, datetime/time, uuid now map to correct ODCS logicalType and format ([#790](https://github.com/datacontract/datacontract-cli/issues/790))

### Added
- Added support for MySQL for data contract tests ([#1101](https://github.com/datacontract/datacontract-cli/issues/1101))
- Support additional PyArrow types in Parquet importer ([#1091](https://github.com/datacontract/datacontract-cli/issues/1091))
- Populate `logicalTypeOptions.format` for SQL import from binary and uuid types ([#790](https://github.com/datacontract/datacontract-cli/issues/790))
- Snowflake DDL import with tags, descriptions, and template variable handling ([#790](https://github.com/datacontract/datacontract-cli/issues/790))

## 0.11.6 — 2026-03-17 {#v0-11-6}

### Fixed
- Fix parser error for CSV / Parquet table names containing special characters ([#1066](https://github.com/datacontract/datacontract-cli/issues/1066))
- Fix BigQuery export failing with "Unsupported type" for parameterized physicalType like `NUMERIC(18, 4)` ([#1083](https://github.com/datacontract/datacontract-cli/issues/1083))

### Added
- Added JSON output format for test results (`--output-format json`)
- Added Azure AD / Entra ID authentication support for SQL Server and Microsoft Fabric

## 0.11.5 — 2026-02-19 {#v0-11-5}

### Fixed

- Fix BigQuery import for repeated fields ([#1017](https://github.com/datacontract/datacontract-cli/issues/1017))
- Make Markdown export compatible with XHTML by replacing `<br>` with `<br />` ([#1030](https://github.com/datacontract/datacontract-cli/issues/1030))
- Add ADC/WIF and impersonation support for BigQuery ([#1064](https://github.com/datacontract/datacontract-cli/issues/1064))
- Fix Snowflake quoted identifiers by enabling double-quote quoting ([#1053](https://github.com/datacontract/datacontract-cli/issues/1053))
- Fix retention duration crash for numeric ODCS values ([#1051](https://github.com/datacontract/datacontract-cli/issues/1051))
- Fix physicalType bypass for precision and scale conversion ([#1043](https://github.com/datacontract/datacontract-cli/issues/1043))
- Fix mkdir TOCTOU race causing silent JUnit write failure ([#1050](https://github.com/datacontract/datacontract-cli/issues/1050))
- Fix validation failure for field names with special chars on Databricks ([#1049](https://github.com/datacontract/datacontract-cli/issues/1049))
- Add Azure support for field name quoting in schema checks ([#1025](https://github.com/datacontract/datacontract-cli/issues/1025))

## 0.11.4 — 2026-01-19 {#v0-11-4}

### Changed

- Made `duckdb` an optional dependency. Install with `pip install datacontract-cli[duckdb]` for local/S3/GCS/Azure file testing.
- Removed unused `fastparquet` and `numpy` core dependencies.

### Added

- Include searchable tags in catalog index.html

### Fixed

- Fixed example(s) field mapping for Data Contract Specification importer ([#992](https://github.com/datacontract/datacontract-cli/issues/992)).
- Spark exporter now supports decimal precision/scale via `customProperties` or parsing from `physicalType` (e.g., `decimal(10,2)`) ([#996](https://github.com/datacontract/datacontract-cli/issues/996))
- Fix catalog/HTML export failing on ODCS contracts with no schema or no properties ([#971](https://github.com/datacontract/datacontract-cli/issues/971))

## 0.11.3 — 2026-01-10 {#v0-11-3}

### Fixed

- Fix `datacontract init` to generate ODCS format instead of deprecated Data Contract Specification ([#984](https://github.com/datacontract/datacontract-cli/issues/984))
- Fix ODCS lint failing on optional relationship `type` field by updating open-data-contract-standard to v3.1.2 ([#971](https://github.com/datacontract/datacontract-cli/issues/971))
- Restrict DuckDB dependency to < 1.4.0 ([#972](https://github.com/datacontract/datacontract-cli/issues/972))
- Fixed schema evolution support for optional fields in CSV and Parquet formats. Optional fields marked with `required: false` are no longer incorrectly treated as required during validation, enabling proper schema evolution where optional fields can be added to contracts without breaking validation of historical data files ([#977](https://github.com/datacontract/datacontract-cli/issues/977))
- Fixed decimals in pydantic model export. Fields marked with `type: decimal` will be mapped to `decimal.Decimal` instead of `float`.
- Fix BigQuery test failure for fields with FLOAT or BOOLEAN types by mapping them to equivalent types (BOOL and FLOAT64)

## 0.11.2 — 2025-12-15 {#v0-11-2}

### Added
- Add Impala engine support for Soda scans via ODCS `impala` server type.
### Fixed
- Restrict DuckDB dependency to < 1.4.0 ([#972](https://github.com/datacontract/datacontract-cli/issues/972))

## 0.11.1 — 2025-12-14 {#v0-11-1}

This is a major release with breaking changes:
We switched the internal data model from [Data Contract Specification](https://datacontract-specification.com) to [Open Data Contract Standard](https://datacontract.com/#odcs) (ODCS).

Not all features that were available are supported in this version, as some features are not supported by the Open Data Contract Standard, such as:

- Internal definitions using `$ref` (you can refer to external definitions via `authoritativeDefinition`)
- Lineage (no real workaround, use customProperties or transformation object if needed)
- Support for different physical types (no real workaround, use customProperties if needed)
- Support for enums (use quality metric `invalidValues`)
- Support for properties with type map and defining `keys` and `values` (use logical type map)
- Support for `scale` and `precision` (define them in `physicalType`)

The reason for this change is that the Data Contract Specification is deprecated, we focus on best possible support for the Open Data Contract Standard.
We try to make this transition as seamless as possible. 
If you face issues, please open an issue on GitHub.

We continue support reading [Data Contract Specification](https://datacontract-specification.com) data contracts during v0.11.x releases until end of 2026.
To migrate existing data contracts to Open Data Contract Standard use this instruction: https://datacontract-specification.com/#migration

### Changed

- ODCS v3.1.0 is now the default format for all imports.
- Renamed `--model` option to `--schema-name` in the `export` command to align with ODCS terminology.
- Renamed exporter files from `*_converter.py` to `*_exporter.py` for consistency (internal change).

### Added

- If an ODCS slaProperty "freshness" is defined with a reference to the element (column), the CLI will now test freshness of the data.
- If an ODCS slaProperty "retention" is defined with a reference to the element (column), the CLI will now test retention of the data.
- Support for custom Soda quality checks in ODCS using `type: custom` and `engine: soda` with raw SodaCL implementation.

### Fixed

- Oracle: Fix `service_name` attribute access to use ODCS field name `serviceName`

### Removed

- The `breaking`, `changelog`, and `diff` commands are now deleted ([#925](https://github.com/datacontract/datacontract-cli/issues/925)).
- The `terraform` export format has been removed.


## 0.10.41 — 2025-12-02 {#v0-10-41}

### Changed

- Great Expectations export: Update to Great Expectations 1.x format ([#919](https://github.com/datacontract/datacontract-cli/issues/919))
  - Changed `expectation_suite_name` to `name` in suite output
  - Changed `expectation_type` to `type` in expectations
  - Removed `data_asset_type` field from suite output
  - **Breaking**: Users with custom quality definitions using `expectation_type` must update to use `type`

### Added

- test: Log server name and type in output ([#963](https://github.com/datacontract/datacontract-cli/issues/963))
- api: CORS is now enabled for all origins
- quality: Support `{schema}` and `${schema}` placeholder in SQL quality checks to reference the server's database schema ([#957](https://github.com/datacontract/datacontract-cli/issues/957))
- SQL Server: Support `DATACONTRACT_SQLSERVER_DRIVER` environment variable to specify the ODBC driver ([#959](https://github.com/datacontract/datacontract-cli/issues/959))
- Excel: Add Oracle server type support for Excel export/import ([#960](https://github.com/datacontract/datacontract-cli/issues/960))
- Excel: Add local/CSV server type support for Excel export/import ([#961](https://github.com/datacontract/datacontract-cli/issues/961))
- Excel Export: Complete server types (glue, kafka, postgres, s3, snowflake, sqlserver, custom)

### Fixed

- Protobuf import: Fix transitive imports across subdirectories ([#943](https://github.com/datacontract/datacontract-cli/issues/943))
- Protobuf export now works without error ([#951](https://github.com/datacontract/datacontract-cli/issues/951))
- lint: YAML date values (e.g., `2022-01-15`) are now kept as strings instead of being converted to datetime objects, fixing ODCS schema validation
- export: field annotation now matches to number/numeric/decimal types
- Excel: Server port is now correctly parsed as integer instead of string for all server types
- Excel: Remove invalid `table` and `view` fields from custom server import
- Fixed DuckDB DDL generation to use `JSON` type instead of invalid empty `STRUCT()` for objects without defined properties ([#940](https://github.com/datacontract/datacontract-cli/issues/940))

### Deprecated

- The `breaking`, `changelog`, and `diff` commands are now deprecated and will be removed in a future version ([#925](https://github.com/datacontract/datacontract-cli/issues/925))

## 0.10.40 — 2025-11-25 {#v0-10-40}

### Added

- Support for ODCS v3.1.0

## 0.10.39 — 2025-11-20 {#v0-10-39}

### Added

- Oracle DB: Client Directory for Connection Mode 'Thick' can now be specified in the `DATACONTRACT_ORACLE_CLIENT_DIR` environment variable ([#949](https://github.com/datacontract/datacontract-cli/issues/949))

### Fixed

- Import composite primary keys from open data contract spec

## 0.10.38 — 2025-11-11 {#v0-10-38}

### Added

- Support for Oracle Database (>= 19C)

### Fixed

- Athena: Now correctly uses the (optional) AWS session token specified in the `DATACONTRACT_S3_SESSION_TOKEN' environment variable when testing contracts ([#934](https://github.com/datacontract/datacontract-cli/issues/934))

## 0.10.37 — 2025-11-03 {#v0-10-37}

### Added

- import: Support for nested arrays in odcs v3 importer
- lint: ODCS schema is now checked before converting
- --debug flag for all commands

### Fixed

- export: Excel exporter now exports critical data element


## 0.10.36 — 2025-10-17 {#v0-10-36}

### Added

- Support for Data Contract Specification v1.2.1 (Data Quality Metrics)
- Support for decimal testing in spark and databricks ([#902](https://github.com/datacontract/datacontract-cli/issues/902))
- Support for BigQuery Flexible Schema in Data Contract Checks ([#909](https://github.com/datacontract/datacontract-cli/issues/909))

### Changed

- `DataContract().import_from_source()` as an instance method is now deprecated. Use `DataContract.import_from_source()` as a class method instead.

### Fixed

- Export to DQX: Correct DQX format for global-level quality check of data contract export. ([#877](https://github.com/datacontract/datacontract-cli/issues/877))
- Import the table tags from a open data contract spec v3 ([#895](https://github.com/datacontract/datacontract-cli/issues/895))
- dbt export: Enhanced model-level primaryKey support with automatic test generation for single and multiple column primary keys ([#898](https://github.com/datacontract/datacontract-cli/issues/898))
- ODCS: field discarded when no logicalType defined  ([#891](https://github.com/datacontract/datacontract-cli/issues/891))
 
### Removed

- Removed specific linters, as the linters did not support ODCS ([#913](https://github.com/datacontract/datacontract-cli/issues/913))

## 0.10.35 — 2025-08-25 {#v0-10-35}

### Added

- Export to DQX : datacontract export --format dqx ([#846](https://github.com/datacontract/datacontract-cli/issues/846))
- API `/test` endpoint now supports `publish_url` parameter to publish test results to a URL. ([#853](https://github.com/datacontract/datacontract-cli/issues/853))
- The Spark importer and exporter now also exports the description of columns via the additional metadata of StructFields ([#868](https://github.com/datacontract/datacontract-cli/issues/868))

### Fixed

- Improved regex for extracting Azure storage account names from URLs with containerName@storageAccountName format ([#848](https://github.com/datacontract/datacontract-cli/issues/848))
- JSON Schema Check: Add globbing support for local JSON files
- Fixed server section rendering for markdown exporter

## 0.10.34 — 2025-08-06 {#v0-10-34}

### Added

- `datacontract test` now supports HTTP APIs.
- `datacontract test` now supports Athena.

### Fixed

- Avro Importer: Optional and required enum types are now supported ([#804](https://github.com/datacontract/datacontract-cli/issues/804))


## 0.10.33 — 2025-07-29 {#v0-10-33}

### Added
- Export to Excel: Convert ODCS YAML to Excel https://github.com/datacontract/open-data-contract-standard-excel-template ([#742](https://github.com/datacontract/datacontract-cli/issues/742))
- Extra properties in Markdown export. ([#842](https://github.com/datacontract/datacontract-cli/issues/842))


## 0.10.32 — 2025-07-28 {#v0-10-32}

### Added
- Import from Excel: Support the new quality sheet

### Fixed
- JUnit Test Report: Fixed incorrect syntax on handling warning test report. ([#833](https://github.com/datacontract/datacontract-cli/issues/833))

## 0.10.31 — 2025-07-18 {#v0-10-31}

### Added
- Added support for Variant with Spark exporter, data_contract.test(), and import as source unity catalog ([#792](https://github.com/datacontract/datacontract-cli/issues/792))


## 0.10.30 — 2025-07-15 {#v0-10-30}

### Fixed
- Excel Import should return ODCS YAML ([#829](https://github.com/datacontract/datacontract-cli/issues/829))
- Excel Import: Missing server section when the server included a schema property ([#823](https://github.com/datacontract/datacontract-cli/issues/823))

### Changed
- Use `&#x2007;` instead of `&numsp;` for tab in Markdown export.

## 0.10.29 — 2025-07-06 {#v0-10-29}

### Added
- Support for Data Contract Specification v1.2.0
- `datacontract import --format json`: Import from JSON files

### Changed
- `datacontract api [OPTIONS]`: Added option to pass extra arguments for `uvicorn.run()`

### Fixed
- `pytest tests\test_api.py`: Fixed an issue where special characters were not read correctly from file.
- `datacontract export --format mermaid`: Fixed an issue where the `mermaid` export did not handle references correctly

## 0.10.28 — 2025-06-05 {#v0-10-28}

### Added
- Much better ODCS support
    - Import anything to ODCS via the `import --spec odcs` flag
    - Export to HTML with an ODCS native template via `export --format html`
    - Export to Mermaid with an ODCS native mapping via `export --format mermaid`
- The databricks `unity` importer now supports more than a single table. You can use `--unity-table-full-name` multiple times to import multiple tables. And it will automatically add a server with the catalog and schema name.

### Changed
- `datacontract catalog [OPTIONS]`: Added version to contract cards in `index.html` of the catalog (enabled search by version)
- The type mapping of the `unity` importer no uses the native databricks types instead of relying on spark types. This allows for better type mapping and more accurate data contracts.

### Fixed

## 0.10.27 — 2025-05-22 {#v0-10-27}

### Added

- `datacontract export --format mermaid` Export
  to [Mermaid](https://mermaid-js.github.io/mermaid/#/) ([#767](https://github.com/datacontract/datacontract-cli/issues/767), [#725](https://github.com/datacontract/datacontract-cli/issues/725))

### Changed

- `datacontract export --format html`: Adding the mermaid figure to the html export
- `datacontract export --format odcs`: Export physical type to ODCS if the physical type is
  configured in config object
- `datacontract import --format spark`: Added support for spark importer table level comments ([#761](https://github.com/datacontract/datacontract-cli/issues/761))
- `datacontract import` respects `--owner` and `--id` flags ([#753](https://github.com/datacontract/datacontract-cli/issues/753))

### Fixed

- `datacontract export --format sodacl`: Fix resolving server when using `--server` flag ([#768](https://github.com/datacontract/datacontract-cli/issues/768))
- `datacontract export --format dbt`: Fixed DBT export behaviour of constraints to default to data tests when no model type is specified in the datacontract model


## 0.10.26 — 2025-05-16 {#v0-10-26}

### Changed
- Databricks: Add support for Variant type ([#758](https://github.com/datacontract/datacontract-cli/issues/758))
- `datacontract export --format odcs`: Export physical type if the physical type is configured in
  config object ([#757](https://github.com/datacontract/datacontract-cli/issues/757))
- `datacontract export --format sql` Include datacontract descriptions in the Snowflake sql export (
  [#756](https://github.com/datacontract/datacontract-cli/issues/756))

## 0.10.25 — 2025-05-07 {#v0-10-25}

### Added
- Extracted the DataContractSpecification and the OpenDataContractSpecification in separate pip modules and use them in the CLI.
- `datacontract import --format excel`: Import from Excel
  template https://github.com/datacontract/open-data-contract-standard-excel-template ([#742](https://github.com/datacontract/datacontract-cli/issues/742))

## 0.10.24 — 2025-04-19 {#v0-10-24}

### Added

- `datacontract test` with DuckDB: Deep nesting of json objects in duckdb ([#681](https://github.com/datacontract/datacontract-cli/issues/681))

### Changed

- `datacontract import --format csv` produces more descriptive output. Replaced
  using clevercsv with duckdb for loading and sniffing csv file.
- Updated dependencies

### Fixed

- Fix to handle logicalType format wrt avro mentioned in issue ([#687](https://github.com/datacontract/datacontract-cli/issues/687))
- Fix field type from TIME to DATETIME in BigQuery converter and schema ([#728](https://github.com/datacontract/datacontract-cli/issues/728))
- Fix encoding issues. ([#712](https://github.com/datacontract/datacontract-cli/issues/712))
- ODCS: Fix required in export and added item and fields format ([#724](https://github.com/datacontract/datacontract-cli/issues/724))

### Removed

- Deprecated QualityLinter is now removed

## 0.10.23 — 2025-03-03 {#v0-10-23}

### Added

- `datacontract test --output-format junit --output TEST-datacontract.xml` Export CLI test results
  to a file, in a standard format (e.g. JUnit) to improve CI/CD experience ([#650](https://github.com/datacontract/datacontract-cli/issues/650))

- Added import for `ProtoBuf`
Code for proto to datacontract ([#696](https://github.com/datacontract/datacontract-cli/issues/696))


- `dbt` & `dbt-sources` export formats now support the optional `--server` flag to adapt the DBT column `data_type` to specific SQL dialects
- Duckdb Connections are now configurable, when used as Python library ([#666](https://github.com/datacontract/datacontract-cli/issues/666))
- export to avro format add map type

### Changed

- Changed Docker base image to python:3.11-bullseye
- Relax fastparquet dependency

### Fixed

- Unicode Encode Error when exporting data contract YAML to HTML
  ([#652](https://github.com/datacontract/datacontract-cli/issues/652))
- Fix multiline descriptions in the DBT export functionality
- Incorrectly parsing $ref values in definitions ([#664](https://github.com/datacontract/datacontract-cli/issues/664))
- Better error message when the server configuration is missing in a data contract ([#670](https://github.com/datacontract/datacontract-cli/issues/670))
- Improved default values in ODCS generator to avoid breaking schema validation ([#671](https://github.com/datacontract/datacontract-cli/issues/671))
- Updated ODCS v3 generator to drop the "is" prefix from fields like `isNullable` and `isUnique` ([#669](https://github.com/datacontract/datacontract-cli/issues/669))
- Fix issue when testing databricks server with ODCS format
- avro export fix float format

## 0.10.22 — 2025-02-20 {#v0-10-22}

### Added

- `datacontract test` now also executes tests for service levels freshness and retention ([#407](https://github.com/datacontract/datacontract-cli/issues/407))

### Changed

- `datacontract import --format sql` is now using SqlGlot as importer.
- `datacontract import --format sql --dialect <dialect>` Dialect can now to defined when importing
  SQL.

### Fixed

- Schema type checks fail on nested fields for Databricks spark ([#618](https://github.com/datacontract/datacontract-cli/issues/618))
- Export to Avro add namespace on field as optional configuration ([#631](https://github.com/datacontract/datacontract-cli/issues/631))

### Removed

- `datacontract test --examples`: This option was removed as it was not very popular and top-level
  examples section is deprecated in the Data Contract Specification v1.1.0 ([#628](https://github.com/datacontract/datacontract-cli/issues/628))
- Support for `odcs_v2` ([#645](https://github.com/datacontract/datacontract-cli/issues/645))

## 0.10.21 — 2025-02-06 {#v0-10-21}

### Added

- `datacontract export --format custom`: Export to custom format with Jinja
- `datacontract api` now can be protected with an API key

### Changed

- `datacontract serve` renamed to `datacontract api`

### Fixed

- Fix Error: 'dict object' has no attribute 'model_extra' when trying to use type: string with enum
  values inside an array ([#619](https://github.com/datacontract/datacontract-cli/issues/619))

## 0.10.20 — 2025-01-30 {#v0-10-20}

### Added

- datacontract serve: now has a route for testing data contracts
- datacontract serve: now has a OpenAPI documentation on root

### Changed

- FastAPI endpoint is now moved to extra "web"

### Fixed

- API Keys for Data Mesh Manager are now also applied for on-premise installations

## 0.10.19 — 2025-01-29 {#v0-10-19}

### Added

- datacontract import --format csv
- publish command also supports publishing ODCS format
- Option to separate physical table name for a model via config option ([#270](https://github.com/datacontract/datacontract-cli/issues/270))

### Changed
- JSON Schemas are now bundled with the application ([#598](https://github.com/datacontract/datacontract-cli/issues/598))
- datacontract export --format html: The model title is now shown if it is different to the model
  name ([#585](https://github.com/datacontract/datacontract-cli/issues/585))
- datacontract export --format html: Custom model attributes are now shown ([#585](https://github.com/datacontract/datacontract-cli/issues/585))
- datacontract export --format html: The composite primary key is now shown. ([#591](https://github.com/datacontract/datacontract-cli/issues/591))
- datacontract export --format html: now examples are rendered in the model and definition ([#497](https://github.com/datacontract/datacontract-cli/issues/497))
- datacontract export --format sql: Create arrays and struct for Databricks ([#467](https://github.com/datacontract/datacontract-cli/issues/467))

### Fixed
- datacontract lint: Linter 'Field references existing field' too many values to unpack (expected
  2) ([#586](https://github.com/datacontract/datacontract-cli/issues/586))
- datacontract test (Azure): Error querying delta tables from azure storage. ([#458](https://github.com/datacontract/datacontract-cli/issues/458))
- datacontract export --format data-caterer: Use `fields` instead of `schema`
- datacontract export --format data-caterer: Use `options` instead of `generator.options`
- datacontract export --format data-caterer: Capture array type length option and inner data type
- Fixed schemas/datacontract-1.1.0.init.yaml not included in build and `--template` not resolving file

## 0.10.18 — 2025-01-18 {#v0-10-18}

### Fixed
- Fixed an issue when resolving project's dependencies when all extras are installed.
- Definitions referenced by nested fields are not validated correctly ([#595](https://github.com/datacontract/datacontract-cli/issues/595))
- Replaced deprecated `primary` field with `primaryKey` in exporters, importers, examples, and Jinja templates for backward compatibility. Fixes [#518](https://github.com/your-repo/your-project/issues/518).
- Cannot execute test on column of type record(bigquery) [#597](https://github.com/datacontract/datacontract-cli/issues/597)

## 0.10.17 — 2025-01-16 {#v0-10-17}

### Added
- added export format **markdown**: `datacontract export --format markdown` ([#545](https://github.com/datacontract/datacontract-cli/issues/545))
- When importing in dbt format, add the dbt unique information as a datacontract unique field ([#558](https://github.com/datacontract/datacontract-cli/issues/558))
- When importing in dbt format, add the dbt primary key information as a datacontract primaryKey field ([#562](https://github.com/datacontract/datacontract-cli/issues/562))
- When exporting in dbt format, add the datacontract references field as a dbt relationships test ([#569](https://github.com/datacontract/datacontract-cli/issues/569))
- When importing in dbt format, add the dbt relationships test field as a reference in the data contract ([#570](https://github.com/datacontract/datacontract-cli/issues/570))
- Add serve command on README ([#592](https://github.com/datacontract/datacontract-cli/issues/592))

### Changed
- Primary and example fields have been deprecated in Data Contract Specification v1.1.0 ([#561](https://github.com/datacontract/datacontract-cli/issues/561))
- Define primaryKey and examples for model to follow the changes in datacontract-specification v1.1.0 ([#559](https://github.com/datacontract/datacontract-cli/issues/559))

### Fixed
- SQL Server: cannot escape reserved word on model ([#557](https://github.com/datacontract/datacontract-cli/issues/557))
- Export dbt-staging-sql error on multi models contracts ([#587](https://github.com/datacontract/datacontract-cli/issues/587))

### Removed
- OpenTelemetry publisher, as it was hardly used

## 0.10.16 — 2024-12-19 {#v0-10-16}

### Added
- Support for exporting a Data Contract to an Iceberg schema definition.
- When importing in dbt format, add the dbt `not_null` information as a datacontract `required` field ([#547](https://github.com/datacontract/datacontract-cli/issues/547))

### Changed
- Type conversion when importing contracts into dbt and exporting contracts from dbt ([#534](https://github.com/datacontract/datacontract-cli/issues/534))
- Ensure 'name' is the first column when exporting in dbt format, considering column attributes ([#541](https://github.com/datacontract/datacontract-cli/issues/541))
- Rename dbt's `tests` to `data_tests` ([#548](https://github.com/datacontract/datacontract-cli/issues/548))

### Fixed
- Modify the arguments to narrow down the import target with `--dbt-model` ([#532](https://github.com/datacontract/datacontract-cli/issues/532))
- SodaCL: Prevent `KeyError: 'fail'` from happening when testing with SodaCL
- fix: populate database and schema values for bigquery in exported dbt sources ([#543](https://github.com/datacontract/datacontract-cli/issues/543))
- Fixing the options for importing and exporting to standard output ([#544](https://github.com/datacontract/datacontract-cli/issues/544))
- Fixing the data quality name for model-level and field-level quality tests

## 0.10.15 — 2024-12-02 {#v0-10-15}

### Added
- Support for model import from parquet file metadata.
- Great Expectation export: add optional args ([#496](https://github.com/datacontract/datacontract-cli/issues/496))
  - `suite_name` the name of the expectation suite to export
  - `engine` used to run checks
  - `sql_server_type` to define the type of SQL Server to use when engine is `sql`
- Changelog support for `Info` and `Terms` blocks.
- `datacontract import` now has `--output` option for saving Data Contract to file
- Enhance JSON file validation (local and S3) to return the first error for each JSON object, the max number of total errors can be configured via the environment variable: `DATACONTRACT_MAX_ERRORS`. Furthermore, the primaryKey will be additionally added to the error message.
- fixes issue where records with no fields create an invalid bq schema.

### Changed
- Changelog support for custom extension keys in `Models` and `Fields` blocks.
- `datacontract catalog --files '*.yaml'` now checks also any subfolders for such files.
- Optimize test output table on console if tests fail

### Fixed
- raise valid exception in DataContractSpecification.from_file if file does not exist
- Fix importing JSON Schemas containing deeply nested objects without `required` array
- SodaCL: Only add data quality tests for executable queries

## 0.10.14 — 2024-10-26 {#v0-10-14}

Data Contract CLI now supports the Open Data Contract Standard (ODCS) v3.0.0.

### Added
- `datacontract test` now also supports ODCS v3 data contract format
- `datacontract export --format odcs_v3`: Export to Open Data Contract Standard v3.0.0 ([#460](https://github.com/datacontract/datacontract-cli/issues/460))
- `datacontract test` now also supports ODCS v3 anda Data Contract SQL quality checks on field and model level
- Support for import from Iceberg table definitions.
- Support for decimal logical type on avro export.
- Support for custom Trino types

### Changed
- `datacontract import --format odcs`: Now supports ODSC v3.0.0 files ([#474](https://github.com/datacontract/datacontract-cli/issues/474))
- `datacontract export --format odcs`: Now creates v3.0.0 Open Data Contract Standard files (alias to odcs_v3). Old versions are still available as format `odcs_v2`. ([#460](https://github.com/datacontract/datacontract-cli/issues/460))

### Fixed
- fix timestamp serialization from parquet -> duckdb ([#472](https://github.com/datacontract/datacontract-cli/issues/472))


## 0.10.13 — 2024-09-20 {#v0-10-13}

### Added
- `datacontract export --format data-caterer`: Export to [Data Caterer YAML](https://data.catering/setup/guide/scenario/data-generation/)

### Changed
- `datacontract export --format jsonschema` handle optional and nullable fields ([#409](https://github.com/datacontract/datacontract-cli/issues/409))
- `datacontract import --format unity` handle nested and complex fields ([#420](https://github.com/datacontract/datacontract-cli/issues/420))
- `datacontract import --format spark` handle field descriptions ([#420](https://github.com/datacontract/datacontract-cli/issues/420))
- `datacontract export --format bigquery` handle bigqueryType ([#422](https://github.com/datacontract/datacontract-cli/issues/422))

### Fixed
- use correct float type with bigquery ([#417](https://github.com/datacontract/datacontract-cli/issues/417))
- Support DATACONTRACT_MANAGER_API_KEY
- Some minor bug fixes

## 0.10.12 — 2024-09-08 {#v0-10-12}

### Added
- Support for import of DBML Models ([#379](https://github.com/datacontract/datacontract-cli/issues/379))
- `datacontract export --format sqlalchemy`: Export to [SQLAlchemy ORM models](https://docs.sqlalchemy.org/en/20/orm/quickstart.html) ([#399](https://github.com/datacontract/datacontract-cli/issues/399))
- Support of varchar max length in Glue import ([#351](https://github.com/datacontract/datacontract-cli/issues/351))
- `datacontract publish` now also accepts the `DATACONTRACT_MANAGER_API_KEY` as an environment variable
- Support required fields for Avro schema export ([#390](https://github.com/datacontract/datacontract-cli/issues/390))
- Support data type map in Spark import and export ([#408](https://github.com/datacontract/datacontract-cli/issues/408))
- Support of enum on export to avro
- Support of enum title on avro import

### Changed
- Deltalake is now using DuckDB's native deltalake support ([#258](https://github.com/datacontract/datacontract-cli/issues/258)). Extra deltalake removed.
- When dumping to YAML (import) the alias name is used instead of the pythonic name. ([#373](https://github.com/datacontract/datacontract-cli/issues/373))

### Fixed
- Fix an issue where the datacontract cli fails if installed without any extras ([#400](https://github.com/datacontract/datacontract-cli/issues/400))
- Fix an issue where Glue database without a location creates invalid data contract ([#351](https://github.com/datacontract/datacontract-cli/issues/351))
- Fix bigint -> long data type mapping ([#351](https://github.com/datacontract/datacontract-cli/issues/351))
- Fix an issue where column description for Glue partition key column is ignored ([#351](https://github.com/datacontract/datacontract-cli/issues/351))
- Corrected name of table parameter for bigquery import ([#377](https://github.com/datacontract/datacontract-cli/issues/377))
- Fix a failed to connect to S3 Server ([#384](https://github.com/datacontract/datacontract-cli/issues/384))
- Fix a model bug mismatching with the specification (`definitions.fields`) ([#375](https://github.com/datacontract/datacontract-cli/issues/375))
- Fix array type management in Spark import ([#408](https://github.com/datacontract/datacontract-cli/issues/408))


## 0.10.11 — 2024-08-08 {#v0-10-11}

### Added

- Support data type map in Glue import. ([#340](https://github.com/datacontract/datacontract-cli/issues/340))
- Basic html export for new `keys` and `values` fields
- Support for recognition of 1 to 1 relationships when exporting to DBML
- Added support for arrays in JSON schema import ([#305](https://github.com/datacontract/datacontract-cli/issues/305))

### Changed

- Aligned JSON schema import and export of required properties
- Change dbt importer to be more robust and customizable

### Fixed

- Fix required field handling in JSON schema import
- Fix an issue where the quality and definition `$ref` are not always resolved
- Fix an issue where the JSON schema validation fails for a field with type `string` and format `uuid`
- Fix an issue where common DBML renderers may not be able to parse parts of an exported file


## 0.10.10 — 2024-07-18 {#v0-10-10}

### Added
- Add support for dbt manifest file ([#104](https://github.com/datacontract/datacontract-cli/issues/104))
- Fix import of pyspark for type-checking when pyspark isn't required as a module ([#312](https://github.com/datacontract/datacontract-cli/issues/312))
- Adds support for referencing fields within a definition ([#322](https://github.com/datacontract/datacontract-cli/issues/322))
- Add `map` and `enum` type for Avro schema import ([#311](https://github.com/datacontract/datacontract-cli/issues/311))

### Fixed
- Fix import of pyspark for type-checking when pyspark isn't required as a module ([#312](https://github.com/datacontract/datacontract-cli/issues/312))- `datacontract import --format spark`: Import from Spark tables ([#326](https://github.com/datacontract/datacontract-cli/issues/326))
- Fix an issue where specifying `glue_table` as parameter did not filter the tables and instead returned all tables from `source` database ([#333](https://github.com/datacontract/datacontract-cli/issues/333))

## 0.10.9 — 2024-07-03 {#v0-10-9}

### Added
- Add support for Trino ([#278](https://github.com/datacontract/datacontract-cli/issues/278))
- Spark export: add Spark StructType exporter ([#277](https://github.com/datacontract/datacontract-cli/issues/277))
- add `--schema` option for the `catalog` and `export` command to provide the schema also locally
- Integrate support into the pre-commit workflow. For further details, please refer to the information provided [here](https://github.com/datacontract/datacontract-cli/blob/main/README.md#use-with-pre-commit).
- Improved HTML export, supporting links, tags, and more
- Add support for AWS SESSION_TOKEN ([#309](https://github.com/datacontract/datacontract-cli/issues/309))

### Changed
- Added array management on HTML export ([#299](https://github.com/datacontract/datacontract-cli/issues/299))

### Fixed
- Fix `datacontract import --format jsonschema` when description is missing ([#300](https://github.com/datacontract/datacontract-cli/issues/300))
- Fix `datacontract test` with case-sensitive Postgres table names ([#310](https://github.com/datacontract/datacontract-cli/issues/310))

## 0.10.8 — 2024-06-19 {#v0-10-8}

### Added
- `datacontract serve` start a local web server to provide a REST-API for the commands
- Provide server for sql export for the appropriate schema ([#153](https://github.com/datacontract/datacontract-cli/issues/153))
- Add struct and array management to Glue export ([#271](https://github.com/datacontract/datacontract-cli/issues/271))

### Changed
- Introduced optional dependencies/extras for significantly faster installation times. ([#213](https://github.com/datacontract/datacontract-cli/issues/213))
- Added delta-lake as an additional optional dependency
- support `GOOGLE_APPLICATION_CREDENTIALS` as variable for connecting to bigquery in `datacontract test`
- better support bigqueries `type` attribute, don't assume all imported models are tables
- added initial implementation of an importer from unity catalog (not all data types supported, yet)
- added the importer factory. This refactoring aims to make it easier to create new importers and consequently the growth and maintainability of the project. ([#273](https://github.com/datacontract/datacontract-cli/issues/273))

### Fixed
- `datacontract export --format avro` fixed array structure ([#243](https://github.com/datacontract/datacontract-cli/issues/243))

## 0.10.7 — 2024-05-31 {#v0-10-7}

### Added
- Test data contract against dataframes / temporary views ([#175](https://github.com/datacontract/datacontract-cli/issues/175))

### Fixed
- AVRO export: Logical Types should be nested ([#233](https://github.com/datacontract/datacontract-cli/issues/233))

## 0.10.6 — 2024-05-29 {#v0-10-6}

### Fixed

- Fixed Docker build by removing msodbcsql18 dependency (temporary workaround)

## 0.10.5 — 2024-05-29 {#v0-10-5}

### Added
- Added support for `sqlserver` ([#196](https://github.com/datacontract/datacontract-cli/issues/196))
- `datacontract export --format dbml`: Export to [Database Markup Language (DBML)](https://dbml.dbdiagram.io/home/) ([#135](https://github.com/datacontract/datacontract-cli/issues/135))
- `datacontract export --format avro`: Now supports config map on field level for logicalTypes and default values [Custom Avro Properties](https://github.com/datacontract/datacontract-cli/blob/main/README.md#custom-avro-properties)
- `datacontract import --format avro`: Now supports importing logicalType and default definition on avro files [Custom Avro Properties](https://github.com/datacontract/datacontract-cli/blob/main/README.md#custom-avro-properties)
- Support `config.bigqueryType` for testing BigQuery types
- Added support for selecting specific tables in an AWS Glue `import` through the `glue-table` parameter ([#122](https://github.com/datacontract/datacontract-cli/issues/122))

### Fixed

- Fixed jsonschema export for models with empty object-typed fields ([#218](https://github.com/datacontract/datacontract-cli/issues/218))
- Fixed testing BigQuery tables with BOOL fields
- `datacontract catalog` Show search bar also on mobile

## 0.10.4 — 2024-05-17 {#v0-10-4}

### Added

- `datacontract catalog` Search
- `datacontract publish`: Publish the data contract to the Data Mesh Manager
- `datacontract import --format bigquery`: Import from BigQuery format ([#110](https://github.com/datacontract/datacontract-cli/issues/110))
- `datacontract export --format bigquery`: Export to BigQuery format ([#111](https://github.com/datacontract/datacontract-cli/issues/111))
- `datacontract export --format avro`: Now supports [Avro logical types](https://avro.apache.org/docs/1.11.1/specification/#logical-types) to better model date types. `date`, `timestamp`/`timestamp-tz` and `timestamp-ntz` are now mapped to the appropriate logical types. ([#141](https://github.com/datacontract/datacontract-cli/issues/141))
- `datacontract import --format jsonschema`: Import from JSON schema ([#91](https://github.com/datacontract/datacontract-cli/issues/91))
- `datacontract export --format jsonschema`: Improved export by exporting more additional information
- `datacontract export --format html`: Added support for Service Levels, Definitions, Examples and nested Fields
- `datacontract export --format go`: Export to go types format

## 0.10.3 — 2024-05-05 {#v0-10-3}

### Fixed
- datacontract catalog: Add index.html to manifest

## 0.10.2 — 2024-05-05 {#v0-10-2}

### Added

- Added import glue ([#166](https://github.com/datacontract/datacontract-cli/issues/166))
- Added test support for `azure` ([#146](https://github.com/datacontract/datacontract-cli/issues/146))
- Added support for `delta` tables on S3 ([#24](https://github.com/datacontract/datacontract-cli/issues/24))
- Added new command `datacontract catalog` that generates a data contract catalog with an `index.html` file.
- Added field format information to HTML export

### Fixed
- RDF Export: Fix error if owner is not a URI/URN


## 0.10.1 — 2024-04-19 {#v0-10-1}

### Fixed

- Fixed docker columns

## 0.10.0 — 2024-04-19 {#v0-10-0}

### Added

- Added timestamp when ah HTML export was created

### Fixed

- Fixed export format **html**

## 0.9.9 — 2024-04-18 {#v0-9-9}

### Added

- Added export format **html** ([#15](https://github.com/datacontract/datacontract-cli/issues/15))
- Added descriptions as comments to `datacontract export --format sql` for Databricks dialects
- Added import of arrays in Avro import

## 0.9.8 — 2024-04-01 {#v0-9-8}

### Added

- Added export format **great-expectations**: `datacontract export --format great-expectations`
- Added gRPC support to OpenTelemetry integration for publishing test results
- Added AVRO import support for namespace ([#121](https://github.com/datacontract/datacontract-cli/issues/121))
- Added handling for optional fields in avro import ([#112](https://github.com/datacontract/datacontract-cli/issues/112))
- Added Databricks SQL dialect for `datacontract export --format sql`

### Fixed

- Use `sql_type_converter` to build checks.
- Fixed AVRO import when doc is missing ([#121](https://github.com/datacontract/datacontract-cli/issues/121))

## 0.9.7 — 2024-03-15 {#v0-9-7}

### Added

- Added option publish test results to **OpenTelemetry**: `datacontract test --publish-to-opentelemetry`
- Added export format **protobuf**: `datacontract export --format protobuf`
- Added export format **terraform**: `datacontract export --format terraform` (limitation: only works for AWS S3 right now)
- Added export format **sql**: `datacontract export --format sql`
- Added export format **sql-query**: `datacontract export --format sql-query`
- Added export format **avro-idl**: `datacontract export --format avro-idl`: Generates an Avro IDL file containing records for each model.
- Added new command **changelog**: `datacontract changelog datacontract1.yaml datacontract2.yaml` will now generate a changelog based on the changes in the data contract. This will be useful for keeping track of changes in the data contract over time.
- Added extensive linting on data contracts. `datacontract lint` will now check for a variety of possible errors in the data contract, such as missing descriptions, incorrect references to models or fields, nonsensical constraints, and more.
- Added importer for avro schemas. `datacontract import --format avro` will now import avro schemas into a data contract.

### Fixed

- Fixed a bug where the export to YAML always escaped the unicode characters.


## 0.9.6-2 — 2024-03-04 {#v0-9-6-2}

### Added

- test kafka for avro messages
- added export format **avro**: `datacontract export --format avro`

## 0.9.6 — 2024-03-04 {#v0-9-6}

This is a huge step forward, we now support testing Kafka messages.
We start with JSON messages and avro, and Protobuf will follow.

### Added
- test kafka for JSON messages
- added import format **sql**: `datacontract import --format sql` ([#51](https://github.com/datacontract/datacontract-cli/issues/51))
- added export format **dbt-sources**: `datacontract export --format dbt-sources`
- added export format **dbt-staging-sql**: `datacontract export --format dbt-staging-sql`
- added export format **rdf**: `datacontract export --format rdf` ([#52](https://github.com/datacontract/datacontract-cli/issues/52))
- added command `datacontract breaking` to detect breaking changes in between two data contracts.

## 0.9.5 — 2024-02-22 {#v0-9-5}

### Added
- export to dbt models ([#37](https://github.com/datacontract/datacontract-cli/issues/37)).
- export to ODCS ([#49](https://github.com/datacontract/datacontract-cli/issues/49)).
- test - show a test summary table.
- lint - Support local schema ([#46](https://github.com/datacontract/datacontract-cli/issues/46)).

## 0.9.4 — 2024-02-18 {#v0-9-4}

### Added
- Support for Postgres
- Support for Databricks

## 0.9.3 — 2024-02-10 {#v0-9-3}

### Added
- Support for BigQuery data connection
- Support for multiple models with S3

### Fixed

- Fix Docker images. Disable builds for linux/amd64.

## 0.9.2 — 2024-01-31 {#v0-9-2}

### Added
- Publish to Docker Hub

## [0.9.0] - 2024-01-26 - BREAKING

This is a breaking change (we are still on a 0.x.x version).
The project migrated from Golang to Python.
The Golang version can be found at [cli-go](https://github.com/datacontract/cli-go)

### Added
- `test` Support to directly run tests and connect to data sources defined in servers section.
- `test` generated schema tests from the model definition.
- `test --publish URL` Publish test results to a server URL.
- `export` now exports the data contract so format jsonschema and sodacl.

### Changed
- The `--file` option removed in favor of a direct argument.: Use `datacontract test datacontract.yaml` instead of `datacontract test --file datacontract.yaml`.

### Removed
- `model` is now part of `export`
- `quality` is now part of `export`
- Temporary Removed: `diff` needs to be migrated to Python.
- Temporary Removed: `breaking` needs to be migrated to Python.
- Temporary Removed: `inline` needs to be migrated to Python.

## 0.6.0 {#v0-6-0}
### Added
- Support local json schema in lint command.
- Update to specification 0.9.2.

## 0.5.3 {#v0-5-3}
### Fixed
- Fix format flag bug in model (print) command.

## 0.5.2 {#v0-5-2}
### Changed
- Log to STDOUT.
- Rename `model` command parameter, `type` -> `format`.

## 0.5.1 {#v0-5-1}
### Removed
- Remove `schema` command.

### Fixed
- Fix documentation.
- Security update of x/sys.

## 0.5.0 {#v0-5-0}
### Added
- Adapt Data Contract Specification in version 0.9.2.
- Use `models` section for `diff`/`breaking`.
- Add `model` command.
- Let `inline` print to STDOUT instead of overwriting datacontract file.
- Let `quality` write input from STDIN if present.

## 0.4.0 {#v0-4-0}
### Added
- Basic implementation of `test` command for Soda Core.

### Changed
- Change package structure to allow usage as library.

## 0.3.2 {#v0-3-2}
### Fixed
- Fix field parsing for dbt models, affects stability of `diff`/`breaking`.

## 0.3.1 {#v0-3-1}
### Fixed
- Fix comparing order of contracts in `diff`/`breaking`.

## 0.3.0 {#v0-3-0}
### Added
- Handle non-existent schema specification when using `diff`/`breaking`.
- Resolve local and remote resources such as schema specifications when using "$ref: ..." notation.
- Implement `schema` command: prints your schema.
- Implement `quality` command: prints your quality definitions.
- Implement the `inline` command: resolves all references using the "$ref: ..." notation and writes them to your data contract.

### Changed
- Allow remote and local location for all data contract inputs (`--file`, `--with`).

## 0.2.0 {#v0-2-0}
### Added
- Add `diff` command for dbt schema specification.
- Add `breaking` command for dbt schema specification.

### Changed
- Suggest a fix during `init` when the file already exists.
- Rename `validate` command to `lint`.

### Removed
- Remove `check-compatibility` command.

### Fixed
- Improve usage documentation.

## 0.1.1 {#v0-1-1}
### Added
- Initial release.
