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 6, 2023
1 parent 87b23ac commit 66f6a56
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .spectral-oas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ rules:
functionOptions:
type: camel
camara-parameter-casing-convention:
message: Path URI must be in Kebab case "{{error}}"
severity: hint
description: |
This rule checks Operation ids should follow a specific case convention: kebab case.
given: "$.paths"
description: Paths should be kebab-case.
message: "{{property}} should be kebab-case (lower-case and separated with hyphens)"
severity: warn
given: $.paths[*]~
then:
function: casing
function: pattern
functionOptions:
type: kebab
match: "^(\/|[a-z0-9-.]+|{[a-zA-Z0-9_]+})+$"

0 comments on commit 66f6a56

Please sign in to comment.