@@ -46,6 +46,10 @@ public class CodegenParameter implements IJsonSchemaValidationProperties {
4646 public boolean isString , isNumeric , isInteger , isLong , isNumber , isFloat , isDouble , isDecimal , isByteArray , isBinary ,
4747 isBoolean , isDate , isDateTime , isUuid , isUri , isEmail , isPassword , isFreeFormObject , isAnyType , isShort , isUnboundedInteger ;
4848 public boolean isArray , isMap ;
49+ /**
50+ * If a query parameter should be serialized as json
51+ */
52+ public boolean queryIsJsonMimeType ;
4953 /**
5054 * datatype is the generic inner parameter of a std::optional for C++, or Optional (Java)
5155 */
@@ -265,6 +269,7 @@ public CodegenParameter copy() {
265269 output .isAnyType = this .isAnyType ;
266270 output .isArray = this .isArray ;
267271 output .isMap = this .isMap ;
272+ output .queryIsJsonMimeType = this .queryIsJsonMimeType ;
268273 output .isOptional = this .isOptional ;
269274 output .isExplode = this .isExplode ;
270275 output .style = this .style ;
@@ -289,7 +294,7 @@ public int hashCode() {
289294 isFormStyle , isSpaceDelimited , isPipeDelimited ,
290295 jsonSchema , isString , isNumeric , isInteger , isLong , isNumber , isFloat , isDouble , isDecimal ,
291296 isByteArray , isBinary , isBoolean , isDate , isDateTime , isUuid , isUri , isEmail , isPassword ,
292- isFreeFormObject , isAnyType , isArray , isMap , isOptional , isFile , isEnum , isEnumRef , _enum , allowableValues ,
297+ isFreeFormObject , isAnyType , isArray , isMap , queryIsJsonMimeType , isOptional , isFile , isEnum , isEnumRef , _enum , allowableValues ,
293298 items , mostInnerItems , additionalProperties , vars , requiredVars , vendorExtensions , hasValidation ,
294299 getMaxProperties (), getMinProperties (), isNullable , isDeprecated , required , getMaximum (),
295300 getExclusiveMaximum (), getMinimum (), getExclusiveMinimum (), getMaxLength (), getMinLength (),
@@ -339,6 +344,7 @@ public boolean equals(Object o) {
339344 isAnyType == that .isAnyType &&
340345 isArray == that .isArray &&
341346 isMap == that .isMap &&
347+ queryIsJsonMimeType == that .queryIsJsonMimeType &&
342348 isOptional == that .isOptional &&
343349 isFile == that .isFile &&
344350 isEnum == that .isEnum &&
@@ -479,6 +485,7 @@ public String toString() {
479485 sb .append (", isAnyType=" ).append (isAnyType );
480486 sb .append (", isArray=" ).append (isArray );
481487 sb .append (", isMap=" ).append (isMap );
488+ sb .append (", queryIsJsonMimeType=" ).append (queryIsJsonMimeType );
482489 sb .append (", isOptional=" ).append (isOptional );
483490 sb .append (", isFile=" ).append (isFile );
484491 sb .append (", isEnum=" ).append (isEnum );
0 commit comments