fix: Reenable ReSharper annotations, fix warnings

This commit is contained in:
Valters Melnalksnis
2022-11-26 12:12:12 +02:00
parent 57d3cce072
commit 05b0767759
6 changed files with 27 additions and 25 deletions
@@ -52,7 +52,7 @@ public record Requisition
/// <summary>Gets the end-user-agreement of this requisition.</summary>
[JsonIgnore]
public Guid? Agreement => string.IsNullOrWhiteSpace(AgreementValue) ? null : Guid.Parse(AgreementValue);
public Guid? Agreement => string.IsNullOrWhiteSpace(AgreementValue) ? null : Guid.Parse(AgreementValue!);
/// <summary>Gets or sets a two-letter country code (ISO 639-1).</summary>
[JsonPropertyName("user_language")]
@@ -12,7 +12,7 @@ using VMelnalksnis.NordigenDotNet.Requisitions;
namespace VMelnalksnis.NordigenDotNet.Serialization;
/// <inheritdoc />
/// <inheritdoc cref="JsonSerializerContext" />
[JsonSourceGenerationOptions(GenerationMode = JsonSourceGenerationMode.Metadata, IgnoreReadOnlyProperties = true)]
[JsonSerializable(typeof(Account))]
[JsonSerializable(typeof(AccountDetailsWrapper))]
@@ -6,7 +6,7 @@ using System.Text.Json.Serialization;
namespace VMelnalksnis.NordigenDotNet.Tokens;
/// <inheritdoc />
/// <inheritdoc cref="JsonSerializerContext" />
[JsonSerializable(typeof(AccessToken))]
[JsonSerializable(typeof(Token))]
[JsonSerializable(typeof(TokenCreation))]