Commit 5bdb5f5
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 726b220 commit 5bdb5f5
File tree
17 files changed
+4072
-2
lines changed- deps/ata
- src
- test
- fixtures/rc
- parallel
- tools
- nix
17 files changed
+4072
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
79 | 104 | | |
80 | 105 | | |
81 | 106 | | |
| |||
| 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