-
-
Notifications
You must be signed in to change notification settings - Fork 590
Issue in a FAQ answer (default property) #742
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
Comments
Hi! Thanks for the report. I'm probably happy to consider a PR to fix this, though to be honest I'm not sure what the expected fix is -- this way of making But yeah if there's a trivial improvement to be made to the example code, definitely happy to consider it! #367 is also relevant. |
Hello Julian, I found another issue with the given example which can be observed when using it in combination with the Best regards, |
Going to close this given the above, but happy to hear follow-ups. @timgkeller if you've found another issue you believe to be a bug, happy to see another issue about it, or better a PR. |
Hello guys,
In your FAQ, you provide a sample that shows how to make default property set a default value.
If the schema has a 'required' property and it comes before the 'properties' property, a
jsonschema.exceptions.ValidationError
will be raised.I think that documentation must be updated in order to avoid this kind of error by someone else. I don't think that this kind of error must be fixed in this project, I think this is outside the scope of the project.
Here a sample:
The text was updated successfully, but these errors were encountered: