client-api: Don't serialize well_known if it's None
in login response
This commit is contained in:
parent
8c286e78d4
commit
2b04cacc82
@ -54,6 +54,7 @@ ruma_api! {
|
|||||||
/// Client configuration provided by the server.
|
/// Client configuration provided by the server.
|
||||||
///
|
///
|
||||||
/// If present, clients SHOULD use the provided object to reconfigure themselves.
|
/// If present, clients SHOULD use the provided object to reconfigure themselves.
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub well_known: Option<DiscoveryInfo>,
|
pub well_known: Option<DiscoveryInfo>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user