You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zod is definitely missing lots of validation checks that Yup has. For instance, yup.number().positive(). For Zod's v1, I was only concerned with representing/validating types with an equivalent representation in TypeScript's type system. There is no way to represent a "positive number" type in TypeScript. But I certainly intend to implement a wider array of validators down the road.
Not interested in this - the point of something like Zod is to avoid dealing with JSON-based schema declarations and their associated fragile codegen-based ecosystems.
I like the custom messages concept from Yup. The API of Zod is flexible enough to support something like this in the future. I'll add it to the list.
Hi,
I have read your article and reasoning for creating this lib. And I first, ye cool correct types, I will use it.
But then I see that
My question, where do you use it, so you can live without the above features?
The text was updated successfully, but these errors were encountered: