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 Oct 31, 2023
1 parent e57cf9b commit c1befcb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .spectral-oas.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
functions:
- check-spelling-code
- check-telco-specific-terms
- camara-language-spelling
- camara-language-avoid-telco
functionsDir: "./lint_function"
rules:
check-spelling-code:
camara-language-spelling:
message: "{{error}}"
severity: warn
given:
Expand All @@ -13,12 +13,12 @@ rules:
- "$.paths.*.*.parameters[?(@.in==='query' || @.in==='path' || @.in==='cookie')].description"
- "$..properties.*.description"
then:
function: check-spelling-code
check-telco-specific-terms:
function: camara-language-spelling
camara-language-avoid-telco:
message: "{{error}}"
severity: hint
description: |
This rule checks for telco-specific terminology in your API definitions and suggests more inclusive terms.
given: "$..*.*"
then:
function: check-telco-specific-terms
function: camara-language-avoid-telco

0 comments on commit c1befcb

Please sign in to comment.