Commit 8ed853d
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
- schemas
- scripts
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| |||
0 commit comments