How to run error handling middleware on validateSync()
?
#8703
Labels
enhancement
This issue is a user-facing general improvement that doesn't fix a bug or add a new feature
Milestone
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 #4885Re: #4885
The text was updated successfully, but these errors were encountered: