From 6452401add06475449b8bdff93896f20ebea9e7a Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sat, 18 Apr 2020 00:26:29 +0200 Subject: [PATCH] Add missing skip_serializing_if = "Option::is_none --- CHANGELOG.md | 1 + src/r0/media/get_content_thumbnail.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c9ce527..ea4ca735 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ Breaking changes: Improvements: * Add types for User-Interactive Authentication API: `r0::account::{UserInteractiveAuthenticationInfo, AuthenticationFlow}` +* Add missing serde attributes to `get_content_thumbnail` query parameters # 0.7.2 diff --git a/src/r0/media/get_content_thumbnail.rs b/src/r0/media/get_content_thumbnail.rs index 567631d9..a6d9a127 100644 --- a/src/r0/media/get_content_thumbnail.rs +++ b/src/r0/media/get_content_thumbnail.rs @@ -29,6 +29,7 @@ ruma_api! { /// /// Used to prevent routing loops. Defaults to `true`. #[ruma_api(query)] + #[serde(skip_serializing_if = "Option::is_none")] pub allow_remote: Option, /// The media ID from the mxc:// URI (the path component). #[ruma_api(path)] @@ -42,6 +43,7 @@ ruma_api! { pub height: UInt, /// The desired resizing method. #[ruma_api(query)] + #[serde(skip_serializing_if = "Option::is_none")] pub method: Option, /// The *desired* width of the thumbnail. The actual thumbnail may not match the size /// specified.