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.
2 parents 9f809ab + b719a24 commit 3c955d7Copy full SHA for 3c955d7
modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/CodegenOperation.java
@@ -65,7 +65,22 @@ 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
+ if (authMethods == null || authMethods.isEmpty()) {
73
+ return false;
74
75
76
+ // Check if one of the authMethods is a query param
77
+ for (CodegenSecurity sec : authMethods) {
78
+ if (sec.getIsKeyInQuery()) {
79
80
81
82
83
84
}
85
86
/**
0 commit comments