26
26
*/
27
27
public class CodegenParameter {
28
28
public boolean isFormParam , isQueryParam , isPathParam , isHeaderParam ,
29
- isCookieParam , isBodyParam , isContainer ,
30
- isCollectionFormatMulti , isPrimitiveType , isModel , isExplode , isDeepObject , isAllowEmptyValue ;
31
- public String baseName , paramName , dataType , datatypeWithEnum , dataFormat , contentType ,
32
- collectionFormat , description , unescapedDescription , baseType , style ;
29
+ isCookieParam , isBodyParam ,
30
+ isExplode , isDeepObject , isAllowEmptyValue ;
31
+ public String baseName , paramName ,
32
+ description , unescapedDescription , style ;
33
33
34
34
public String nameInLowerCase ; // property name in lower case
35
35
public String example ; // example value (x-example)
@@ -51,14 +51,8 @@ public CodegenParameter copy() {
51
51
CodegenParameter output = new CodegenParameter ();
52
52
output .baseName = this .baseName ;
53
53
output .paramName = this .paramName ;
54
- output .dataType = this .dataType ;
55
- output .datatypeWithEnum = this .datatypeWithEnum ;
56
- output .dataFormat = this .dataFormat ;
57
- output .collectionFormat = this .collectionFormat ;
58
- output .isCollectionFormatMulti = this .isCollectionFormatMulti ;
59
54
output .description = this .description ;
60
55
output .unescapedDescription = this .unescapedDescription ;
61
- output .baseType = this .baseType ;
62
56
output .isFormParam = this .isFormParam ;
63
57
output .isQueryParam = this .isQueryParam ;
64
58
output .isPathParam = this .isPathParam ;
@@ -86,14 +80,13 @@ public CodegenParameter copy() {
86
80
output .style = this .style ;
87
81
output .isDeepObject = this .isDeepObject ;
88
82
output .isAllowEmptyValue = this .isAllowEmptyValue ;
89
- output .contentType = this .contentType ;
90
83
91
84
return output ;
92
85
}
93
86
94
87
@ Override
95
88
public int hashCode () {
96
- return Objects .hash (isFormParam , isQueryParam , isPathParam , isHeaderParam , isCookieParam , isBodyParam , isContainer , isCollectionFormatMulti , isPrimitiveType , isModel , isExplode , baseName , paramName , dataType , datatypeWithEnum , dataFormat , collectionFormat , description , unescapedDescription , baseType , style , isDeepObject , isAllowEmptyValue , example , jsonSchema , vendorExtensions , isDeprecated , required , contentType , hasMultipleTypes , schema , content , ref );
89
+ return Objects .hash (isFormParam , isQueryParam , isPathParam , isHeaderParam , isCookieParam , isBodyParam , isExplode , baseName , paramName , description , unescapedDescription , style , isDeepObject , isAllowEmptyValue , example , jsonSchema , vendorExtensions , isDeprecated , required , hasMultipleTypes , schema , content , ref );
97
90
}
98
91
99
92
@ Override
@@ -107,10 +100,6 @@ public boolean equals(Object o) {
107
100
isHeaderParam == that .isHeaderParam &&
108
101
isCookieParam == that .isCookieParam &&
109
102
isBodyParam == that .isBodyParam &&
110
- isContainer == that .isContainer &&
111
- isCollectionFormatMulti == that .isCollectionFormatMulti &&
112
- isPrimitiveType == that .isPrimitiveType &&
113
- isModel == that .isModel &&
114
103
isExplode == that .isExplode &&
115
104
isDeprecated == that .isDeprecated &&
116
105
required == that .required &&
@@ -119,20 +108,14 @@ public boolean equals(Object o) {
119
108
Objects .equals (schema , that .getSchema ()) &&
120
109
Objects .equals (baseName , that .baseName ) &&
121
110
Objects .equals (paramName , that .paramName ) &&
122
- Objects .equals (dataType , that .dataType ) &&
123
- Objects .equals (datatypeWithEnum , that .datatypeWithEnum ) &&
124
- Objects .equals (dataFormat , that .dataFormat ) &&
125
- Objects .equals (collectionFormat , that .collectionFormat ) &&
126
111
Objects .equals (description , that .description ) &&
127
112
Objects .equals (unescapedDescription , that .unescapedDescription ) &&
128
- Objects .equals (baseType , that .baseType ) &&
129
113
Objects .equals (style , that .style ) &&
130
114
Objects .equals (isDeepObject , that .isDeepObject ) &&
131
115
Objects .equals (isAllowEmptyValue , that .isAllowEmptyValue ) &&
132
116
Objects .equals (example , that .example ) &&
133
117
Objects .equals (jsonSchema , that .jsonSchema ) &&
134
- Objects .equals (vendorExtensions , that .vendorExtensions ) &&
135
- Objects .equals (contentType , that .contentType );
118
+ Objects .equals (vendorExtensions , that .vendorExtensions );
136
119
}
137
120
138
121
@ Override
@@ -144,20 +127,11 @@ public String toString() {
144
127
sb .append (", isHeaderParam=" ).append (isHeaderParam );
145
128
sb .append (", isCookieParam=" ).append (isCookieParam );
146
129
sb .append (", isBodyParam=" ).append (isBodyParam );
147
- sb .append (", isContainer=" ).append (isContainer );
148
- sb .append (", isCollectionFormatMulti=" ).append (isCollectionFormatMulti );
149
- sb .append (", isPrimitiveType=" ).append (isPrimitiveType );
150
- sb .append (", isModel=" ).append (isModel );
151
130
sb .append (", isExplode=" ).append (isExplode );
152
131
sb .append (", baseName='" ).append (baseName ).append ('\'' );
153
132
sb .append (", paramName='" ).append (paramName ).append ('\'' );
154
- sb .append (", dataType='" ).append (dataType ).append ('\'' );
155
- sb .append (", datatypeWithEnum='" ).append (datatypeWithEnum ).append ('\'' );
156
- sb .append (", dataFormat='" ).append (dataFormat ).append ('\'' );
157
- sb .append (", collectionFormat='" ).append (collectionFormat ).append ('\'' );
158
133
sb .append (", description='" ).append (description ).append ('\'' );
159
134
sb .append (", unescapedDescription='" ).append (unescapedDescription ).append ('\'' );
160
- sb .append (", baseType='" ).append (baseType ).append ('\'' );
161
135
sb .append (", style='" ).append (style ).append ('\'' );
162
136
sb .append (", deepObject='" ).append (isDeepObject ).append ('\'' );
163
137
sb .append (", allowEmptyValue='" ).append (isAllowEmptyValue ).append ('\'' );
@@ -166,7 +140,6 @@ public String toString() {
166
140
sb .append (", vendorExtensions=" ).append (vendorExtensions );
167
141
sb .append (", isDeprecated=" ).append (isDeprecated );
168
142
sb .append (", required=" ).append (required );
169
- sb .append (", contentType=" ).append (contentType );
170
143
sb .append (", hasMultipleTypes=" ).append (hasMultipleTypes );
171
144
sb .append (", schema=" ).append (schema );
172
145
sb .append (", content=" ).append (content );
0 commit comments