Skip to content

improve outputUnits with all assertion fields  #1030

@JR-Utily

Description

@JR-Utily

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions