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
This was helpful when validating some specific deeply-nested properties inside an object without worrying about manually altering the path in the root and union issues for it to be a valid path relative to the root object and just simply handling issues as-is.
Here's the ParseParams interface in v3 used by parse and safeParse:
Also, path is no longer available inside transforms and refinements' ctx, which was crucial for recursive types to make validations based on the current path. Notify me if I should create a separate issue for this.
This was helpful when validating some specific deeply-nested properties inside an object without worrying about manually altering the path in the root and union issues for it to be a valid path relative to the root object and just simply handling issues as-is.
Here's the
ParseParams
interface in v3 used byparse
andsafeParse
:zod/src/helpers/parseUtil.ts
Lines 43 to 47 in 8cca93b
I couldn't find any mentions of this change in the migration guide so I assume it was unintentional.
The text was updated successfully, but these errors were encountered: