Skip to content

Commit

Permalink
chore: make those optional, and fix the test in the process
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Sep 19, 2024
1 parent 2446382 commit 63a8279
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config/models/hook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<HookOverride>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub macos: Option<HookOverride>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub linux: Option<HookOverride>,
}

Expand Down

0 comments on commit 63a8279

Please sign in to comment.