Hi,
I have an issue when generating enums using ServiceStack 5.5 and EnumMember(Value="")
An enum without the [Flags] attribute is generated correctly e.g.
public enum AuditCategory
{
[EnumMember(Value="User Action")] UserAction = 1,
[EnumMember(Value="System Action")] SystemAction = 2
}
translates to
export enum AuditCategory
{
UserAction = 'User Action',
SystemAction = 'System Action',
}
However an enum with the [Flags] attributes is generated without the single quotes breaking the dto.
[Flags]
public enum EnvironmentType
{
[EnumMember(Value = "Development")]
Development= 1,
[EnumMember(Value = "Production")]
Production= 2,
[EnumMember(Value = "All")]
All = Development| Production
}
is generated without quotes
// @Flags()
export enum EnvironmentType
{
Development= Development,
Production= Production,
All = All,
}