You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: incorrect defaults, variable names, and code examples in Server.md and Routes.md #6767
There are several documentation bugs in docs/Reference/Server.md and docs/Reference/Routes.md where defaults are incorrect, variable names are wrong, or code examples are syntactically invalid.
The documentation states the default is request-id, but the actual default in the codebase is false. The text below even contradicts this by correctly stating: "By default requestIdHeader is set to false". The + Default: request-id line should be changed to + Default: false.
2. frameworkErrors example uses wrong variable name (Server.md ~line 724)
The frameworkErrors handler parameter is named error in the function signature, but the example code uses res.send(err) (undefined variable err). It should be res.send(error).
3. serializerCompiler signature has double braces (Routes.md ~line 105)
The signature shows serializerCompiler({ { schema, method, url, httpStatus, contentType } }) with an extra opening brace. It should be serializerCompiler({ schema, method, url, httpStatus, contentType }).
4. buildPrettyMeta example is syntactically invalid (Server.md ~lines 849-863)
The example shows buildPrettyMeta nested inside a route handler, which is syntactically invalid JavaScript. The example should demonstrate buildPrettyMeta as a routerOptions constructor option, not inside a route handler.
5. querystringParser in routerOptions has wrong default module (Server.md ~lines 1065-1087)
The querystringParser section under routerOptions (second occurrence, ~line 1065) states the default is "Node.js core querystring module", but it should say fast-querystring (matching the top-level factory option description at ~line 591). The example code at line 1087 imports node:querystring instead of fast-querystring.
Activity
github-actions commentedon Nov 1, 2026
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.