diff --git a/src/generator.ts b/src/generator.ts index ce69dfe7..1176fff2 100644 --- a/src/generator.ts +++ b/src/generator.ts @@ -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: [], diff --git a/templates/ngx-model.mustache b/templates/ngx-model.mustache index 002e75cb..eaa0f043 100644 --- a/templates/ngx-model.mustache +++ b/templates/ngx-model.mustache @@ -23,7 +23,7 @@ export interface {{&name}} { export enum {{&name}} { {{#properties}} - {{camelCaseName}} = "{{name}}", + {{name}} = "{{name}}", {{/properties}} } {{/isEnum}} \ No newline at end of file