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
Very nice!
Good one. Very concise
This is great, right to the point.
Thanks!!!!
Thank you Vignesh
Thanks
amazing and simple thx
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.
you implemented it in modular way, thanks!
Nice! thank you :)
Smart 🤓
how to get those parsed-data on the Request object and type-safety?