Skip to content

Commit fcdba73

Browse files
committed
Fix GetToken missing types error
1 parent d0d31e5 commit fcdba73

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
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.2.1] - 2024-11-03
9+
### Fixed
10+
- Fixed IPatreonApi.GetToken missing types error for source generated json deserialization.
11+
812
## [1.2.0] - 2024-10-12
913
### Added
1014
- Added fields parameters for tier to IPatreonApi.GetIdentity and IPatreonApi.GetIdentityJson.

Patreon.Api/Models/SerializerContext.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
namespace Patreon.Api.Models;
55

66
[JsonSourceGenerationOptions(PropertyNamingPolicy = JsonKnownNamingPolicy.SnakeCaseLower)]
7+
[JsonSerializable(typeof(PatreonTokenRequest))]
8+
[JsonSerializable(typeof(PatreonTokenResponse))]
79
[JsonSerializable(typeof(PatreonIdentityResponse))]
810
[JsonSerializable(typeof(JsonObject))]
911
[JsonSerializable(typeof(JsonValue))]

0 commit comments

Comments
 (0)