From 050dd731dd11e511a84551a66507630a3ca53f86 Mon Sep 17 00:00:00 2001 From: Matthew Parker Date: Wed, 7 Aug 2024 04:16:23 +0100 Subject: [PATCH] Fixed failing tests with explicit json prop name --- .../Requests/VerifyAuthenticatorRequest.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PinguApps.Appwrite.Shared/Requests/VerifyAuthenticatorRequest.cs b/src/PinguApps.Appwrite.Shared/Requests/VerifyAuthenticatorRequest.cs index 0877587d..6f335680 100644 --- a/src/PinguApps.Appwrite.Shared/Requests/VerifyAuthenticatorRequest.cs +++ b/src/PinguApps.Appwrite.Shared/Requests/VerifyAuthenticatorRequest.cs @@ -1,7 +1,9 @@ -using PinguApps.Appwrite.Shared.Requests.Validators; +using System.Text.Json.Serialization; +using PinguApps.Appwrite.Shared.Requests.Validators; namespace PinguApps.Appwrite.Shared.Requests; public class VerifyAuthenticatorRequest : BaseRequest { + [JsonPropertyName("otp")] public string Otp { get; set; } = string.Empty; }