Skip to content

Commit

Permalink
Fix Property attribute missing key value
Browse files Browse the repository at this point in the history
  • Loading branch information
ionite34 committed Oct 8, 2024
1 parent 31a6d6c commit c825169
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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.0.0-pre.2] - 2024-10-08
### Fixed
- Fixed IPatreonApi.GetIdentity missing Property attribute value error

## [1.0.0-pre.1] - 2024-10-07
### Added
- Initial release.
3 changes: 2 additions & 1 deletion Patreon.Api/Authorization/PatreonAuthHeaderHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ namespace Patreon.Api.Authorization;

public class PatreonAuthHeaderHandler : DelegatingHandler
{
private static HttpRequestOptionsKey<AuthorizationTokens> AuthorizationTokensOptionsKey { get; } = new();
private static HttpRequestOptionsKey<AuthorizationTokens> AuthorizationTokensOptionsKey { get; } =
new(nameof(AuthorizationTokens));

private readonly ILogger<PatreonAuthHeaderHandler> logger;
private readonly AsyncRetryPolicy<HttpResponseMessage> policy;
Expand Down
2 changes: 1 addition & 1 deletion Patreon.Api/IPatreonApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Task<PatreonTokenResponse> GetToken(
[Get("/oauth2/v2/identity")]
Task<PatreonIdentityResponse> GetIdentity(
[Query] string include = "memberships.campaign,memberships.currently_entitled_tiers",
[Property] AuthorizationTokens? authorization = null,
[Property(nameof(AuthorizationTokens))] AuthorizationTokens? authorization = null,
CancellationToken cancellationToken = default
);
}

0 comments on commit c825169

Please sign in to comment.