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

Number of errors during validation? #70

Open
fchabouis opened this issue May 4, 2023 · 1 comment
Open

Number of errors during validation? #70

fchabouis opened this issue May 4, 2023 · 1 comment

Comments

@fchabouis
Copy link

fchabouis commented May 4, 2023

Hi,
I haven't found a way to get the number of errors when validating a file. It seems I just get the first error and the validation stops. Is this something we can do with Exonerate?
Context: I work for this Franch government website, where we validate json files. It is useful for us to give users a feedback about the number of errors found in the file.
Thanks for you work!

@ityonemo
Copy link
Collaborator

I don't completely understand. Are you looking to get the total number of errors in a json that is being passed to the schema, or are you getting the number of errors in the schema itself?

For the second one it might be possible. For the first one, I quit early so that the system spends as little time as possible rejecting the json, and accumulating errors is not currently in the plan for the architecture, and might actually be difficult.

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