Add unstable_features to version endpoint

This commit is contained in:
iinuwa 2020-02-22 16:12:34 -06:00 committed by GitHub
parent 9665abbaf2
commit 7d677f690e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,7 @@ Improvements:
* Add `r0::client_exchange::send_event_to_device` (introduced in r0.3.0)
* Add endpoints to retrieve account_data (introduced in r0.5.0)
* Add media endpoints: `r0::media::{get_media_config, get_media_preview, get_content_as_filename}`
* Add `unstable_features` to `unversioned::get_supported_versions` (introduced in r0.5.0)
Breaking changes:

View File

@ -1,4 +1,6 @@
//! [GET /_matrix/client/versions](https://matrix.org/docs/spec/client_server/r0.4.0.html#get-matrix-client-versions)
//! [GET /_matrix/client/versions](https://matrix.org/docs/spec/client_server/r0.6.0.html#get-matrix-client-versions)
use std::collections::HashMap;
use ruma_api::ruma_api;
@ -17,5 +19,8 @@ ruma_api! {
response {
/// A list of Matrix client API protocol versions supported by the homeserver.
pub versions: Vec<String>,
/// Experimental features supported by the server.
#[serde(default, skip_serializing_if = "HashMap::is_empty")]
pub unstable_features: HashMap<String, bool>
}
}