Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support flattened union errors #19

Open
SpencerKaiser opened this issue Jan 26, 2023 · 0 comments
Open

Support flattened union errors #19

SpencerKaiser opened this issue Jan 26, 2023 · 0 comments

Comments

@SpencerKaiser
Copy link

Is your feature request related to a problem? Please describe.
When schema validation takes place for a union type, the end result is an error object with a single message of Invalid input, which strips a lot of useful information out of the validation flow.

Describe the solution you'd like
Some method of specifying (or preferably a breaking change that would make this behavior default) to essentially flatten the errors into a root object like any other validation result.

Describe alternatives you've considered
Trying to refactor my schema to prevent a union from being necessary, which I don't think is possible...

Additional context
Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant