Use ZodOptional in input #1992
Answered
by
RobinTail
JonathanCabezas
asked this question in
Q&A
-
Hello, I'm trying to use Here my code:
Did I miss something ? |
Beta Was this translation helpful? Give feedback.
Answered by
RobinTail
Aug 17, 2024
Replies: 1 comment 2 replies
-
You are making the whole object schema optional. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
RobinTail
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are making the whole object schema optional.
Consider making optional the fields inside of it instead, @JonathanCabezas