@@ -43,6 +43,8 @@ public class CodegenParameter implements IJsonSchemaValidationProperties {
43
43
public Map <String , Object > allowableValues ;
44
44
public CodegenProperty items ;
45
45
public CodegenProperty additionalProperties ;
46
+ public List <CodegenProperty > vars = new ArrayList <CodegenProperty >(); // all properties (without parent's properties)
47
+ public List <CodegenProperty > requiredVars = new ArrayList <CodegenProperty >();
46
48
public CodegenProperty mostInnerItems ;
47
49
public Map <String , Object > vendorExtensions = new HashMap <String , Object >();
48
50
public boolean hasValidation ;
@@ -157,6 +159,12 @@ public CodegenParameter copy() {
157
159
if (this .items != null ) {
158
160
output .items = this .items ;
159
161
}
162
+ if (this .vars != null ) {
163
+ output .vars = this .vars ;
164
+ }
165
+ if (this .requiredVars != null ) {
166
+ output .requiredVars = this .requiredVars ;
167
+ }
160
168
if (this .mostInnerItems != null ) {
161
169
output .mostInnerItems = this .mostInnerItems ;
162
170
}
@@ -194,7 +202,7 @@ public CodegenParameter copy() {
194
202
195
203
@ Override
196
204
public int hashCode () {
197
- return Objects .hash (isFormParam , isQueryParam , isPathParam , isHeaderParam , isCookieParam , isBodyParam , hasMore , isContainer , secondaryParam , isCollectionFormatMulti , isPrimitiveType , isModel , isExplode , baseName , paramName , dataType , datatypeWithEnum , dataFormat , collectionFormat , description , unescapedDescription , baseType , defaultValue , enumName , style , example , jsonSchema , isString , isNumeric , isInteger , isLong , isNumber , isFloat , isDouble , isDecimal , isByteArray , isBinary , isBoolean , isDate , isDateTime , isUuid , isUri , isEmail , isFreeFormObject , isAnyType , isArray , isMap , isFile , isEnum , _enum , allowableValues , items , mostInnerItems , additionalProperties , vendorExtensions , hasValidation , getMaxProperties (), getMinProperties (), isNullable , required , getMaximum (), getExclusiveMaximum (), getMinimum (), getExclusiveMinimum (), getMaxLength (), getMinLength (), getPattern (), getMaxItems (), getMinItems (), getUniqueItems (), contentType , multipleOf );
205
+ return Objects .hash (isFormParam , isQueryParam , isPathParam , isHeaderParam , isCookieParam , isBodyParam , hasMore , isContainer , secondaryParam , isCollectionFormatMulti , isPrimitiveType , isModel , isExplode , baseName , paramName , dataType , datatypeWithEnum , dataFormat , collectionFormat , description , unescapedDescription , baseType , defaultValue , enumName , style , example , jsonSchema , isString , isNumeric , isInteger , isLong , isNumber , isFloat , isDouble , isDecimal , isByteArray , isBinary , isBoolean , isDate , isDateTime , isUuid , isUri , isEmail , isFreeFormObject , isAnyType , isArray , isMap , isFile , isEnum , _enum , allowableValues , items , mostInnerItems , additionalProperties , vars , requiredVars , vendorExtensions , hasValidation , getMaxProperties (), getMinProperties (), isNullable , required , getMaximum (), getExclusiveMaximum (), getMinimum (), getExclusiveMinimum (), getMaxLength (), getMinLength (), getPattern (), getMaxItems (), getMinItems (), getUniqueItems (), contentType , multipleOf );
198
206
}
199
207
200
208
@ Override
@@ -261,6 +269,8 @@ public boolean equals(Object o) {
261
269
Objects .equals (allowableValues , that .allowableValues ) &&
262
270
Objects .equals (items , that .items ) &&
263
271
Objects .equals (additionalProperties , that .additionalProperties ) &&
272
+ Objects .equals (vars , that .vars ) &&
273
+ Objects .equals (requiredVars , that .requiredVars ) &&
264
274
Objects .equals (mostInnerItems , that .mostInnerItems ) &&
265
275
Objects .equals (vendorExtensions , that .vendorExtensions ) &&
266
276
Objects .equals (getMaxProperties (), that .getMaxProperties ()) &&
@@ -333,6 +343,8 @@ public String toString() {
333
343
sb .append (", items=" ).append (items );
334
344
sb .append (", mostInnerItems=" ).append (mostInnerItems );
335
345
sb .append (", additionalProperties=" ).append (additionalProperties );
346
+ sb .append (", vars=" ).append (vars );
347
+ sb .append (", requiredVars=" ).append (requiredVars );
336
348
sb .append (", vendorExtensions=" ).append (vendorExtensions );
337
349
sb .append (", hasValidation=" ).append (hasValidation );
338
350
sb .append (", maxProperties=" ).append (maxProperties );
@@ -542,5 +554,25 @@ public void setIsArray(boolean isArray) {
542
554
public void setAdditionalProperties (CodegenProperty additionalProperties ) {
543
555
this .additionalProperties = additionalProperties ;
544
556
}
557
+
558
+ @ Override
559
+ public List <CodegenProperty > getVars () {
560
+ return vars ;
561
+ }
562
+
563
+ @ Override
564
+ public void setVars (List <CodegenProperty > vars ) {
565
+ this .vars = vars ;
566
+ }
567
+
568
+ @ Override
569
+ public List <CodegenProperty > getRequiredVars () {
570
+ return requiredVars ;
571
+ }
572
+
573
+ @ Override
574
+ public void setRequiredVars (List <CodegenProperty > requiredVars ) {
575
+ this .requiredVars = requiredVars ;
576
+ }
545
577
}
546
578
0 commit comments