File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
modules/swagger-codegen/src/main/java/io/swagger/codegen/v3 Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 7
7
public class CodegenResponse extends CodegenObject {
8
8
public final List <CodegenProperty > headers = new ArrayList <CodegenProperty >();
9
9
public String code , message ;
10
+ public List <CodegenContent > contents = new ArrayList <>();
10
11
public List <Map <String , Object >> examples ;
11
12
public String dataType , baseType , containerType ;
12
13
public Object schema ;
@@ -54,6 +55,8 @@ public boolean equals(Object o) {
54
55
return false ;
55
56
if (vendorExtensions != null ? !vendorExtensions .equals (that .vendorExtensions ) : that .vendorExtensions != null )
56
57
return false ;
58
+ if (contents != null ? !contents .equals (that .contents ) : that .contents != null )
59
+ return false ;
57
60
return jsonSchema != null ? jsonSchema .equals (that .jsonSchema ) : that .jsonSchema == null ;
58
61
}
59
62
@@ -69,6 +72,7 @@ public int hashCode() {
69
72
result = 31 * result + (schema != null ? schema .hashCode () : 0 );
70
73
result = 31 * result + (jsonSchema != null ? jsonSchema .hashCode () : 0 );
71
74
result = 31 * result + (vendorExtensions != null ? vendorExtensions .hashCode () : 0 );
75
+ result = 31 * result + (contents != null ? contents .hashCode () : 0 );
72
76
return result ;
73
77
}
74
78
@@ -107,4 +111,8 @@ public Object getSchema() {
107
111
public String getJsonSchema () {
108
112
return jsonSchema ;
109
113
}
114
+
115
+ public List <CodegenContent > getContents () {
116
+ return contents ;
117
+ }
110
118
}
You can’t perform that action at this time.
0 commit comments