You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a case where I have incoming data as
unknownand I need to parse it as the input of the schema.I can not parse it as output, because it might not pass all of the validations defined on the schema.
Internally, Zod's
.safeParseshould do these two steps:Is there a reason why
.safeParseInputdoes not exist and would you be open to a PR that would implement it?Beta Was this translation helpful? Give feedback.
All reactions