Skip to content

Commit 63a8279

Browse files
committed
chore: make those optional, and fix the test in the process
1 parent 2446382 commit 63a8279

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/config/models/hook.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ impl Hook {
6161
#[derive(Clone, Debug, Default, PartialEq, Eq, Deserialize, Serialize, JsonSchema)]
6262
#[serde(rename_all = "snake_case")]
6363
pub struct HookOverrides {
64+
#[serde(default, skip_serializing_if = "Option::is_none")]
6465
pub windows: Option<HookOverride>,
66+
#[serde(default, skip_serializing_if = "Option::is_none")]
6567
pub macos: Option<HookOverride>,
68+
#[serde(default, skip_serializing_if = "Option::is_none")]
6669
pub linux: Option<HookOverride>,
6770
}
6871

0 commit comments

Comments
 (0)