-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
.openapi()
does not exist when extending zod with extendZodWithOpenApi
#397
Comments
Hey, you might need to check if you have different versions of zod-openapi in your dependencies. Your lockfile is probably a good place to check. Unfortunately this is a limitation of TypeScript which also affects the main Zod library when they release type changes |
Hey @samchungy, thank you for your suggestion. Unfortunately this was not the case. Forcefully overriding all versions of zod-openapi to |
Ah gotcha the manual extend is broken. 👀 Looing into it |
Thanks for raising @mauricewegner 🙏 Merry Christmas 🎄 |
Since
4.2.1
(#393) the extended types are not being supplied when extending zod withextendZodWithOpenApi
.Downgrading to
4.2.0
fixes this issue.The text was updated successfully, but these errors were encountered: