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

Introduce 'best deep match' heuristic #303

Merged
merged 1 commit into from
Aug 15, 2023
Merged

Introduce 'best deep match' heuristic #303

merged 1 commit into from
Aug 15, 2023

Conversation

sirosen
Copy link
Member

@sirosen sirosen commented Aug 15, 2023

And also print a small hint that --verbose should be used to try to see all errors.

Tests are just tweaked a little to catch this in the output, but a sample of the new rendering...
image

Hopefully, this can guide people towards --verbose more often when they need it, and the "best deep match" might surface better things for certain schemas. The whole space of guessing which error to show is kind of dicey though -- I tried various priorities for different validators and found that it always depends on how the schema was written.

And also print a small hint that `--verbose` should be used to try to
see all errors.
@sirosen sirosen merged commit e5b9f68 into main Aug 15, 2023
37 checks passed
@sirosen sirosen deleted the add-deep-match branch August 15, 2023 18:18
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.

1 participant