src: make node.config.json throw at unknown fields · nodejs/node@ba36ab7 · GitHub
Skip to content

Commit ba36ab7

Browse files
marco-ippolitoaduh95
authored andcommitted
src: make node.config.json throw at unknown fields
Signed-off-by: Marco Ippolito <marcoippolito54@gmail.com> PR-URL: #62992 Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 49198d2 commit ba36ab7

3 files changed

Lines changed: 27 additions & 4 deletions

File tree

src/node_config_file.cc

Lines changed: 7 additions & 2 deletions

test/fixtures/rc/schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://nodejs.org/dist/vX.Y.Z/docs/node-config-schema.json",
3+
"nodeOptions": {
4+
"max-http-header-size": 10
5+
}
6+
}

test/parallel/test-config-file.js

Lines changed: 14 additions & 2 deletions

0 commit comments

Comments
 (0)