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

Full list of Error messages #8

Open
SwethaCleo opened this issue Jun 19, 2019 · 3 comments
Open

Full list of Error messages #8

SwethaCleo opened this issue Jun 19, 2019 · 3 comments

Comments

@SwethaCleo
Copy link

In case there are more than 2 errors in the document, how can we get the complete list? The ljsonschema currently returns only 1 error.

@jdesgats
Copy link
Owner

jdesgats commented Jun 22, 2019

Yes, I did it that way initially to return as fast as possible as I am using this library to validate untrusted network payloads (actually the error is not even shown in that case).
I guess that trying to carry on might make sense in some cases.
So to answer the question, no, it is currently impossible to get the full list of errors.

@SwethaCleo
Copy link
Author

Hi @jdesgats , it would be great if that could be done. We can have an flag for the user to either abort on 1st error or capture the full list of errors. Your's is one of the best working jsonschema validators for lua that I have found and if this option is included we need not write custom code in another language only so that we get this added feature of complete errors list. Thanks in advance,

@jdesgats
Copy link
Owner

Hi, I don't have any plans to implement that anytime soon unfortunately. I'd happily review a pull request but I don't have time to work on this at the moment.

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