From 5c80cd6e507aea957cbe657d5f451b8279bb931f Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Thu, 20 May 2021 15:46:40 -0400 Subject: [PATCH] Skip serializing place_id and game_id if null --- src/project.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/project.rs b/src/project.rs index 9cc0d5de..088e6d97 100644 --- a/src/project.rs +++ b/src/project.rs @@ -59,10 +59,12 @@ pub struct Project { /// If specified, sets the current place's place ID when connecting to the /// Rojo server from Roblox Studio. + #[serde(skip_serializing_if = "Option::is_none")] pub place_id: Option, /// If specified, sets the current place's game ID when connecting to the /// Rojo server from Roblox Studio. + #[serde(skip_serializing_if = "Option::is_none")] pub game_id: Option, /// A list of globs, relative to the folder the project file is in, that