Skip to content

Commit 8f809cc

Browse files
committed
Correct imports
1 parent c6b6722 commit 8f809cc

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

templates-v7/typescript/api/api.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class {{classname}} extends Service {
4141
.replace("{" + "{{baseName}}" + "}", encodeURIComponent(String({{paramName}}))){{/pathParams}};
4242
const resource = new Resource(this, endpoint);
4343
{{#bodyParam}}
44-
const request: {{{dataType}}} = ObjectSerializer.serialize({{paramName}}, "{{{dataType}}}");
44+
const request: {{{dataType}}} = ObjectSerializer.serialize({{paramName}}, "{{{dataType}}}", "");
4545
{{/bodyParam}}
4646
{{#hasQueryParams}}
4747
const hasDefinedQueryParams = {{#queryParams}}{{paramName}}{{^-last}} ?? {{/-last}}{{/queryParams}};
@@ -59,7 +59,7 @@ export class {{classname}} extends Service {
5959
{ ...requestOptions, method: "{{httpMethod}}" }
6060
);
6161
{{#hasProduces}}
62-
return ObjectSerializer.deserialize(response, "{{{returnType}}}");
62+
return ObjectSerializer.deserialize(response, "{{{returnType}}}", "");
6363
{{/hasProduces}}
6464
}
6565

templates-v7/typescript/index.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{#apiInfo}}
33
{{#apis}}
44
{{#operations}}
5-
import { {{ classname }} } from "./{{ classFilename }}";
5+
import { {{ classname }} } from "./{{#lambda.camelcase}}{{ classFilename }}{{/lambda.camelcase}}";
66
{{/operations}}
77
{{/apis}}
88
{{/apiInfo}}

templates-v7/typescript/model/model.mustache

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
{{#models}}
33
{{#model}}
44
{{#tsImports}}
5-
import { {{classname}} } from '{{filename}}{{importFileExtension}}';
6-
{{/tsImports}}
5+
import { {{classname}} } from './models';
6+
{{#-last}}
77

8+
{{/-last}}
9+
{{/tsImports}}
810
{{#description}}
911
/**
1012
* {{{.}}}
1113
*/
14+
1215
{{/description}}
1316
{{^isEnum}}
1417
{{#oneOf}}

templates-v7/typescript/model/models_all.mustache

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
{{#model}}
33
export * from './{{#lambda.camelcase}}{{ name }}{{/lambda.camelcase}}{{importFileExtension}}'
44
{{/model}}
5-
{{/models}}
5+
{{/models}}
6+
7+
// serializing and deserializing typed objects
8+
export * from './objectSerializer'

0 commit comments

Comments
 (0)