Skip to content

Commit 5f66775

Browse files
committed
Add deep object directive
1 parent 29770d2 commit 5f66775

File tree

1 file changed

+4
-4
lines changed
  • openapi-generator/templates/java/libraries/okhttp-gson

1 file changed

+4
-4
lines changed

openapi-generator/templates/java/libraries/okhttp-gson/api.mustache

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ public class {{classname}} {
100100
{{javaUtilPrefix}}List<Pair> localVarCollectionQueryParams = new {{javaUtilPrefix}}ArrayList<Pair>();
101101
{{#queryParams}}
102102
if ({{paramName}} != null) {
103-
{{#isMap}}
103+
{{#isDeepObject}}
104104
localVarQueryParams.addAll(localVarApiClient.mappedParameterToPairs("{{baseName}}", {{paramName}}));
105-
{{/isMap}}
106-
{{^isMap}}
105+
{{/isDeepObject}}
106+
{{^isDeepObject}}
107107
{{#collectionFormat}}localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("{{{collectionFormat}}}", {{/collectionFormat}}{{^collectionFormat}}localVarQueryParams.addAll(localVarApiClient.parameterToPair({{/collectionFormat}}"{{baseName}}", {{paramName}}));
108-
{{/isMap}}
108+
{{/isDeepObject}}
109109
}
110110

111111
{{/queryParams}}

0 commit comments

Comments
 (0)