@@ -26,6 +26,7 @@ public class CodegenOperation extends CodegenObject {
26
26
public List <CodegenParameter > pathParams = new ArrayList <CodegenParameter >();
27
27
public List <CodegenParameter > queryParams = new ArrayList <CodegenParameter >();
28
28
public List <CodegenParameter > headerParams = new ArrayList <CodegenParameter >();
29
+ public List <CodegenParameter > cookieParams = new ArrayList <CodegenParameter >();
29
30
public List <CodegenParameter > formParams = new ArrayList <CodegenParameter >();
30
31
public List <CodegenParameter > requiredParams = new ArrayList <CodegenParameter >();
31
32
public List <CodegenSecurity > authMethods ;
@@ -76,6 +77,15 @@ public boolean getHasHeaderParams() {
76
77
return nonempty (headerParams );
77
78
}
78
79
80
+ /**
81
+ * Check if there's at least one cookie parameter
82
+ *
83
+ * @return true if cookie parameter exists, false otherwise
84
+ */
85
+ public boolean getHasCookieParams () {
86
+ return nonempty (cookieParams );
87
+ }
88
+
79
89
/**
80
90
* Check if there's at least one path parameter
81
91
*
@@ -292,6 +302,7 @@ public int hashCode() {
292
302
result = 31 * result + (pathParams != null ? pathParams .hashCode () : 0 );
293
303
result = 31 * result + (queryParams != null ? queryParams .hashCode () : 0 );
294
304
result = 31 * result + (headerParams != null ? headerParams .hashCode () : 0 );
305
+ result = 31 * result + (cookieParams != null ? cookieParams .hashCode () : 0 );
295
306
result = 31 * result + (formParams != null ? formParams .hashCode () : 0 );
296
307
result = 31 * result + (authMethods != null ? authMethods .hashCode () : 0 );
297
308
result = 31 * result + (tags != null ? tags .hashCode () : 0 );
@@ -403,6 +414,10 @@ public List<CodegenParameter> getHeaderParams() {
403
414
return headerParams ;
404
415
}
405
416
417
+ public List <CodegenParameter > getCookieParams () {
418
+ return cookieParams ;
419
+ }
420
+
406
421
public List <CodegenParameter > getFormParams () {
407
422
return formParams ;
408
423
}
0 commit comments