Deprecating `z.discriminatedUnion`? · Issue #2106 · colinhacks/zod
Superceded by #3407 I'm planning to deprecate z.discriminatedUnion in favor of a "switch" API that's cleaner and more generalizable. You can dynamically "switch" between multiple schemas at parse-t...