fix(#2014): add serde skip_serializing_if to HiveUrls option fields

This commit is contained in:
damocles 2026-06-26 23:42:15 +02:00 committed by mara
commit afa07d5fc1

View file

@ -143,14 +143,18 @@ impl LifecycleScope {
#[derive(Debug, Clone, Default, Serialize, Deserialize)] #[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct HiveUrls { pub struct HiveUrls {
/// Canonical hive domain (`services.hyperhive.domain`). /// Canonical hive domain (`services.hyperhive.domain`).
#[serde(default, skip_serializing_if = "Option::is_none")]
pub domain: Option<String>, pub domain: Option<String>,
/// Operator dashboard root (`https://<domain>/`). /// Operator dashboard root (`https://<domain>/`).
#[serde(default, skip_serializing_if = "Option::is_none")]
pub home: Option<String>, pub home: Option<String>,
/// Forge browser URL (`HIVE_FORGE_PUBLIC_URL`) — only the /// Forge browser URL (`HIVE_FORGE_PUBLIC_URL`) — only the
/// behind-gateway public URL; `None` on direct-port forge deploys. /// behind-gateway public URL; `None` on direct-port forge deploys.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub forge: Option<String>, pub forge: Option<String>,
/// Matrix GUI (fluffychat) browser URL — `None` when the matrix GUI /// Matrix GUI (fluffychat) browser URL — `None` when the matrix GUI
/// is disabled. /// is disabled.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub matrix: Option<String>, pub matrix: Option<String>,
} }