For existing users of @felte/validator-zod, validation behaviour is the same. The only difference is that Zod issues with an invalid_union code will now be recursively crawled for their nested issues. Validation works exactly the same, but usage of a union type may now show errors where they weren't shown before.
Closes #248, #290.
Fixes the Zod validator to surface nested
invalid_union
errors.For existing users of
@felte/validator-zod
, validation behaviour is the same. The only difference is that Zod issues with aninvalid_union
code will now be recursively crawled for their nested issues. Validation works exactly the same, but usage of a union type may now show errors where they weren't shown before.