Commit 33202b7
committed
src: add JSON Schema validation for node.config.json
Add ata (v0.8.0) as a bundled dependency for JSON Schema Draft
2020-12 validation. Config files are now validated against a
generated schema before option parsing, providing clear type
error messages to users.
- deps: add ata v0.8.0 JSON Schema validator
- src: validate config after simdjson parse, before option loop
- build: add shared library support and nix fileset for ata
- test: add schema validation and process.versions.ata tests1 parent fd9eecf commit 33202b7
File tree
17 files changed
+4395
-265
lines changed- deps/ata
- src
- test
- fixtures/rc
- parallel
- tools
- nix
17 files changed
+4395
-265
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
557 | 579 | | |
558 | 580 | | |
559 | 581 | | |
| |||
2625 | 2647 | | |
2626 | 2648 | | |
2627 | 2649 | | |
| 2650 | + | |
2628 | 2651 | | |
2629 | 2652 | | |
2630 | 2653 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments