-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZodObject second generic arg is required after upgrading 3.20.2 -> 3.20.3 #2012
Comments
Oh perhaps am I supposed to use EDIT: well after changing it to EDIT: Added |
+1 at this issue, this shouldn't be in a patch upgrade, broke many things. I recommend rolling back to 3.20.2 while it's unstable... |
Apologies, fixed in 3.20.4. |
@SkyaTura What other breaking changes have you experienced? Please file issues. |
@colinhacks it was something related to merging objects defs. Unfortunately I was on a rush and had to quickly undo the update in order to delivery some things. I may test it again with the bugged version for you when things get calm over here ;) |
Hi, after upgrading from
3.20.2
to3.20.3
, my code is broken, becauseZodObject
now requires at least 2 generic params, egIf this change was intended could someone help me fixing the code?
The function takes zod shape and generates a union of the original shape and same shape where all props are null. Optionally the props are prefixed. Eg:
outerJoinSchema({ foo: z.string() }, 'prefix')
=>
Originally it was supposed to take schema instead of shape, but I couldn't make it work type-wise.
The text was updated successfully, but these errors were encountered: