From be58a82631137140a4836b88647b6f2423b2c4af Mon Sep 17 00:00:00 2001 From: Mohammad Mahdi Date: Thu, 5 Nov 2026 00:08:56 +0330 Subject: [PATCH] fix: add State enum to JSON serialization context --- DTOs/GithubReleaseResponseDto.cs | 1 - Services/GithubService.cs | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/DTOs/GithubReleaseResponseDto.cs b/DTOs/GithubReleaseResponseDto.cs index 2c80bf7..edebca5 100644 --- a/DTOs/GithubReleaseResponseDto.cs +++ b/DTOs/GithubReleaseResponseDto.cs @@ -191,7 +191,6 @@ public partial class Reactions public long Eyes { get; set; } } -[JsonConverter(typeof(JsonStringEnumConverter))] public enum State { [JsonStringEnumMemberName("uploaded")] diff --git a/Services/GithubService.cs b/Services/GithubService.cs index e38e7f8..2af9fe6 100644 --- a/Services/GithubService.cs +++ b/Services/GithubService.cs @@ -37,6 +37,7 @@ public class GithubService(IHttpClientFactory httpClientFactory, ILogger))] +[JsonSerializable(typeof(State))] internal partial class AppJsonSerializerContext : JsonSerializerContext { } \ No newline at end of file