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 7, 2023
1 parent fd52947 commit f4cb300
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .spectral-oas.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
functions:
- camara-language-spelling
- camara-language-avoid-telco
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-operationid-casing-convention:
message: Operation Id must be in Camel case "{{error}}"
severity: hint
Expand Down

0 comments on commit f4cb300

Please sign in to comment.