From afa07d5fc13a9c88cf9e4bb858fc6037554dae97 Mon Sep 17 00:00:00 2001 From: damocles Date: Fri, 26 Jun 2026 23:42:15 +0200 Subject: [PATCH] fix(#2014): add serde skip_serializing_if to HiveUrls option fields --- hive-sh4re/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hive-sh4re/src/lib.rs b/hive-sh4re/src/lib.rs index e896a063..155cfd5e 100644 --- a/hive-sh4re/src/lib.rs +++ b/hive-sh4re/src/lib.rs @@ -143,14 +143,18 @@ impl LifecycleScope { #[derive(Debug, Clone, Default, Serialize, Deserialize)] pub struct HiveUrls { /// Canonical hive domain (`services.hyperhive.domain`). + #[serde(default, skip_serializing_if = "Option::is_none")] pub domain: Option, /// Operator dashboard root (`https:///`). + #[serde(default, skip_serializing_if = "Option::is_none")] pub home: Option, /// Forge browser URL (`HIVE_FORGE_PUBLIC_URL`) — only the /// behind-gateway public URL; `None` on direct-port forge deploys. + #[serde(default, skip_serializing_if = "Option::is_none")] pub forge: Option, /// Matrix GUI (fluffychat) browser URL — `None` when the matrix GUI /// is disabled. + #[serde(default, skip_serializing_if = "Option::is_none")] pub matrix: Option, }