Skip to content

Commit

Permalink
Fix GetToken missing types error
Browse files Browse the repository at this point in the history
  • Loading branch information
ionite34 committed Nov 3, 2024
1 parent d0d31e5 commit fcdba73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.2.1] - 2024-11-03
### Fixed
- Fixed IPatreonApi.GetToken missing types error for source generated json deserialization.

## [1.2.0] - 2024-10-12
### Added
- Added fields parameters for tier to IPatreonApi.GetIdentity and IPatreonApi.GetIdentityJson.
Expand Down
2 changes: 2 additions & 0 deletions Patreon.Api/Models/SerializerContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
namespace Patreon.Api.Models;

[JsonSourceGenerationOptions(PropertyNamingPolicy = JsonKnownNamingPolicy.SnakeCaseLower)]
[JsonSerializable(typeof(PatreonTokenRequest))]
[JsonSerializable(typeof(PatreonTokenResponse))]
[JsonSerializable(typeof(PatreonIdentityResponse))]
[JsonSerializable(typeof(JsonObject))]
[JsonSerializable(typeof(JsonValue))]
Expand Down

0 comments on commit fcdba73

Please sign in to comment.