Schema's Approach to Discriminated Unions Explained
How does Schema handle discriminated unions? For example, Zod requires you to pass a property specifying the discriminator for performance reasons, but Schema doesn't need that.
Does it validate one by one until it finds a match, or how does it work? I'd look into the source code, but it would be the equivalent of staring at a wall for me.
Does it validate one by one until it finds a match, or how does it work? I'd look into the source code, but it would be the equivalent of staring at a wall for me.
