Skip to content

Commit 6b13946

Browse files
committed
Call top level security after the openAPI spec
1 parent 815f841 commit 6b13946

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/definitionGenerator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ class DefinitionGenerator {
4343
if (this.serverless.service.custom.documentation.securitySchemes) {
4444
this.createSecuritySchemes(this.serverless.service.custom.documentation.securitySchemes)
4545

46-
if (this.serverless.service.custom.documentation.overallSecurityRequirement) {
47-
this.openAPI.security = this.serverless.service.custom.documentation.overallSecurityRequirement
46+
if (this.serverless.service.custom.documentation.security) {
47+
this.openAPI.security = this.serverless.service.custom.documentation.security
4848
}
4949
}
5050

0 commit comments

Comments
 (0)