Skip to content

Commit 0dbb8a7

Browse files
Запасной Александр СергеевичЗапасной Александр Сергеевич
authored andcommitted
Fixed bug with template
1 parent 960779b commit 0dbb8a7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sundved/openapi-typescript-codegen",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "Fork of library that generates Typescript clients based on the OpenAPI specification.",
55
"author": "Sundved",
66
"homepage": "https://github.com/Sundved/openapi-typescript-codegen",

src/templates/core/httpClient/getRequestBody.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function getRequestBody(options: ApiRequestOptions): BodyInit | undefined {
33
return getFormData(options.formData);
44
}
55
if (options.body) {
6-
if (isString(options.body) || isBinary(options.body)) {
6+
if (isString(options.body) || isBlob(options.body)) {
77
return options.body;
88
} else {
99
return JSON.stringify(options.body);

src/templates/core/httpClient/request.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { OpenAPI } from './OpenAPI';
77
{{>functions/isDefined}}
88

99

10-
{{>functions/isBinary}}
10+
{{>functions/isBlob}}
1111

1212

1313
{{>functions/isString}}

0 commit comments

Comments
 (0)