Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: surface deepest error from failed union validation
The "Expected union value" error message is practically useless, so I think it‘s a better DX to surface the deepest validation error (based on property path).
- Loading branch information
1 parent
abe71c6
commit 84ff329
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters