Zod in commercial projects (work)

Do you use Zod in your projects at work? A new one is starting for me, but we are holding back with the decision (we are considering Yup), because we are afraid that there may be a lot of work with inputs in forms that are dependent on each other (for example, if the user selects a checkbox, this field becomes mandatory, otherwise not, or if the value of one is more than 200 then the other must be less than 500). PS: We dont use tRPC Do you have any experience?
2 Replies
robotkutya
robotkutya2y ago
general consensus is that zod is better than yup I personally also agree with that consensus if you don't use tRPC, but you have openapi definitions (or can generate it from the backend) then absolutely check this out
robotkutya
robotkutya2y ago
GitHub
GitHub - astahmer/openapi-zod-client: Generate a zodios (typescript...
Generate a zodios (typescript http client with zod validation) from an OpenAPI spec (json/yaml) - GitHub - astahmer/openapi-zod-client: Generate a zodios (typescript http client with zod validation...
Want results from more Discord servers?
Add your server