Skip to content

Commit

Permalink
Improve az-patch-path rule
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekistler committed Jun 18, 2024
1 parent ec45477 commit a878830
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spectral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -429,11 +429,10 @@ rules:
description: Patch on a path that does not end with a path parameter is uncommon.
severity: info
formats: ['oas2', 'oas3']
given: $.paths[*].patch^~
given: $.paths[?([email protected](/\}']$/))]
then:
function: pattern
functionOptions:
match: '/\}$/'
field: patch
function: falsy

# Static path segments should be kebab-case
az-path-case-convention:
Expand Down

0 comments on commit a878830

Please sign in to comment.