@@ -16,6 +16,7 @@ public class CodegenParameter extends CodegenObject {
16
16
public List <String > _enum ;
17
17
public Map <String , Object > allowableValues ;
18
18
public CodegenProperty items ;
19
+ public boolean nullable ;
19
20
20
21
/**
21
22
* Determines whether this parameter is mandatory. If the parameter is in "path",
@@ -106,6 +107,7 @@ public CodegenParameter copy() {
106
107
output .description = this .description ;
107
108
output .unescapedDescription = this .unescapedDescription ;
108
109
output .baseType = this .baseType ;
110
+ output .nullable = this .nullable ;
109
111
output .required = this .required ;
110
112
output .maximum = this .maximum ;
111
113
output .exclusiveMaximum = this .exclusiveMaximum ;
@@ -186,6 +188,8 @@ public boolean equals(Object o) {
186
188
return false ;
187
189
if (vendorExtensions != null ? !vendorExtensions .equals (that .vendorExtensions ) : that .vendorExtensions != null )
188
190
return false ;
191
+ if (nullable != that .nullable )
192
+ return false ;
189
193
if (required != that .required )
190
194
return false ;
191
195
if (maximum != null ? !maximum .equals (that .maximum ) : that .maximum != null )
@@ -232,6 +236,7 @@ public int hashCode() {
232
236
result = 31 * result + (allowableValues != null ? allowableValues .hashCode () : 0 );
233
237
result = 31 * result + (items != null ? items .hashCode () : 0 );
234
238
result = 31 * result + (vendorExtensions != null ? vendorExtensions .hashCode () : 0 );
239
+ result = 31 * result + (nullable ? 13 :31 );
235
240
result = 31 * result + (required ? 13 :31 );
236
241
result = 31 * result + (maximum != null ? maximum .hashCode () : 0 );
237
242
result = 31 * result + (exclusiveMaximum ? 13 :31 );
@@ -323,6 +328,10 @@ public CodegenProperty getItems() {
323
328
return items ;
324
329
}
325
330
331
+ public boolean getNullable () {
332
+ return nullable ;
333
+ }
334
+
326
335
public boolean getRequired () {
327
336
return required ;
328
337
}
0 commit comments