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 765da64 commit 63180e3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .spectral-oas.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
functions:
- camara-language-spelling
- camara-language-avoid-telco
- camara-casing-convention
functionsDir: "./lint_function"
rules:
camara-language-spelling:
message: "{{error}}"
severity: warn
given:
- "$.info.title"
- "$.info.summary"
- "$.info.description"
- "$.paths.*.*.parameters[?(@.in==='query' || @.in==='path' || @.in==='cookie')].description"
- "$..properties.*.description"
then:
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: camara-language-avoid-telco
camara-casing-convention:
message: "{{error}}"
severity: hint
Expand Down

0 comments on commit 63180e3

Please sign in to comment.