circe-json-schema icon indicating copy to clipboard operation
circe-json-schema copied to clipboard

Rethink validation error representation

Open travisbrown opened this issue 5 years ago • 1 comments

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.

travisbrown avatar Oct 09 '19 08:10 travisbrown

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?

galatt avatar Apr 21 '23 09:04 galatt