Skip to content

Middlewares are executed altough url doesnt exist in openapi spec #1913

@jasonlazo

Description

@jasonlazo

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.

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