Skip to content

How to specify custom formatter when using Flask View integration? #618

Closed
@asjohnston-asf

Description

@asjohnston-asf

Actual Behavior

Our application is upgrading from openapi-core v0.14.5 to v0.18.0. We previously specified a custom wkt formatter by setting self.request_validator in our class that inherits from FlaskOpenAPIView, see https://github.com/ASFHyP3/hyp3/blob/develop/apps/api/src/hyp3_api/routes.py#L173

It appears that FlaskOpenAPIView no longer uses self.request_validator in it's dispatch_request method: https://github.com/python-openapi/openapi-core/blob/master/openapi_core/contrib/flask/views.py#L21

Is there an alternate way to specify a custom formatter when using this integration pattern?

Expected Behavior

N/A

Steps to Reproduce

N/A

OpenAPI Core Version

0.18.0

OpenAPI Core Integration

flask

Affected Area(s)

No response

References

No response

Anything else we need to know?

No response

Would you like to implement a fix?

None

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