client-api: Fix deserialization of claim_keys
responses
… without a `failures` field.
This commit is contained in:
parent
02f29d6114
commit
8467e1342e
@ -6,6 +6,10 @@ Breaking changes:
|
|||||||
the `conditions` field is optional.
|
the `conditions` field is optional.
|
||||||
- `MissingConditionsError` was removed.
|
- `MissingConditionsError` was removed.
|
||||||
|
|
||||||
|
Bug fixes:
|
||||||
|
|
||||||
|
- Fix deserialization of `claim_keys` responses without a `failures` field
|
||||||
|
|
||||||
# 0.17.2
|
# 0.17.2
|
||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
|
@ -44,6 +44,7 @@ pub struct Request {
|
|||||||
pub struct Response {
|
pub struct Response {
|
||||||
/// If any remote homeservers could not be reached, they are recorded here.
|
/// If any remote homeservers could not be reached, they are recorded here.
|
||||||
/// The names of the properties are the names of the unreachable servers.
|
/// The names of the properties are the names of the unreachable servers.
|
||||||
|
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
|
||||||
pub failures: BTreeMap<String, JsonValue>,
|
pub failures: BTreeMap<String, JsonValue>,
|
||||||
|
|
||||||
/// One-time keys for the queried devices.
|
/// One-time keys for the queried devices.
|
||||||
|
@ -43,6 +43,7 @@ pub struct Request {
|
|||||||
pub struct Response {
|
pub struct Response {
|
||||||
/// If any remote homeservers could not be reached, they are recorded here.
|
/// If any remote homeservers could not be reached, they are recorded here.
|
||||||
/// The names of the properties are the names of the unreachable servers.
|
/// The names of the properties are the names of the unreachable servers.
|
||||||
|
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
|
||||||
pub failures: BTreeMap<String, JsonValue>,
|
pub failures: BTreeMap<String, JsonValue>,
|
||||||
|
|
||||||
/// One-time keys for the queried devices.
|
/// One-time keys for the queried devices.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user