top | item 41790812

(no title)

roessland | 1 year 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.

discuss

order

kabes|1 year ago

But Yup also allows to infer types from schemas...

roessland|1 year ago

Sorry, might have mixed up Yup and Joi. Anyways, I prefer Zod to both of them.