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 db8683e commit c3664f6Copy full SHA for c3664f6
modules/swagger-codegen/src/main/java/io/swagger/codegen/CodegenOperation.java
@@ -67,7 +67,18 @@ public boolean getHasBodyParam() {
67
* @return true if query parameter exists, false otherwise
68
*/
69
public boolean getHasQueryParams() {
70
- return nonempty(queryParams);
+ if (nonempty(queryParams)) {
71
+ return true;
72
+ }
73
+
74
+ // Check if one of the authMethods is a query param
75
+ for (CodegenSecurity sec : authMethods) {
76
+ if (sec.isKeyInQuery) {
77
78
79
80
81
+ return false;
82
}
83
84
/**
0 commit comments