client-api: Allow empty failures object in response to upload_signatures.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-04-07 22:36:04 -07:00 committed by June
parent 580eefe1c6
commit 23535bc153

View File

@ -45,7 +45,7 @@ pub mod v3 {
#[derive(Default)]
pub struct Response {
/// Signature processing failures.
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
#[serde(default)]
pub failures: BTreeMap<OwnedUserId, BTreeMap<String, Failure>>,
}