Replies: 1 comment 3 replies
-
There is an error handling document that can give you some ideas. If you want to customize it across the board, you can use an "error map" as described here |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have simple schema where field is just
number
However when i do parsing i see the error
Expected number, received string
what is correct. The question is how can i change the error text?I thought smth like that, but it doesn't work
Example: https://codesandbox.io/s/zod-error-text-p0w3f?file=/src/App.tsx
UPD: There is pr #543
Beta Was this translation helpful? Give feedback.
All reactions