From 89b7c981f5f19bd009afc19c3d244efb5598b5b9 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 20 Sep 2023 05:49:26 -0400 Subject: [PATCH] Fixing GetPostsResponse serialization. (#3967) --- crates/api_common/src/post.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/api_common/src/post.rs b/crates/api_common/src/post.rs index 7c3aabb60..bb5c1cccc 100644 --- a/crates/api_common/src/post.rs +++ b/crates/api_common/src/post.rs @@ -82,6 +82,7 @@ pub struct GetPosts { pub page_cursor: Option, } +#[skip_serializing_none] #[derive(Serialize, Deserialize, Debug, Clone)] #[cfg_attr(feature = "full", derive(TS))] #[cfg_attr(feature = "full", ts(export))]