Skip to content

Commit 562a311

Browse files
authored
Fix getHasQueryParams to take authMethods into account
Fixes #7303 for V3 This is the V3 port of the fix #8292
1 parent 245d42e commit 562a311

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/CodegenOperation.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ public boolean getHasQueryParams() {
6969
return true;
7070
}
7171

72+
if (authMethods == null || authMethods.isEmpty()) {
73+
return false;
74+
}
75+
7276
// Check if one of the authMethods is a query param
7377
for (CodegenSecurity sec : authMethods) {
7478
if (sec.isKeyInQuery) {

0 commit comments

Comments
 (0)