-
Notifications
You must be signed in to change notification settings - Fork 330
Description
Thanks for your great lib.
We needed json schema validation for our scala project, and it was really easy to wrap around your work !
I have one suggestion regardless:
You have documented a lot of interesting fields available for the "assertion" object here
https://github.com/networknt/json-schema-validator?tab=readme-ov-file#results-and-output-formats
that are in fact only available in the ValidationMessage
class and not in OutputUnit
for LIST or HIERARCHY validation.
It would be great to have them, for example to be able to built our own error message from the given errors without the need to rely on the lib specific formulation.
In this view, I think OutputUnit.getErrors
and OutputUnit.getAnnotations
could return something with stronger type than just Map<String, Object>
to give structure, in a way close to what already exists in ValidationMessage
I hope it helps improve this great lib !