@@ -50,6 +50,10 @@ public class CodegenParameter implements IJsonSchemaValidationProperties {
5050 * If a query parameter should be serialized as json
5151 */
5252 public boolean queryIsJsonMimeType ;
53+ /**
54+ * True when a header parameter uses a JSON media type in Parameter.content.
55+ */
56+ public boolean headerIsJsonMimeType ;
5357 /**
5458 * datatype is the generic inner parameter of a std::optional for C++, or Optional (Java)
5559 */
@@ -270,6 +274,7 @@ public CodegenParameter copy() {
270274 output .isArray = this .isArray ;
271275 output .isMap = this .isMap ;
272276 output .queryIsJsonMimeType = this .queryIsJsonMimeType ;
277+ output .headerIsJsonMimeType = this .headerIsJsonMimeType ;
273278 output .isOptional = this .isOptional ;
274279 output .isExplode = this .isExplode ;
275280 output .style = this .style ;
@@ -294,15 +299,15 @@ public int hashCode() {
294299 isFormStyle , isSpaceDelimited , isPipeDelimited ,
295300 jsonSchema , isString , isNumeric , isInteger , isLong , isNumber , isFloat , isDouble , isDecimal ,
296301 isByteArray , isBinary , isBoolean , isDate , isDateTime , isUuid , isUri , isEmail , isPassword ,
297- isFreeFormObject , isAnyType , isArray , isMap , queryIsJsonMimeType , isOptional , isFile , isEnum , isEnumRef , _enum , allowableValues ,
298- items , mostInnerItems , additionalProperties , vars , requiredVars , vendorExtensions , hasValidation ,
299- getMaxProperties (), getMinProperties (), isNullable , isDeprecated , required , getMaximum () ,
300- getExclusiveMaximum (), getMinimum (), getExclusiveMinimum (), getMaxLength (), getMinLength (),
301- getPattern (), getMaxItems (), getMinItems (), getUniqueItems (), contentType , multipleOf , isNull , isVoid ,
302- additionalPropertiesIsAnyType , hasVars , hasRequired , isShort , isUnboundedInteger ,
303- hasDiscriminatorWithNonEmptyMapping , composedSchemas , hasMultipleTypes , schema , content ,
304- requiredVarsMap , ref , uniqueItemsBoolean , schemaIsFromAdditionalProperties ,
305- nameInPascalCase , nameInCamelCase , nameInLowerCase , nameInSnakeCase );
302+ isFreeFormObject , isAnyType , isArray , isMap , queryIsJsonMimeType , headerIsJsonMimeType , isOptional ,
303+ isFile , isEnum , isEnumRef , _enum , allowableValues , items , mostInnerItems , additionalProperties , vars ,
304+ requiredVars , vendorExtensions , hasValidation , getMaxProperties (), getMinProperties (), isNullable ,
305+ isDeprecated , required , getMaximum (), getExclusiveMaximum (), getMinimum (), getExclusiveMinimum (),
306+ getMaxLength (), getMinLength (), getPattern (), getMaxItems (), getMinItems (), getUniqueItems () ,
307+ contentType , multipleOf , isNull , isVoid , additionalPropertiesIsAnyType , hasVars , hasRequired , isShort ,
308+ isUnboundedInteger , hasDiscriminatorWithNonEmptyMapping , composedSchemas , hasMultipleTypes , schema ,
309+ content , requiredVarsMap , ref , uniqueItemsBoolean , schemaIsFromAdditionalProperties , nameInPascalCase ,
310+ nameInCamelCase , nameInLowerCase , nameInSnakeCase );
306311 }
307312
308313 @ Override
@@ -345,6 +350,7 @@ public boolean equals(Object o) {
345350 isArray == that .isArray &&
346351 isMap == that .isMap &&
347352 queryIsJsonMimeType == that .queryIsJsonMimeType &&
353+ headerIsJsonMimeType == that .headerIsJsonMimeType &&
348354 isOptional == that .isOptional &&
349355 isFile == that .isFile &&
350356 isEnum == that .isEnum &&
@@ -486,6 +492,7 @@ public String toString() {
486492 sb .append (", isArray=" ).append (isArray );
487493 sb .append (", isMap=" ).append (isMap );
488494 sb .append (", queryIsJsonMimeType=" ).append (queryIsJsonMimeType );
495+ sb .append (", headerIsJsonMimeType=" ).append (headerIsJsonMimeType );
489496 sb .append (", isOptional=" ).append (isOptional );
490497 sb .append (", isFile=" ).append (isFile );
491498 sb .append (", isEnum=" ).append (isEnum );
0 commit comments