Skip to content

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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy