Skip to content

Commit

Permalink
Update .spectral-oas.yml for casing convention
Browse files Browse the repository at this point in the history
  • Loading branch information
VijayKesharwani authored Oct 31, 2023
1 parent 6128afb commit 481b0ec
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
@@ -1,6 +1,7 @@
functions:
- camara-language-spelling
- camara-language-avoid-telco
- camara-casing-convention
functionsDir: "./lint_function"
rules:
camara-language-spelling:
Expand All @@ -22,3 +23,11 @@ rules:
given: "$..*.*"
then:
function: camara-language-avoid-telco
camara-casing-convention:
message: "{{error}}"
severity: hint
description: |
This rule checks for telco-specific terminology in your API definitions and suggests more inclusive terms.
given: "$..operationId"
then:
function: camara-casing-convention

0 comments on commit 481b0ec

Please sign in to comment.