Skip to content

Conversation

@mayurm88
Copy link

@mayurm88 mayurm88 commented Jun 2, 2025

Resolves #1072

@mayurm88 mayurm88 changed the title fix: surface multi-errors in Origin in cases of oneOf schema errors fix: surface multi-errors in Origin field in cases of oneOf schema errors Jun 2, 2025
@mayurm88 mayurm88 force-pushed the fix/surface-multi-errors-one-of branch from 0a84208 to e5fd30f Compare June 3, 2025 05:11
@mayurm88
Copy link
Author

mayurm88 commented Jun 3, 2025

Realized that we could always unwrap the error using errors.As or errors.Unwrap to get the underlying MultiError since we're using fmt.Errorf. 🤦🏼‍♂️

@mayurm88 mayurm88 closed this Jun 3, 2025
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

Successfully merging this pull request may close these issues.

OneOf schema validation results in an error message that is hard to parse and customize

1 participant