Add utility function for pretty printing validation errors like in Zod v4 #362
mintydev789
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I know there is the
flattenValidationErrors
function, but it still returns an object with per-field validation errors. Zod 4 came out with thez.prettifyError()
function, which provides very nice pretty printing of validation errors. It would be nice for us to have something like that that returns a simple string too, because otherwise we still have to go through the flattened validation errors objects to condense them into strings for display.Beta Was this translation helpful? Give feedback.
All reactions