diff --git a/modules/swagger-codegen/src/main/resources/Javascript/ApiClient.mustache b/modules/swagger-codegen/src/main/resources/Javascript/ApiClient.mustache index 8a2ea174fd2..2fa4a62ccf2 100644 --- a/modules/swagger-codegen/src/main/resources/Javascript/ApiClient.mustache +++ b/modules/swagger-codegen/src/main/resources/Javascript/ApiClient.mustache @@ -391,7 +391,7 @@ } } else { // All other collection query parameters should be treated as ordinary query parameters. - queryParams[key] = this.apiClient.buildCollectionParam(param.value, param.collectionFormat); + queryParams[key] = this.buildCollectionParam(param.value, param.collectionFormat); } } } diff --git a/samples/client/petstore/javascript-promise/src/ApiClient.js b/samples/client/petstore/javascript-promise/src/ApiClient.js index edf77def335..53f920fb382 100644 --- a/samples/client/petstore/javascript-promise/src/ApiClient.js +++ b/samples/client/petstore/javascript-promise/src/ApiClient.js @@ -385,7 +385,7 @@ } } else { // All other collection query parameters should be treated as ordinary query parameters. - queryParams[key] = this.apiClient.buildCollectionParam(param.value, param.collectionFormat); + queryParams[key] = this.buildCollectionParam(param.value, param.collectionFormat); } } } diff --git a/samples/client/petstore/javascript/src/ApiClient.js b/samples/client/petstore/javascript/src/ApiClient.js index 2f010c4486f..1c6eefbb71b 100644 --- a/samples/client/petstore/javascript/src/ApiClient.js +++ b/samples/client/petstore/javascript/src/ApiClient.js @@ -394,7 +394,7 @@ } } else { // All other collection query parameters should be treated as ordinary query parameters. - queryParams[key] = this.apiClient.buildCollectionParam(param.value, param.collectionFormat); + queryParams[key] = this.buildCollectionParam(param.value, param.collectionFormat); } } }