Skip to content

Commit 479142f

Browse files
committed
Fix missing JsonSerializable
1 parent 5d4b517 commit 479142f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.1.1] - 2024-10-10
9+
### Fixed
10+
- Fixed IPatreonApi.GetIdentityJson missing types error for source generated json deserialization.
11+
812
## [1.1.0] - 2024-10-09
913
### Added
1014
- Added IPatreonApi.GetIdentity overloads that accept field parameters.
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
using System.Text.Json.Serialization;
1+
using System.Text.Json.Nodes;
2+
using System.Text.Json.Serialization;
23

34
namespace Patreon.Api.Models;
45

56
[JsonSourceGenerationOptions(PropertyNamingPolicy = JsonKnownNamingPolicy.SnakeCaseLower)]
67
[JsonSerializable(typeof(PatreonIdentityResponse))]
8+
[JsonSerializable(typeof(JsonObject))]
9+
[JsonSerializable(typeof(JsonValue))]
710
internal partial class PatreonApiSourceGenerationContext : JsonSerializerContext;

0 commit comments

Comments
 (0)