From 1ea8451dadccd5debbc973dbc74b2771abb69642 Mon Sep 17 00:00:00 2001 From: VijayKesharwani <122533719+VijayKesharwani@users.noreply.github.com> Date: Mon, 6 Nov 2023 13:48:23 +0530 Subject: [PATCH] Update .spectral-oas.yml --- .spectral-oas.yml | 34 ++++++---------------------------- 1 file changed, 6 insertions(+), 28 deletions(-) diff --git a/.spectral-oas.yml b/.spectral-oas.yml index ef0de866eb..0747ac623c 100644 --- a/.spectral-oas.yml +++ b/.spectral-oas.yml @@ -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