File tree Expand file tree Collapse file tree 4 files changed +11
-24
lines changed
clients/algoliasearch-client-javascript
java/libraries/okhttp-gson Expand file tree Collapse file tree 4 files changed +11
-24
lines changed Original file line number Diff line number Diff line change 35
35
{
36
36
"path" : " packages/recommend/dist/recommend.umd.browser.js" ,
37
37
"maxSize" : " 3.80KB"
38
- },
39
- {
40
- "path" : " packages/client-common/dist/client-common.esm.node.js" ,
41
- "maxSize" : " 5.25KB"
42
- },
43
- {
44
- "path" : " packages/requester-browser-xhr/dist/requester-browser-xhr.esm.node.js" ,
45
- "maxSize" : " 900B"
46
- },
47
- {
48
- "path" : " packages/requester-node-http/dist/requester-node-http.esm.node.js" ,
49
- "maxSize" : " 1.15KB"
50
38
}
51
39
]
52
40
}
Original file line number Diff line number Diff line change @@ -111,8 +111,10 @@ public class {{classname}} extends ApiClient {
111
111
Object bodyObj = {{#bodyParam} }{ {paramName} }{ {/bodyParam} }{ {^bodyParam} }null{ {/bodyParam} };
112
112
113
113
// create path and map variables
114
- String requestPath = "{ {{path} }}"{ {#pathParams} }
115
- .replaceAll("\\{ " + " {{baseName} }" + "\\}", this.escapeString({ {{paramName} }}.toString())){ {/pathParams} };
114
+ String requestPath = "{ {{path} }}"{ {#vendorExtensions} }{ {#pathParams} }.replaceAll(
115
+ { {=<% %>= } }"\\{ <% baseName%> \\} "<%={ { } }=%>,
116
+ { {#x-is-custom-request} }{ {{paramName} }}.toString(){ {/x-is-custom-request} }{ {^x-is-custom-request} }this.escapeString({ {{paramName} }}.toString()){ {/x-is-custom-request} }
117
+ ){ {/pathParams} }{ {/vendorExtensions} };
116
118
117
119
{ {javaUtilPrefix} }List<Pair > queryParams = new { {javaUtilPrefix} }ArrayList<Pair >();
118
120
{ {javaUtilPrefix} }Map<String , String > headers = new { {javaUtilPrefix} }HashMap<String , String >();
Original file line number Diff line number Diff line change @@ -202,12 +202,9 @@ export function create{{capitalizedApiName}}Api(options: CreateClientOptions{{#h
202
202
{ {/allParams.0} }
203
203
requestOptions?: RequestOptions
204
204
) : Promise<{ {{returnType} }}> {
205
- const requestPath = ' {{{path}}}' {{#pathParams} }.replace(
206
- { {=<% %>= } }
207
- '{ <% baseName%> } ',
208
- <%={ { } }=%>
209
- encodeURIComponent(String({ {paramName} }))
210
- ){ {/pathParams} };
205
+ const requestPath = ' {{{path}}}' {{#vendorExtensions} }{ {#pathParams} }.replace(
206
+ { {=<% %>= } }'{ <% baseName%> } '<%={ { } }=%>,{ {#x-is-custom-request} }String({ {paramName} }){ {/x-is-custom-request} }{ {^x-is-custom-request} }encodeURIComponent(String({ {paramName} })){ {/x-is-custom-request} }
207
+ ){ {/pathParams} }{ {/vendorExtensions} };
211
208
const headers: Headers = { } ;
212
209
const queryParameters: QueryParameters = { } ;
213
210
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ use {{invokerPackage}}\RetryStrategy\ClusterHosts;
231
231
}
232
232
{ {/isExplode} }
233
233
{ {/queryParams} }
234
- { {#pathParams} }
234
+ { {#vendorExtensions } } { {# pathParams} }
235
235
// path params
236
236
{ {#collectionFormat} }
237
237
if (is_array(${ {paramName} })) {
@@ -240,12 +240,12 @@ use {{invokerPackage}}\RetryStrategy\ClusterHosts;
240
240
{ {/collectionFormat} }
241
241
if (${ {paramName} } !== null) {
242
242
$resourcePath = str_replace(
243
- ' { ' . ' {{ baseName}} ' . ' } ' ,
244
- ObjectSerializer::toPathValue(${{paramName} }),
243
+ {{= <% %>= } }' { <% baseName%> } '<%= { { } }=%> ,
244
+ { {#x-is-custom-request } } { {paramName } } { {/x-is-custom-request } } { {^x-is-custom-request } } ObjectSerializer::toPathValue(${ {paramName} }){ {/x-is-custom-request } } ,
245
245
$resourcePath
246
246
);
247
247
}
248
- { {/pathParams} }
248
+ { {/pathParams} }{ {/vendorExtensions } }
249
249
250
250
{ {#bodyParams} }
251
251
if (isset(${ {paramName} })) {
You can’t perform that action at this time.
0 commit comments