Skip to content

Commit 352625e

Browse files
author
Cody Mikol
committed
fix(kotlin-client): fix check to include body
now user hasBodyParams rather than hasHeaderParams Fixes N/A
1 parent cde4ff6 commit 352625e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-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) {

0 commit comments

Comments
 (0)