You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Connexion with flask, i have some custom ASGI Middlewares and hooks in flask (methods decorated with before_request). both are executed altought url path doesnt exist.
Expected behaviour
I expect this code shouldnt be executed and the 404 should be returned cause connexion framework has a routingmiddleware that is called previously.
Actual behaviour
The middlewares and hooks are called, and Working outside of operation context error is raised cause context and request connexion object are not accesible
Steps to reproduce
Download this example project , and follow the steps on readme to replicate the errors.
The text was updated successfully, but these errors were encountered:
jasonlazo
changed the title
Middlewares are executed altough url doesnt exist in openapi spec #1911
Middlewares are executed altough url doesnt exist in openapi spec
Apr 18, 2024
Description
I am using Connexion with flask, i have some custom ASGI Middlewares and hooks in flask (methods decorated with before_request). both are executed altought url path doesnt exist.
Expected behaviour
I expect this code shouldnt be executed and the 404 should be returned cause connexion framework has a routingmiddleware that is called previously.
Actual behaviour
The middlewares and hooks are called, and Working outside of operation context error is raised cause context and request connexion object are not accesible
Steps to reproduce
Download this example project , and follow the steps on readme to replicate the errors.
The text was updated successfully, but these errors were encountered: