Skip to content

Commit

Permalink
rulesets: add support for overridding all rule sensitivity on a rule
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed Sep 29, 2022
1 parent 1f91230 commit 6b07ead
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rulesets.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,11 @@ type RulesetRuleActionParametersHTTPHeader struct {
}

type RulesetRuleActionParametersOverrides struct {
Enabled *bool `json:"enabled,omitempty"`
Action string `json:"action,omitempty"`
Categories []RulesetRuleActionParametersCategories `json:"categories,omitempty"`
Rules []RulesetRuleActionParametersRules `json:"rules,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Action string `json:"action,omitempty"`
SensitivityLevel string `json:"sensitivity_level,omitempty"`
Categories []RulesetRuleActionParametersCategories `json:"categories,omitempty"`
Rules []RulesetRuleActionParametersRules `json:"rules,omitempty"`
}

type RulesetRuleActionParametersCategories struct {
Expand Down

0 comments on commit 6b07ead

Please sign in to comment.