DEV Community

Joi Tutorial-Using @hapi/joi version 16.1.7 to validate a request body in a RESTful API.

Jacqueline Binya on November 06, 2019

Intro Why validate? Before we even get started I know there is someone thinking, " Why should I bother with validations in th...
Collapse
 
anlixsigns profile image
André Litfin

Hi Jacqueline, thanks a lot for your post. If you want to have an even faster validation think of using joi.validate or joi.validateAsync instead of joi.assert: github.com/hapijs/joi/issues/2340

Collapse
 
jacqueline profile image
Jacqueline Binya • Edited

Thank you, I will sure check it out.

Collapse
 
mwafrika profile image
Mwafrika Josué

thanks so much Jacquie, this is the very meaningful post.

Collapse
 
makwasi1 profile image
Makwasi

Thanks for this post. Really great

Collapse
 
majiyd profile image
majiyd

Thank you for this post. It's better than the official documentation tbh.

Collapse
 
jacqueline profile image
Jacqueline Binya

Thanks that really means a lot to me.