Skip to content

[Feature]: Iter over errors, not raise themΒ #656

Open
@itsMGA

Description

@itsMGA

Suggested Behavior

In the depreciated version there was:

from openapi_core import openapi_request_validator
#allows u to iter through all the errors found, in this way, you could use the error information for reporting and such
openapi_request_validator.iter_errors 

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions