client-api: Make the CrossSigningKey serialization invertible

This commit is contained in:
poljar 2020-10-22 16:21:27 +02:00 committed by GitHub
parent 97f3e31ad8
commit db2f580329
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ pub struct CrossSigningKey {
pub keys: BTreeMap<String, String>,
/// Signatures of the key. Only optional for master key.
#[serde(skip_serializing_if = "BTreeMap::is_empty")]
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
pub signatures: BTreeMap<UserId, BTreeMap<String, String>>,
}