-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Experimentally, I found these values to be wrong. Instead, I found them all to be one value lower than the values in code. The values should be zero based, not one based. What I think the correct code is:
[JsonConverter(typeof(StringEnumConverter))]
public enum StatusEnum
{
/// <summary>
/// Enum INPROGRESS for value: IN_PROGRESS
/// </summary>
[EnumMember(Value = "IN_PROGRESS")]
INPROGRESS = 0,
/// <summary>
/// Enum FAILED for value: FAILED
/// </summary>
[EnumMember(Value = "FAILED")]
FAILED = 1,
/// <summary>
/// Enum FAILEDWITHTERMINALERROR for value: FAILED_WITH_TERMINAL_ERROR
/// </summary>
[EnumMember(Value = "FAILED_WITH_TERMINAL_ERROR")]
FAILEDWITHTERMINALERROR = 2,
/// <summary>
/// Enum COMPLETED for value: COMPLETED
/// </summary>
[EnumMember(Value = "COMPLETED")]
COMPLETED = 3,
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels