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

RFE: check all invalidations before raising exception #158

Open
joshmoore opened this issue Jan 14, 2022 · 1 comment
Open

RFE: check all invalidations before raising exception #158

joshmoore opened this issue Jan 14, 2022 · 1 comment

Comments

@joshmoore
Copy link
Member

Current validation implementations throw on the first error, rather than finding all validation errors and listing them. Instead, an exception with all the errors could be raised or alternatively a Validation object (or similar) could be returned.

Originally posted by @joshmoore in #157 (comment)

@sbesson
Copy link
Member

sbesson commented Feb 7, 2022

See also #165 (comment) and #142.

When introducing schemas/constraints for validating, we should also review the associated validation framework & implementations and make sure the API has support for handling all validation errors, like Validator.iter_errors

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