From 83f7d33efa0d0a3233cb48dd924c6776e971192c 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 | 3 ++- schemas/node.json | 3 ++- src/node.rs | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/schemas/cluster.json b/schemas/cluster.json index 04a6139..c6f719a 100644 --- a/schemas/cluster.json +++ b/schemas/cluster.json @@ -309,7 +309,8 @@ "type": [ "boolean", "null" - ] + ], + "default": null }, "authKey": { "anyOf": [ diff --git a/schemas/node.json b/schemas/node.json index de7cc98..f4db77b 100644 --- a/schemas/node.json +++ b/schemas/node.json @@ -214,7 +214,8 @@ "type": [ "boolean", "null" - ] + ], + "default": null }, "authKey": { "anyOf": [ diff --git a/src/node.rs b/src/node.rs index 5f599fb..16fc2fa 100644 --- a/src/node.rs +++ b/src/node.rs @@ -40,6 +40,7 @@ enum NodeArch { #[serde(rename_all = "camelCase", deny_unknown_fields)] struct Tailscale { auth_key: Secret, + #[serde(default)] advertise_routes: bool, #[serde(default)] server: Option,