Skip to content

Commit a942449

Browse files
set value of authHelper only if alwaysInheritAuthentication is falsy
1 parent ebd46d8 commit a942449

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/schemaUtils.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2647,10 +2647,7 @@ module.exports = {
26472647
}
26482648

26492649
// handling authentication here (for http type only)
2650-
if (options.alwaysInheritAuthentication) {
2651-
authHelper = this.getAuthHelper(openapi, openapi.security);
2652-
}
2653-
else {
2650+
if (!options.alwaysInheritAuthentication) {
26542651
authHelper = this.getAuthHelper(openapi, operation.security);
26552652
}
26562653

0 commit comments

Comments
 (0)