chore(config): skip serializing nip07 if Option::is_none

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-09-12 10:11:00 +00:00
parent be3cdc440d
commit 4df73316a0

View File

@@ -77,7 +77,7 @@ pub struct CliConfig {
#[serde(default)]
pub keyring_secret_key: bool,
/// Signs events using the browser's NIP-07 extension.
#[serde(default)]
#[serde(skip_serializing_if = "Option::is_none")]
pub nip07: Option<SocketAddr>,
}