Skip to content

How to run error handling middleware on validateSync()? #8703

@vkarpov15

Description

@vkarpov15

Right now we skip async validators on validateSync(), but the way we determine if a validator is async is based on the number of arguments. Since error handling middleware must take 3 arguments, validateSync() will never run error handling middleware #4885

Re: #4885

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis issue is a user-facing general improvement that doesn't fix a bug or add a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions