Skip to content

Commit 59e5eb5

Browse files
authored
Merge branch 'master' into timward60-timward/ruby-client-codegen
2 parents 16f7787 + 6cd8d22 commit 59e5eb5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/resources/handlebars/kotlin-client/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class {{classname}}(basePath: kotlin.String = "{{{basePath}}}") : ApiClient(base
3434
"{{path}}"{{#pathParams}}.replace("{" + "{{baseName}}" + "}", "${{paramName}}"){{/pathParams}}{{#hasQueryParams}}, query = localVariableQuery{{/hasQueryParams}}{{#or hasFormParams hasHeaderParams}}, headers = localVariableHeaders{{/or}}
3535
)
3636
val response = request<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Any?{{/returnType}}>(
37-
localVariableConfig{{#or hasFormParams hasHeaderParams}}, localVariableBody{{/or}}
37+
localVariableConfig{{#or hasFormParams hasBodyParam}}, localVariableBody{{/or}}
3838
)
3939

4040
return when (response.responseType) {

src/main/resources/handlebars/typescript-angular/README.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ npm install PATH_TO_GENERATED_PACKAGE/dist.tgz --save
3636
{{^useNgPackagr}}
3737
npm install PATH_TO_GENERATED_PACKAGE/{{npmName}}-{{npmVersion}}.tgz --save
3838
{{/useNgPackagr}}
39+
```
40+
3941
It's important to take the tgz file, otherwise you'll get trouble with links on windows.
4042

4143
_using `npm link`:_

0 commit comments

Comments
 (0)