@@ -17,6 +17,7 @@ public class CodegenParameter extends CodegenObject {
17
17
public Map <String , Object > allowableValues ;
18
18
public CodegenProperty items ;
19
19
public boolean nullable ;
20
+ public boolean isJson ;
20
21
21
22
/**
22
23
* Determines whether this parameter is mandatory. If the parameter is in "path",
@@ -108,6 +109,7 @@ public CodegenParameter copy() {
108
109
output .unescapedDescription = this .unescapedDescription ;
109
110
output .baseType = this .baseType ;
110
111
output .nullable = this .nullable ;
112
+ output .isJson = this .isJson ;
111
113
output .required = this .required ;
112
114
output .maximum = this .maximum ;
113
115
output .exclusiveMaximum = this .exclusiveMaximum ;
@@ -190,6 +192,8 @@ public boolean equals(Object o) {
190
192
return false ;
191
193
if (nullable != that .nullable )
192
194
return false ;
195
+ if (isJson != that .isJson )
196
+ return false ;
193
197
if (required != that .required )
194
198
return false ;
195
199
if (maximum != null ? !maximum .equals (that .maximum ) : that .maximum != null )
@@ -237,6 +241,7 @@ public int hashCode() {
237
241
result = 31 * result + (items != null ? items .hashCode () : 0 );
238
242
result = 31 * result + (vendorExtensions != null ? vendorExtensions .hashCode () : 0 );
239
243
result = 31 * result + (nullable ? 13 :31 );
244
+ result = 31 * result + (isJson ? 13 :31 );
240
245
result = 31 * result + (required ? 13 :31 );
241
246
result = 31 * result + (maximum != null ? maximum .hashCode () : 0 );
242
247
result = 31 * result + (exclusiveMaximum ? 13 :31 );
@@ -332,6 +337,10 @@ public boolean getNullable() {
332
337
return nullable ;
333
338
}
334
339
340
+ public boolean getIsJson () {
341
+ return isJson ;
342
+ }
343
+
335
344
public boolean getRequired () {
336
345
return required ;
337
346
}
0 commit comments