Skip to content

Mention body parsing in READMEΒ #7

@yortus

Description

@yortus

This lib assumes req.body has already been parsed by the time the decorated router sees it. The README should be more explicit about this. A common gotcha is seeing validation errors on perfectly valid requests, where the problem is actually caused by a lack of body parsing middleware, so req.body isn't defined.

Maybe the error message when req.body is undefined could even provide a hint about this, since it's a likely cause.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions