Ensure generated enum values are valid, resolves #2457

This commit is contained in:
Ben Herila 2016-04-09 13:00:44 -07:00
parent 282f497839
commit 3fba32573c

View File

@ -33,7 +33,7 @@ export namespace {{classname}} {
{{#vars}}
{{#isEnum}}
export enum {{datatypeWithEnum}} { {{#allowableValues}}{{#values}}
{{.}} = <any> '{{.}}'{{^-last}},{{/-last}}{{/values}}{{/allowableValues}}
VALUE_{{.}} = <any> '{{.}}'{{^-last}},{{/-last}}{{/values}}{{/allowableValues}}
}
{{/isEnum}}
{{/vars}}