7
7
import io .swagger .v3 .oas .models .tags .Tag ;
8
8
9
9
import java .util .ArrayList ;
10
- import java .util .HashMap ;
11
10
import java .util .HashSet ;
12
11
import java .util .List ;
13
12
import java .util .Map ;
@@ -21,6 +20,7 @@ public class CodegenOperation extends CodegenObject {
21
20
public Discriminator discriminator ;
22
21
public List <Map <String , String >> consumes , produces , prioritizedContentTypes ;
23
22
public CodegenParameter bodyParam ;
23
+ public List <CodegenContent > contents = new ArrayList <>();
24
24
public List <CodegenParameter > allParams = new ArrayList <CodegenParameter >();
25
25
public List <CodegenParameter > bodyParams = new ArrayList <CodegenParameter >();
26
26
public List <CodegenParameter > pathParams = new ArrayList <CodegenParameter >();
@@ -230,6 +230,8 @@ public boolean equals(Object o) {
230
230
return false ;
231
231
if (bodyParam != null ? !bodyParam .equals (that .bodyParam ) : that .bodyParam != null )
232
232
return false ;
233
+ if (contents != null ? !contents .equals (that .contents ) : that .contents != null )
234
+ return false ;
233
235
if (allParams != null ? !allParams .equals (that .allParams ) : that .allParams != null )
234
236
return false ;
235
237
if (bodyParams != null ? !bodyParams .equals (that .bodyParams ) : that .bodyParams != null )
@@ -284,6 +286,7 @@ public int hashCode() {
284
286
result = 31 * result + (consumes != null ? consumes .hashCode () : 0 );
285
287
result = 31 * result + (produces != null ? produces .hashCode () : 0 );
286
288
result = 31 * result + (bodyParam != null ? bodyParam .hashCode () : 0 );
289
+ result = 31 * result + (contents != null ? contents .hashCode () : 0 );
287
290
result = 31 * result + (allParams != null ? allParams .hashCode () : 0 );
288
291
result = 31 * result + (bodyParams != null ? bodyParams .hashCode () : 0 );
289
292
result = 31 * result + (pathParams != null ? pathParams .hashCode () : 0 );
@@ -376,6 +379,10 @@ public CodegenParameter getBodyParam() {
376
379
return bodyParam ;
377
380
}
378
381
382
+ public List <CodegenContent > getContents () {
383
+ return contents ;
384
+ }
385
+
379
386
public List <CodegenParameter > getAllParams () {
380
387
return allParams ;
381
388
}
0 commit comments