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'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?
The text was updated successfully, but these errors were encountered:
Hey, the koa-oas3 identifies the schema path by using the combination of the request method and request path.
There is a way to trigger a validation by using an operational in https://github.com/atlassian/oas3-chow-chow library which koa-oas3 using under the hood.
Not sure if that answers your question.
Thanks for answer but I was interested if koa-oas3 leave some info about which path it selected then doing the validation. This is because I want to use this information to call the correct method depending on value of operation-id. Otherwise I also have to resolve the path and it is done two times.
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?
The text was updated successfully, but these errors were encountered: