Skip to content

Commit

Permalink
fix: Add check for property names as well
Browse files Browse the repository at this point in the history
  • Loading branch information
--show-origin committed Mar 19, 2024
1 parent 51b8cb0 commit f26b915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Remora.Rest/Json/StringEnumConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public override TEnum Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSe

switch (reader.TokenType)
{
case JsonTokenType.String:
case JsonTokenType.String or JsonTokenType.PropertyName:
{
var value = reader.GetString();
if (value is null)
Expand Down

0 comments on commit f26b915

Please sign in to comment.