Skip to content

docs: incorrect defaults, variable names, and code examples in Server.md and Routes.md #6767

Closed

Description

@AliMahmoudDev

Summary

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.

Bugs

1. requestIdHeader default shown incorrectly (Server.md ~line 475)

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

  1. github-actions commented on Nov 1, 2026

    @github-actions

    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.

  2. locked as resolved and limited conversation to collaborators on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions