Skip to content

Commit

Permalink
fix(models): enum property names same as values
Browse files Browse the repository at this point in the history
fixes #18
  • Loading branch information
vmasek committed Feb 25, 2018
1 parent 3492d8f commit 7a0b171
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ export class Generator {
name: Generator.typeName(defVal),
properties: defIn.enum.map((val) => ({
name: val.toString(),
camelCaseName: Generator.camelCase(val.toString())
})),
isEnum: true,
refs: [],
Expand Down
2 changes: 1 addition & 1 deletion templates/ngx-model.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface {{&name}} {

export enum {{&name}} {
{{#properties}}
{{camelCaseName}} = "{{name}}",
{{name}} = "{{name}}",
{{/properties}}
}
{{/isEnum}}

0 comments on commit 7a0b171

Please sign in to comment.