python-openapi/openapi-core

[Bug]: WerkzeugOpenAPIRequest does not inherits from openapi_core.protocols.Request

ondratu opened this issue · 1 comments

Actual Behavior

I created new isinstance bug, which i found with implementing PoorWSGI wrapping of OpenAPI core. see python/cpython#113156. The problem is then in https://github.com/python-openapi/openapi-core/blob/0.18.2/openapi_core/shortcuts.py#L140 you try to check request type, but isinstance does not work right.

Expected Behavior

All Request wrappers had to inherits from openapi_core.protocols.Request

Steps to Reproduce

At this moment, it works, but because there is Python bug.

OpenAPI Core Version

0.18.2

OpenAPI Core Integration

PoorWSGI inspirited by Flask

Affected Area(s)

No response

References

No response

Anything else we need to know?

No response

Would you like to implement a fix?

No

There's no bug.
Please see python/cpython#113156 (comment)