Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
SendPrimitiveAsync throws InvalidOperationException for enums
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinM85 committed Jun 22, 2024
1 parent 96a47a9 commit 6a4e22a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/HttpClientRequestAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ public string? BaseUrl
if(field.GetCustomAttribute<EnumMemberAttribute>() is { } attr && rawValue.Equals(attr.Value, StringComparison.Ordinal))
{
rawValue = field.Name;
break;
}
}
result = Enum.Parse(underlyingType, rawValue, true);
Expand Down

0 comments on commit 6a4e22a

Please sign in to comment.