DEV Community

Discussion on: Joi — awesome code validation for Node.js and Express

Collapse
 
josemunoz profile image
José Muñoz

Great Post! I personally use Yup which is based on Joi but tailored for the frontend, smaller footprint and whatnot, its pretty much the same API and it is wonderful to work with, specially with Formik

Collapse
 
softchris profile image
Chris Noring

Hi José. Appreciate the comment. Will look into Yup :)

Collapse
 
nexxado profile image
Netanel Draiman

Cool, didn't know about Yup.
Aside from validating API responses, what other use-cases do you use it for?

Collapse
 
josemunoz profile image
José Muñoz

on the frontend it is useful to validate form data before sending it on a request :)

Collapse
 
slidenerd profile image
slidenerd

does yup work on the backend and frontend, also what is the difference between yup and joi in terms of functionality, is one superior to the other in any way apart from the footprint you mentioned

Collapse
 
tsuki42 profile image
Sudhanshu

Yup doesn't support Dictionary-like structure that Joi does out of the box.
github.com/jquense/yup/issues/1275...