Skip to content

Commit 090ccbf

Browse files
author
kmclarnon
committed
fix templates
1 parent 751e59d commit 090ccbf

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.blazar.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
env:
2+
SET_VERSION_OVERRIDE: "2.4.19-$GIT_BRANCH-SNAPSHOT"

modules/swagger-codegen/src/main/resources/Java/libraries/okhttp-gson/ApiClient.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ public class ApiClient {
769769
content = null;
770770
}
771771
return RequestBody.create(MediaType.parse(contentType), content);
772+
} else if (obj instanceof String) {
773+
return RequestBody.create(MediaType.parse(contentType), (String) obj);
772774
} else {
773775
throw new ApiException("Content type \"" + contentType + "\" is not supported");
774776
}

0 commit comments

Comments
 (0)