From c1befcb46877b0b890bf2920dffa330b98aae003 Mon Sep 17 00:00:00 2001 From: VijayKesharwani <122533719+VijayKesharwani@users.noreply.github.com> Date: Tue, 31 Oct 2023 13:13:31 +0530 Subject: [PATCH] Update .spectral-oas.yml --- .spectral-oas.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.spectral-oas.yml b/.spectral-oas.yml index dfe647507d..4ac215de9f 100644 --- a/.spectral-oas.yml +++ b/.spectral-oas.yml @@ -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: @@ -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