Skip to content

Use ZodOptional in input #1992

Answered by RobinTail
JonathanCabezas asked this question in Q&A
Discussion options

You must be logged in to vote

You are making the whole object schema optional.
Consider making optional the fields inside of it instead, @JonathanCabezas

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RobinTail
Comment options

@JonathanCabezas
Comment options

Answer selected by RobinTail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants