Skip to content

Set matched path in ctx or ctx.request #28

Open
@johandalabacka

Description

@johandalabacka

Hi

I'm trying to rewrite an application I have in express to use koa instead. The package I use for express express-openapi-validator it sets the matched partial schema from the open api - specification (with operationId, tags and params) in the request. I can then use a small middleware to call the right controller and method by using the tags and operationId of the scema from the request (req.openapi.schema)

I have tried to find something similar here but no luck so far. Have I missed something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions