Skip to content

Commit

Permalink
Fix enum parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Smrecz committed Mar 16, 2023
1 parent c56a918 commit fc217c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Tatum.Notifications/Models/Notification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public abstract class Notification : INotification
public string Id { get; set; }

[JsonPropertyName("type")]

[JsonConverter(typeof(JsonStringEnumConverter))]
public NotificationType Type { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ internal class NotificationResponse
public string Id { get; set; }

[JsonPropertyName("type")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public NotificationType Type { get; set; }

[JsonPropertyName("attr")]
Expand Down

0 comments on commit fc217c1

Please sign in to comment.