How to recursive zod on z.object? #3671
Unanswered
tal-rofe98
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 the following code:
and the output is:
But I want it to return data output:
I could do the schema:
and then it would work but I may have more and more nested keys to do so on, and I want to avoid many many
.catch()
statements. Is there a way to do it?Beta Was this translation helpful? Give feedback.
All reactions