From 63a8279f472f7f83198036b4f03cd42cc776f69c Mon Sep 17 00:00:00 2001 From: Jens Reimann Date: Thu, 19 Sep 2024 15:38:08 +0200 Subject: [PATCH] chore: make those optional, and fix the test in the process --- src/config/models/hook.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config/models/hook.rs b/src/config/models/hook.rs index 2278ccc3..d912b6e6 100644 --- a/src/config/models/hook.rs +++ b/src/config/models/hook.rs @@ -61,8 +61,11 @@ impl Hook { #[derive(Clone, Debug, Default, PartialEq, Eq, Deserialize, Serialize, JsonSchema)] #[serde(rename_all = "snake_case")] pub struct HookOverrides { + #[serde(default, skip_serializing_if = "Option::is_none")] pub windows: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] pub macos: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] pub linux: Option, }