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 15, 2023
1 parent 8c81377 commit bd4acb8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .spectral-oas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ rules:
given: "$..*.*"
then:
function: camara-language-avoid-telco
camara-operationId-casing-convention:
message: "{{error}}"
camara-operationid-casing-convention:
message: Operation Id must be in Camel case "{{error}}"
severity: hint
description: |
This rule checks Operation ids should follow a specific case convention: camel case.
This rule checks Operation ids should follow a specific case convention: camel case.
given: "$.paths.*.*.operationId"
then:
function: camara-operationId-casing-convention
function: casing
functionOptions:
type: camel
camara-parameter-casing-convention:
description: Paths should be kebab-case.
message: "{{property}} should be kebab-case (lower-case and separated with hyphens)"
Expand Down

0 comments on commit bd4acb8

Please sign in to comment.