Skip to content

Commit

Permalink
tweak: flatten sigma output in json format
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkornitzer committed Jul 5, 2022
1 parent 3cbc160 commit bfae57f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ pub struct Detection<'a> {
pub source: RuleKind,
pub status: &'a Status,

#[serde(skip_serializing_if = "Option::is_none")]
#[serde(flatten, skip_serializing_if = "Option::is_none")]
pub sigma: Option<Sigma<'a>>,
}

Expand Down

0 comments on commit bfae57f

Please sign in to comment.