-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
I'm trying to patch the Status field on something, where Status is an Enum. We're using EnumMember on our enum values to specify how the client should see them, e.g.
public Enum Status
{
[EnumMember(Value="open")]
Open = 1,
[EnumMember(Value="in_progress")]
InProgress = 1,
[EnumMember(Value="closed")]
Closed = 1,
}
When we try to patch this status to in_progress it can't map that back to the Status.InProgress.
[
{
op: "replace", path: "/status", value: "in_progress"
}
]
I'm happy to put a PR in for this, but thought I'd get your take on how you'd like to see this implemented first. Thought you might have some preferences about using JsonProperty Description EnumMember etc attributes, things like that.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels