-
Notifications
You must be signed in to change notification settings - Fork 92
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
Getting typescript build error with the new discriminated union output (v1.6.1) #110
Comments
hey, @dominik-parkopedia any idea on what's needed to fix this ? mentioning you since you introduced z.discriminatedUnion here |
@astahmer @ronaldcurtis Very interesting … Sorry for breaking your build! I won't have time today, but will have a look tomorrow. Seems like we have to increase test coverage. |
@astahmer @dominik-parkopedia Looks like this is a known problem: colinhacks/zod#2121 Also TLDR:
Perhaps it might be worth reverting the change? And introduce the new |
that's fine with me 👍 thanks for the investigation btw |
Sorry for only coming back today. I will have a look at that! |
Playground Link: Here
Error output:
Hi there, we seem to be getting an error with the latest release (v1.6.1) with the introduced
z.discriminatedUnion
output. We have an implementation of JSONPatch on one of our open-API endpoints, and the error seems to be centered around this.Any help is appreciated! 🙏
The text was updated successfully, but these errors were encountered: