-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
z.discriminatordUnion can't handle Unions #2121
Comments
considering @colinhacks thoughts? |
@WORMSS, I'm going to close this issue. Feel free to reopen if you have more to say. |
Is there a plan for that depreciation? It seems that #2106 was last updated last month. Would there be a "quick fix" that would address this instead? |
You might wanna checkout #1845 (comment) where teunmooij introduced a dedicated fix with z.enum support which could handle your usecase. z.enum works fine for primitive homogeneous discriminator properties like in your example. |
z.discriminatordUnion()
can't handlez.union()
I've just seen that you want to deprecate discriminatedUnion from #2109
But I was hoping this would be a super quick fix.
The text was updated successfully, but these errors were encountered: