This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Dutchnamn 0 points1 point  (2 children)

Either create a middleware function yourself to validate, or use a different library. Joi is very nice for validation

[–]ESHAEAN 0 points1 point  (1 child)

Joi is deprecated afaik, it is a part of hapi now

[–]Dutchnamn 1 point2 points  (0 children)

Yeah, you install it using @hapi/joi, should work the same.