Skip to content

Commit 260375c

Browse files
bvwellswing328
authored andcommitted
Fix typescript-node generation of array type models (#7861)
1 parent 45a2b5c commit 260375c

File tree

1 file changed

+2
-0
lines changed
  • modules/swagger-codegen/src/main/resources/typescript-node

1 file changed

+2
-0
lines changed

modules/swagger-codegen/src/main/resources/typescript-node/api.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ export class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{
151151
static discriminator = undefined;
152152
{{/discriminator}}
153153

154+
{{^isArrayModel}}
154155
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
155156
{{#vars}}
156157
{
@@ -170,6 +171,7 @@ export class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{
170171
return {{classname}}.attributeTypeMap;
171172
{{/parent}}
172173
}
174+
{{/isArrayModel}}
173175
}
174176

175177
{{#hasEnums}}

0 commit comments

Comments
 (0)