Skip to content

Commit c825169

Browse files
committed
Fix Property attribute missing key value
1 parent 31a6d6c commit c825169

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
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.0.0-pre.2] - 2024-10-08
9+
### Fixed
10+
- Fixed IPatreonApi.GetIdentity missing Property attribute value error
11+
812
## [1.0.0-pre.1] - 2024-10-07
913
### Added
1014
- Initial release.

Patreon.Api/Authorization/PatreonAuthHeaderHandler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ namespace Patreon.Api.Authorization;
1212

1313
public class PatreonAuthHeaderHandler : DelegatingHandler
1414
{
15-
private static HttpRequestOptionsKey<AuthorizationTokens> AuthorizationTokensOptionsKey { get; } = new();
15+
private static HttpRequestOptionsKey<AuthorizationTokens> AuthorizationTokensOptionsKey { get; } =
16+
new(nameof(AuthorizationTokens));
1617

1718
private readonly ILogger<PatreonAuthHeaderHandler> logger;
1819
private readonly AsyncRetryPolicy<HttpResponseMessage> policy;

Patreon.Api/IPatreonApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Task<PatreonTokenResponse> GetToken(
1818
[Get("/oauth2/v2/identity")]
1919
Task<PatreonIdentityResponse> GetIdentity(
2020
[Query] string include = "memberships.campaign,memberships.currently_entitled_tiers",
21-
[Property] AuthorizationTokens? authorization = null,
21+
[Property(nameof(AuthorizationTokens))] AuthorizationTokens? authorization = null,
2222
CancellationToken cancellationToken = default
2323
);
2424
}

0 commit comments

Comments
 (0)