DocumentService: fixed parsing body

This commit is contained in:
pavelbannov 2023-05-05 18:15:24 +03:00
parent a2d928aaa0
commit 66f78a8a5a

View File

@ -616,7 +616,7 @@ public static class DocumentService
[JsonPropertyName("callback")]
public string Callback { get; set; }
[JsonProperty(PropertyName = "key", Required = Required.Always)]
[JsonProperty(PropertyName = "key", Required = Required.AllowNull)]
[JsonPropertyName("key")]
public string Key { get; set; }
@ -807,7 +807,7 @@ public static class DocumentService
public string Url { get; set; }
[JsonProperty(PropertyName = "token", DefaultValueHandling = DefaultValueHandling.Ignore)]
[JsonPropertyName("token")]
[JsonPropertyName("token")]
public string Token { get; set; }
}