Skip to content

Commit

Permalink
[Typescript][Node] Fixes inccorect enum generation for enumsMap when …
Browse files Browse the repository at this point in the history
…Array<Enum> is defined fixes part of Issue #5681 (#6862)
  • Loading branch information
kenisteward authored and wing328 committed Nov 6, 2017
1 parent 626fa75 commit 39a9c55
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ let enumsMap = {
{{#hasEnums}}
{{#vars}}
{{#isEnum}}
"{{datatypeWithEnum}}": {{datatypeWithEnum}},
{{#isContainer}}"{{classname}}.{{enumName}}": {{classname}}.{{enumName}}{{/isContainer}}{{#isNotContainer}}"{{datatypeWithEnum}}": {{datatypeWithEnum}}{{/isNotContainer}},
{{/isEnum}}
{{/vars}}
{{/hasEnums}}
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/typescript-node/default/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ export class User {


let enumsMap = {
"Order.StatusEnum": Order.StatusEnum,
"Pet.StatusEnum": Pet.StatusEnum,
"Order.StatusEnum": Order.StatusEnum,
"Pet.StatusEnum": Pet.StatusEnum,
}

let typeMap = {
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/typescript-node/npm/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ export class User {


let enumsMap = {
"Order.StatusEnum": Order.StatusEnum,
"Pet.StatusEnum": Pet.StatusEnum,
"Order.StatusEnum": Order.StatusEnum,
"Pet.StatusEnum": Pet.StatusEnum,
}

let typeMap = {
Expand Down

0 comments on commit 39a9c55

Please sign in to comment.