-
This is maybe more of a zod question than a remix-validated-form, but I was wondering if zod supports labels, like yup. Right now, my error messages say: "string must be at least 5 character(s)", which is pretty generic. I ctrl-f'd through the zod readme but I didn't find anything. |
Beta Was this translation helpful? Give feedback.
Answered by
airjp73
May 1, 2022
Replies: 1 comment
-
There's no label helper in zod, but you can customize error messages. Here's some docs: https://github.com/colinhacks/zod/blob/v3/ERROR_HANDLING.md#customizing-errors-with-zoderrormap |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vedantroy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's no label helper in zod, but you can customize error messages. Here's some docs: https://github.com/colinhacks/zod/blob/v3/ERROR_HANDLING.md#customizing-errors-with-zoderrormap