Skip to content

Commit

Permalink
Fix missing JsonSerializable
Browse files Browse the repository at this point in the history
  • Loading branch information
ionite34 committed Oct 10, 2024
1 parent 5d4b517 commit 479142f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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.1.1] - 2024-10-10
### Fixed
- Fixed IPatreonApi.GetIdentityJson missing types error for source generated json deserialization.

## [1.1.0] - 2024-10-09
### Added
- Added IPatreonApi.GetIdentity overloads that accept field parameters.
Expand Down
5 changes: 4 additions & 1 deletion Patreon.Api/Models/SerializerContext.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
using System.Text.Json.Serialization;
using System.Text.Json.Nodes;
using System.Text.Json.Serialization;

namespace Patreon.Api.Models;

[JsonSourceGenerationOptions(PropertyNamingPolicy = JsonKnownNamingPolicy.SnakeCaseLower)]
[JsonSerializable(typeof(PatreonIdentityResponse))]
[JsonSerializable(typeof(JsonObject))]
[JsonSerializable(typeof(JsonValue))]
internal partial class PatreonApiSourceGenerationContext : JsonSerializerContext;

0 comments on commit 479142f

Please sign in to comment.