Introduction
Express.js is a popular web framework for building Node.js applications, and validation is a crucial aspect of handling inc...
For further actions, you may consider blocking this person and/or reporting abuse
Really useful, thanks!
Thank you @adrielfsantos
This is great, right to the point.
Thanks!!!!
Thank you Vignesh
Very nice!
amazing and simple thx
Thanks
Good one. Very concise
How can i validate the params too? Great article, thanks!
You can try something like this for a validation.middleware.ts:
Thank you for the good article. Maybe I am wrong, but this does not give you type safety inside the controller. If I want to access req.body in the controller, its type is still "any". Sadly you would need to infer the type of the body from your schema.
Nice! thank you :)
Smart 🤓
you implemented it in modular way, thanks!
how to get those parsed-data on the Request object and type-safety?