remove serde(flatten) in MSC4133 endpoints
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
b1790e05ce
commit
5a826d31a3
@ -33,7 +33,7 @@ pub mod unstable {
|
||||
#[ruma_api(path)]
|
||||
pub key: String,
|
||||
|
||||
#[serde(flatten)]
|
||||
#[ruma_api(body)]
|
||||
pub kv_pair: BTreeMap<String, JsonValue>,
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ pub mod unstable {
|
||||
#[response(error = crate::Error)]
|
||||
#[derive(Default)]
|
||||
pub struct Response {
|
||||
#[serde(flatten)]
|
||||
#[ruma_api(body)]
|
||||
pub value: BTreeMap<String, JsonValue>,
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ pub mod unstable {
|
||||
#[ruma_api(path)]
|
||||
pub key: String,
|
||||
|
||||
#[serde(flatten)]
|
||||
#[ruma_api(body)]
|
||||
pub kv_pair: BTreeMap<String, JsonValue>,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user