We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a2ad12 commit 245d42eCopy full SHA for 245d42e
modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/CodegenOperation.java
@@ -65,7 +65,18 @@ public boolean getHasBodyParam() {
65
* @return true if query parameter exists, false otherwise
66
*/
67
public boolean getHasQueryParams() {
68
- return nonempty(queryParams);
+ if (nonempty(queryParams)) {
69
+ return true;
70
+ }
71
+
72
+ // Check if one of the authMethods is a query param
73
+ for (CodegenSecurity sec : authMethods) {
74
+ if (sec.isKeyInQuery) {
75
76
77
78
79
+ return false;
80
}
81
82
/**
0 commit comments