remove serde(flatten) in MSC4133 endpoints

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-12-15 03:23:31 -05:00
parent b1790e05ce
commit 5a826d31a3
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ pub mod unstable {
#[ruma_api(path)] #[ruma_api(path)]
pub key: String, pub key: String,
#[serde(flatten)] #[ruma_api(body)]
pub kv_pair: BTreeMap<String, JsonValue>, pub kv_pair: BTreeMap<String, JsonValue>,
} }

View File

@ -37,7 +37,7 @@ pub mod unstable {
#[response(error = crate::Error)] #[response(error = crate::Error)]
#[derive(Default)] #[derive(Default)]
pub struct Response { pub struct Response {
#[serde(flatten)] #[ruma_api(body)]
pub value: BTreeMap<String, JsonValue>, pub value: BTreeMap<String, JsonValue>,
} }

View File

@ -33,7 +33,7 @@ pub mod unstable {
#[ruma_api(path)] #[ruma_api(path)]
pub key: String, pub key: String,
#[serde(flatten)] #[ruma_api(body)]
pub kv_pair: BTreeMap<String, JsonValue>, pub kv_pair: BTreeMap<String, JsonValue>,
} }