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

Rethink validation error representation #9

Open
travisbrown opened this issue Oct 9, 2019 · 1 comment
Open

Rethink validation error representation #9

travisbrown opened this issue Oct 9, 2019 · 1 comment

Comments

@travisbrown
Copy link
Member

Currently this is a pretty slim wrapper for Everit's ValidationException, and there are probably some ways it could be improved. For a document with two schema violations, for example, there are three error values, since the top-level Everit exception ("2 schema violations found") is included.

@galatt
Copy link

galatt commented Apr 21, 2023

Hello, I think it is possible to handle the violations based on keyword, also it would be great if the path could be returned in a format that Circe can handle. Currently it is in "#/key1/key2/3/key3" format. In our project we split the string, remove the root part, then we use circe-optics to get the violated field and the violation from schema jsons.
Is there any work in progress for these upgrades?

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

2 participants