zod-validation-error equivalent? #361
Everduin94
started this conversation in
General
Replies: 1 comment 1 reply
-
Unfortunately, no. We should add such a formatting function. Feel free to create a issue or PR. Until this is implemented, you can format the Valibot issues yourself: https://valibot.dev/guides/issues/ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there!
I have a small side project that Valibot would fit really well (Zod is currently 50% of my project size)
I've been reading about Valibot to replace this zod pipeline. AFAIK Valibot has everything I need to do so.
One thing I can't find. I use this library, zod-validation-error, to transform a zod error into a formatted error message .
Example: Validation error: Number must be greater than 0 at "id"; Invalid email at "email".
Does Valibot have something that would be the equivalent?
Beta Was this translation helpful? Give feedback.
All reactions