fix: add State enum to JSON serialization context
Run Forgejo Release Sync / sync (push) Successful in 6m50s

This commit is contained in:
mahdium committed 2026-11-05 00:08:56 +03:30
1 parent 49f99938c0
commit be58a82631
2 files changed
+1 -1

No files matched your search

-1
View File
@@ -191,7 +191,6 @@ public partial class Reactions
public long Eyes { get; set; } public long Eyes { get; set; }
} }
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum State public enum State
{ {
[JsonStringEnumMemberName("uploaded")] [JsonStringEnumMemberName("uploaded")]
+1
View File
@@ -37,6 +37,7 @@ public class GithubService(IHttpClientFactory httpClientFactory, ILogger<GithubS
[JsonSerializable(typeof(ForgejoCreateReleaseDto))] [JsonSerializable(typeof(ForgejoCreateReleaseDto))]
[JsonSerializable(typeof(ForgejoReleaseResponseDto))] [JsonSerializable(typeof(ForgejoReleaseResponseDto))]
[JsonSerializable(typeof(List<ForgejoReleaseResponseDto>))] [JsonSerializable(typeof(List<ForgejoReleaseResponseDto>))]
[JsonSerializable(typeof(State))]
internal partial class AppJsonSerializerContext : JsonSerializerContext internal partial class AppJsonSerializerContext : JsonSerializerContext
{ {
} }