-
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenAPI Integration #130
Comments
Yes, there will be an OpenAPI integration, but not as part of 1.0. I can't tell if it makes sense as a plugin or if it should be a larger framework that builds upon Polka. I'm leaning towards the latter because in order for OpenAPI to make sense (and work) it has to be strictly implemented. |
A first step could be getting a "plugin" (PR) for https://github.com/PayU/openapi-validator-middleware, which already supports express, koa, and fastify. It looks like we're missing Something like this to make it compatible: function reqEnhancer(req, res, next) {
req.baseUrl = "";
req.route = {
path: req.path,
};
next();
} |
(I have that library working with this setup) |
Is it possible to have a swagger plugin for polka? Or maybe an alternative...
The text was updated successfully, but these errors were encountered: