@@ -17,6 +17,7 @@ public class CodegenParameter extends CodegenObject {
1717 public Map <String , Object > allowableValues ;
1818 public CodegenProperty items ;
1919 public boolean nullable ;
20+ public boolean isJson ;
2021
2122 /**
2223 * Determines whether this parameter is mandatory. If the parameter is in "path",
@@ -108,6 +109,7 @@ public CodegenParameter copy() {
108109 output .unescapedDescription = this .unescapedDescription ;
109110 output .baseType = this .baseType ;
110111 output .nullable = this .nullable ;
112+ output .isJson = this .isJson ;
111113 output .required = this .required ;
112114 output .maximum = this .maximum ;
113115 output .exclusiveMaximum = this .exclusiveMaximum ;
@@ -190,6 +192,8 @@ public boolean equals(Object o) {
190192 return false ;
191193 if (nullable != that .nullable )
192194 return false ;
195+ if (isJson != that .isJson )
196+ return false ;
193197 if (required != that .required )
194198 return false ;
195199 if (maximum != null ? !maximum .equals (that .maximum ) : that .maximum != null )
@@ -237,6 +241,7 @@ public int hashCode() {
237241 result = 31 * result + (items != null ? items .hashCode () : 0 );
238242 result = 31 * result + (vendorExtensions != null ? vendorExtensions .hashCode () : 0 );
239243 result = 31 * result + (nullable ? 13 :31 );
244+ result = 31 * result + (isJson ? 13 :31 );
240245 result = 31 * result + (required ? 13 :31 );
241246 result = 31 * result + (maximum != null ? maximum .hashCode () : 0 );
242247 result = 31 * result + (exclusiveMaximum ? 13 :31 );
@@ -332,6 +337,10 @@ public boolean getNullable() {
332337 return nullable ;
333338 }
334339
340+ public boolean getIsJson () {
341+ return isJson ;
342+ }
343+
335344 public boolean getRequired () {
336345 return required ;
337346 }
0 commit comments