Skip to content

Commit

Permalink
Update .spectral.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
VijayKesharwani authored Mar 21, 2024
1 parent 6f5b705 commit 2f614b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .spectral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ rules:
given: "$.paths[*][*]"
then:
- where:
- has: [post, get, delete, put, patch, options]
- anyOf:
- equals: ["get", "put", "post", "delete", "patch", "options"]
exists: true
errorUnless:
- allOf:
- pattern: "^(get|put|post|delete|patch|options)$"
Expand Down

0 comments on commit 2f614b4

Please sign in to comment.