Skip to content

Commit

Permalink
Add deep object directive
Browse files Browse the repository at this point in the history
  • Loading branch information
hahmed-dev committed Oct 30, 2023
1 parent 29770d2 commit 5f66775
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ public class {{classname}} {
{{javaUtilPrefix}}List<Pair> localVarCollectionQueryParams = new {{javaUtilPrefix}}ArrayList<Pair>();
{{#queryParams}}
if ({{paramName}} != null) {
{{#isMap}}
{{#isDeepObject}}
localVarQueryParams.addAll(localVarApiClient.mappedParameterToPairs("{{baseName}}", {{paramName}}));
{{/isMap}}
{{^isMap}}
{{/isDeepObject}}
{{^isDeepObject}}
{{#collectionFormat}}localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("{{{collectionFormat}}}", {{/collectionFormat}}{{^collectionFormat}}localVarQueryParams.addAll(localVarApiClient.parameterToPair({{/collectionFormat}}"{{baseName}}", {{paramName}}));
{{/isMap}}
{{/isDeepObject}}
}

{{/queryParams}}
Expand Down

0 comments on commit 5f66775

Please sign in to comment.