ZodResolver is flattening the nested objects in the zod schema. #11576
Unanswered
KarthikRaju391
asked this question in
General
Replies: 1 comment
-
Bump |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
The only thing is that I am not manually defining the zod schema. Instead, I am generating a zod schema automatically from a typescript object.
When I am parsing it manually, it's working correctly.
When the FormSchema is passed to the zodResolver, and I run
form.getValues()
, I am getting thisIt is not keeping the nested object fields like
overview
andmetabar
Beta Was this translation helpful? Give feedback.
All reactions