Hacker News new | ask | show | jobs
by roessland 621 days ago
My company used Yup initially but we moved to Zod to be able to infer types from schemas. For example, API response payloads are Zod schemas. OpenAPI components are also generated from Zod schemas.

There are some performance issues, and WebStorm is struggling, which forced me over to VS Code.

But overall pretty happy.

1 comments

But Yup also allows to infer types from schemas...
Sorry, might have mixed up Yup and Joi. Anyways, I prefer Zod to both of them.