node.js Generated code with oas3-tools version 2.2.3 does not take middleware
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2022
09:01 AM
06-22-2022
09:01 AM
node.js Generated code with oas3-tools version 2.2.3 does not take middleware
I'm trying to add a middleware to the code generated by swaggerhub for node.js, it appears to ignore it and not use the middleware I'm adding:
const expressAppConfig = oas3Tools.expressAppConfig(path.join(__dirname, './api/openapi.yaml'), options);
const app = expressAppConfig.getApp();
app.use(cors());
app.use(xApiAuth);
app.use(helmet());
Labels:
- Labels:
-
Swagger Codegen
0 REPLIES 0
