Skip to content
Discussion options

You must be logged in to vote

Hello @crisnamurti

If you remove await of your request.validate, node doesn't wait for the response of request.validate and pass automatically at the next line. Concretly it doesn't validate your request.

When you provide bad datas at your validator, request.validate will respond with a http 422 error with the reasons of the validation fail, but not raise an exeption.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@crisnamurti
Comment options

Answer selected by crisnamurti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants