Skip to content

Commit

Permalink
Update .spectral-oas.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
VijayKesharwani authored Nov 20, 2023
1 parent fc47047 commit c11bc34
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .spectral-oas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,12 @@ rules:
function: pattern
functionOptions:
match: 3.0.3
camara-path-param-id:
message: Path parameter names should be "resource_id", not just "id"
severity: warn
given: "$..parameters[?(@.in == 'path')]"
then:
field: name
function: pattern
functionOptions:
notMatch: \b(id|Id|ID|iD)\b

0 comments on commit c11bc34

Please sign in to comment.