Skip to content

Commit

Permalink
Cleaned up readme and error
Browse files Browse the repository at this point in the history
Signed-off-by: quobix <[email protected]>
  • Loading branch information
daveshanley committed Jan 5, 2024
1 parent f641668 commit cfd43ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,13 @@ come say hi!

## Documentation

🔥 **New in** `v0.6+` 🔥 : **Sharable / distributed rulesets** now available.
🔥 **New in** `v0.7+` 🔥 : **Hard Mode**.

Want to lint your spec with the most strict ruleset possible? Now you can! Use the `-z` / `--hard-mode` flag to enable

---

`v0.6+` : **Sharable / distributed rulesets** now available.

Want to share / extend / distribute your own rulesets? Now you can!

Expand Down
4 changes: 2 additions & 2 deletions rulesets/owasp_ruleset_functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func GetOWASPRateLimitRetryAfterRule() *model.Rule {
return &model.Rule{
Name: "A `429` response should define a `Retry-After` header",
Id: OwaspRateLimitRetryAfter,
Description: "Ensure that any `429` response, contains a `Retry-After` header. ",
Description: "Ensure that any `429` response, contains a `Retry-After` header.",
Given: `$`,
Resolved: true,
Formats: model.OAS3AllFormat,
Expand Down Expand Up @@ -348,7 +348,7 @@ func GetOWASPDefineErrorResponses429Rule() *model.Rule {
func GetOWASPArrayLimitRule() *model.Rule {
return &model.Rule{
Name: "Schema of type array must specify maxItems",
Id: OwaspDefineErrorResponses429,
Id: OwaspArrayLimit,
Description: "Array size should be limited to mitigate resource exhaustion attacks.",
Given: `$`,
Resolved: false,
Expand Down

0 comments on commit cfd43ea

Please sign in to comment.