DEV Community

Discussion on: Response validation with Yup

Collapse
 
nikfp profile image
Nik F P

This is an awesome Idea. I hadn't thought about validating API responses like this but it makes sense! Now I will for any API I don't control.

Also, I tried to work with yup for a while but it always seemed pretty finicky. I decided to give Zod a shot and within about an hour I was totally sold. Same idea as Yup, but Zod's usage just seems to fit better.

Collapse
 
hurricaneinteractive profile image
adro.codes

Yep Zod is nice, I've used it once or twice in the past. Everytime I jump into a project it seems to have yup installed so that is where most of my experience is 😂