-
Notifications
You must be signed in to change notification settings - Fork 31
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
Get all validation errors in an Dict #79
Comments
Thanks for the report!
I'm not sure it's possible but will take some time to study it. Please wait for a while.
You're absolutely right I'll also look into this maybe this weekend. |
I think that a couple of commits like 518d7bc improve the following:
|
Very sorry to late reply. I add support of this function in an experimental branch named 'schema'. If it looks OK, I'll merge it. |
Hi Satoru Thanks for doing that. I would say it's not far from being perfect (from my point of view). The message is clear but .... (sorry for the bug) we don't know what messages belongs to what key. In your example, I would expect : If that's doable that would be great. Thanks again |
I took some time to accomplish what you want, but unfortunately, I think that it's very hard to do that w/o modifying jsonschema other than anyconfig. Now, I merged the change I did as an workaround to master branch instead as an workaround and keep this issue open. |
Hi,
For now the validate() method returns only the first encountered error. I would like to know if we can get all, in a dict for example:
{ 'keya': ["True is not of type 'string'"], 'keyb': ["True is not of type 'string'"] }
Also, I noticed that the doc here https://github.com/ssato/python-anyconfig/blob/master/anyconfig/schema.py#L45 is not up to date. safe is not part of options ;)
Thanks !
The text was updated successfully, but these errors were encountered: