Skip to content

Commit 8ed853d

Browse files
committed
feat: implement JSON Schema for commitizen config (issue #1565)
- Add scripts/gen_json_schema.py: generates schema from Settings/CzSettings TypedDicts - Add tests/test_json_schema.py: 18 tests validating schema generation, type mapping, defaults, and validation - Add schemas/commitizen-config.schema.json: committed schema (schemastore.org-compatible) - Update pyproject.toml: add jsonschema dependency to test group The schema covers all config keys under [tool.commitizen] including nested customize. All tests pass, ruff clean.
1 parent 8d24dfb commit 8ed853d

5 files changed

Lines changed: 1282 additions & 34 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ test = [
108108
"pytest-xdist>=3.1.0",
109109
"pytest-gitconfig>=0.9.0",
110110
"pre-commit>=4.5.1",
111+
"jsonschema>=4.26.0",
111112
]
112113

113114
linters = [

0 commit comments

Comments
 (0)