forked from camaraproject/QualityOnDemand
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
966cedf
commit 1ea8451
Showing
1 changed file
with
6 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,11 @@ | ||
functions: | ||
- camara-language-spelling | ||
- camara-language-avoid-telco | ||
- camara-operationId-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-operationId-casing-convention: | ||
message: "{{error}}" | ||
camel-case-name: | ||
message: Operation Id must be in Camel case "{{error}}" | ||
severity: hint | ||
description: | | ||
This rule checks Operation ids should follow a specific case convention: camel case. | ||
This rule checks Operation ids should follow a specific case convention: camel case. | ||
given: "$.paths.*.*.operationId" | ||
then: | ||
function: camara-operationId-casing-convention | ||
function: casing | ||
functionOptions: | ||
type: camel |