From 731800fd3f7f4c9f7442110b1cd7dabb826f3b2f Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Mon, 13 Apr 2026 03:05:35 +0200 Subject: [PATCH] fix: No default value for advertise routes --- schemas/cluster.json | 6 ++---- schemas/node.json | 6 ++---- src/node.rs | 2 ++ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/schemas/cluster.json b/schemas/cluster.json index 04a6139..7f90169 100644 --- a/schemas/cluster.json +++ b/schemas/cluster.json @@ -306,10 +306,8 @@ "type": "object", "properties": { "advertiseRoutes": { - "type": [ - "boolean", - "null" - ] + "type": "boolean", + "default": false }, "authKey": { "anyOf": [ diff --git a/schemas/node.json b/schemas/node.json index de7cc98..1174ce4 100644 --- a/schemas/node.json +++ b/schemas/node.json @@ -211,10 +211,8 @@ "type": "object", "properties": { "advertiseRoutes": { - "type": [ - "boolean", - "null" - ] + "type": "boolean", + "default": false }, "authKey": { "anyOf": [ diff --git a/src/node.rs b/src/node.rs index 5f599fb..73ac1b9 100644 --- a/src/node.rs +++ b/src/node.rs @@ -40,6 +40,8 @@ enum NodeArch { #[serde(rename_all = "camelCase", deny_unknown_fields)] struct Tailscale { auth_key: Secret, + #[serde(default)] + #[optional_skip_wrap] advertise_routes: bool, #[serde(default)] server: Option,