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 1, 2023
1 parent c7e6f9d commit 8037d0f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .spectral-oas.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
functions:
- camara-language-spelling
- camara-language-avoid-telco
- camara-casing-convention
- camara-operationId-casing-convention
functionsDir: "./lint_function"
rules:
camara-language-spelling:
Expand All @@ -23,12 +23,11 @@ rules:
given: "$..*.*"
then:
function: camara-language-avoid-telco
camara-casing-convention:
camara-operationId-casing-convention:
message: "{{error}}"
severity: hint
description: |
This rule checks Operation ids should follow a specific case convention: camel case.
given:
- "$.paths.*.*.operationId || .paths.*.*.callback.*.*.*.operationId"
given: "$.paths.*.*.operationId"
then:
function: camara-casing-convention
function: camara-operationId-casing-convention

0 comments on commit 8037d0f

Please sign in to comment.