| 1 | # aig-toml-check |
| 2 | |
| 3 | Validate TOML files against [JSON Schema](https://json-schema.org). |
| 4 | |
| 5 | ## Usage |
| 6 | |
| 7 | ```bash |
| 8 | aig-toml-check check path/to/file.toml |
| 9 | aig-toml-check check docs/ --schema schemas/catalog.schema.json |
| 10 | ``` |
| 11 | |
| 12 | Each file may declare its schema in the header (Taplo-style): |
| 13 | |
| 14 | ```toml |
| 15 | #:schema ../docs/schemas/example.schema.json |
| 16 | ``` |
| 17 | |
| 18 | Paths in `#:schema` are resolved relative to the TOML file. |
| 19 | |
| 20 | ## Exit codes |
| 21 | |
| 22 | - `0` — all files valid |
| 23 | - `1` — parse error, missing schema, or validation failure |
| 24 | |
| 25 | ## Install |
| 26 | |
| 27 | ```bash |
| 28 | dotnet tool install AIGuiders.DotnetTools.TomlCheck |
| 29 | ``` |
| 30 | |
View only · write via MCP/CIDE