Skip to content

Commit

Permalink
documentation and rules are now aligned.
Browse files Browse the repository at this point in the history
The only way to validate this stuff was to build the doctor and stick it all through an API. Now everything is matched up correctly.
  • Loading branch information
daveshanley committed Apr 7, 2024
1 parent 5f0bbef commit 6f48501
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rulesets/owasp_ruleset_functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ func GetOWASPNoAdditionalPropertiesRule() *model.Rule {
Given: `$`,
Resolved: false,
Formats: append(model.OAS2Format, model.OAS3Format...),
RuleCategory: model.RuleCategories[model.CategoryInfo],
RuleCategory: model.RuleCategories[model.CategoryOWASP],
Recommended: true,
Type: Validation,
Severity: model.SeverityWarn,
Expand Down
4 changes: 2 additions & 2 deletions rulesets/rulesets.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ const (
Oas2APISchemes = "oas2-api-schemes"
Oas2Discriminator = "oas2-discriminator"
Oas2HostNotExample = "oas2-host-not-example"
Oas3HostNotExample = "oas3-host-not-example.com"
Oas3HostNotExample = "oas3-host-not-example"
Oas2HostTrailingSlash = "oas2-host-trailing-slash"
Oas3HostTrailingSlash = "oas3-host-trailing-slash"
Oas3HostTrailingSlash = "oas3-server-trailing-slash"
Oas2ParameterDescription = "oas2-parameter-description"
Oas3ParameterDescription = "oas3-parameter-description"
Oas3OperationSecurityDefined = "oas3-operation-security-defined"
Expand Down

0 comments on commit 6f48501

Please sign in to comment.