Pass default values when calling parse() #3823
BrendanC23
started this conversation in
Ideas
Replies: 0 comments
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.
-
I know what Zod has a
.default()method that allows a default value to be defined for a schema. I would like to be able to provide a list of default values when parsing instead, as the default values might change depending on where the data is being parsed.Beta Was this translation helpful? Give feedback.
All reactions