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,