Extended zod error messages from existing objects? #4052
Unanswered
anthonyalayo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a zod object that is handed to me from elsewhere, and I do not have the ability to change it. However, I do know what items it contains. For example, it has a "firstName" string with a min length of 3 and a max length of 24.
Is there any way to take the zod schema handed to me, and do something like:
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions