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
[Feature]: Iter over errors, not raise them #656
Comments
hi @itsMGA
from openapi_cote import V30RequestValidator
V30RequestValidator(spec).iter_errors(request) |
Dear @p1c2u, thank you for this lib and responding to the question from @itsMGA.
Unfortunately the response has only one general entry:
Is it possible to get the list of specific errors, to give more details to the API-consumer? Best regards! |
It also seems like it only shows the first error!? |
Suggested Behavior
In the depreciated version there was:
Existing fuctionality:
validate_request(request=request, spec=spec)
Only raises errors, no way of iterating through them
Why is this needed?
Errors do not need to be raised necessarily, there are cases when you would want to iterate and do actions for certain errors, gather information and so on
References
No response
Would you like to implement a feature?
No
The text was updated successfully, but these errors were encountered: