Skip to content

Commit 958a498

Browse files
committed
feat(openapi): also read openapi file to generate securities, tags and others
1 parent 4578986 commit 958a498

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/kernels/HttpKernel.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,12 @@ export class HttpKernel {
8383
}
8484

8585
if (swaggerPlugin) {
86-
const swaggerConfig = Config.get('http.swagger.configurations', {})
8786
const openapiConfig = Json.omit(Config.get('openapi', {}), ['paths'])
87+
const pluginConfig = Json.omit(Config.get('http.swagger.configurations', {}), ['swagger'])
88+
const swaggerConfig = Config.get('http.swagger.configurations.swagger', {})
8889

8990
await Server.plugin(swaggerPlugin, {
91+
...pluginConfig,
9092
...openapiConfig,
9193
...swaggerConfig
9294
})

0 commit comments

Comments
 (0)