Skip to content

Commit 083c164

Browse files
committed
fix: render schemas in ODCS HTML template (fixes #880)
1 parent bd8c216 commit 083c164

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- Fix SQL export generating multiple PRIMARY KEY constraints for composite keys (#1026)
1212
- Preserve parametrized physicalTypes for SQL export (#1086)
1313
- Fix incorrect SQL type mappings: SQL Server `double`/`jsonb`, MySQL bare `varchar`, missing Trino types (#1110)
14+
- Fix ODCS HTML export not rendering schemas due to wrong attribute name (`schema` vs `schema_`) (#880)
1415

1516
## [0.11.7] - 2026-03-24
1617

tests/test_export_html.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,13 @@ def test_cli_with_output(tmp_path: Path):
2929
)
3030
assert result.exit_code == 0
3131
assert os.path.exists(tmp_path / "datacontract.html")
32+
33+
34+
def test_schemas_are_rendered():
35+
"""Regression test for #880: schemas should render in the ODCS HTML template."""
36+
runner = CliRunner()
37+
result = runner.invoke(app, ["export", "./fixtures/export/datacontract.odcs.yaml", "--format", "html"])
38+
assert result.exit_code == 0
39+
# The schema name 'orders' and a property name 'order_id' should appear in the output
40+
assert "orders" in result.output
41+
assert "order_id" in result.output

0 commit comments

Comments
 (0)