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 7ec3133 commit c7ca0ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .spectral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ rules:
match: "^(get|put|post|delete|patch|options)$"
recommended: true # Set to true/false to enable/disable this rule

camara-http-methods-new:
camara-httpnew-methods-new:
description: "Ensure that all path URLs have valid HTTP methods (GET, PUT, POST, DELETE, PATCH, OPTIONS)."
message: "Invalid HTTP method for '{{path}}'. Must be one of get, put, post, delete, patch, options."
severity: error
given: "$.paths[*][?(property != 'parameters')]" # Exclude checking parameters
given: $.paths[*][?(property != 'parameters')]
then:
function: pattern
functionOptions:
Expand Down

0 comments on commit c7ca0ea

Please sign in to comment.