[ZOD] Implement logic to handle Zod.discriminatedUnion #1292
Labels
Area: Bridge
Affects some of the bridge packages
Bridge: Zod
Affects the uniforms-bridge-zod package
Type: Feature
New features and feature requests
Milestone
Hel everyone, i'm willig to use Zod.discriminatedUnion to create an object that based on the value of a property has a different shape. i tried with this simple example:
but i received an error:
I think that the error come from getType of the ZodBridge because there isn't an implementation of discriminatedUnion
Is there any plan on supporting this? i think i could have some time to work on this if you think it could help others also.
Or if you have a different implementation for my use case please let me know!
Thanks
The text was updated successfully, but these errors were encountered: