@@ -26,6 +26,7 @@ public class CodegenOperation extends CodegenObject {
2626 public List <CodegenParameter > pathParams = new ArrayList <CodegenParameter >();
2727 public List <CodegenParameter > queryParams = new ArrayList <CodegenParameter >();
2828 public List <CodegenParameter > headerParams = new ArrayList <CodegenParameter >();
29+ public List <CodegenParameter > cookieParams = new ArrayList <CodegenParameter >();
2930 public List <CodegenParameter > formParams = new ArrayList <CodegenParameter >();
3031 public List <CodegenParameter > requiredParams = new ArrayList <CodegenParameter >();
3132 public List <CodegenSecurity > authMethods ;
@@ -76,6 +77,15 @@ public boolean getHasHeaderParams() {
7677 return nonempty (headerParams );
7778 }
7879
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+
7989 /**
8090 * Check if there's at least one path parameter
8191 *
@@ -292,6 +302,7 @@ public int hashCode() {
292302 result = 31 * result + (pathParams != null ? pathParams .hashCode () : 0 );
293303 result = 31 * result + (queryParams != null ? queryParams .hashCode () : 0 );
294304 result = 31 * result + (headerParams != null ? headerParams .hashCode () : 0 );
305+ result = 31 * result + (cookieParams != null ? cookieParams .hashCode () : 0 );
295306 result = 31 * result + (formParams != null ? formParams .hashCode () : 0 );
296307 result = 31 * result + (authMethods != null ? authMethods .hashCode () : 0 );
297308 result = 31 * result + (tags != null ? tags .hashCode () : 0 );
@@ -403,6 +414,10 @@ public List<CodegenParameter> getHeaderParams() {
403414 return headerParams ;
404415 }
405416
417+ public List <CodegenParameter > getCookieParams () {
418+ return cookieParams ;
419+ }
420+
406421 public List <CodegenParameter > getFormParams () {
407422 return formParams ;
408423 }
0 commit comments