From 481b0ecc6115c629f1021e01baa49ed87d50a555 Mon Sep 17 00:00:00 2001 From: VijayKesharwani <122533719+VijayKesharwani@users.noreply.github.com> Date: Tue, 31 Oct 2023 14:33:33 +0530 Subject: [PATCH] Update .spectral-oas.yml for casing convention --- .spectral-oas.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.spectral-oas.yml b/.spectral-oas.yml index 4ac215de9f..86dc089e69 100644 --- a/.spectral-oas.yml +++ b/.spectral-oas.yml @@ -1,6 +1,7 @@ functions: - camara-language-spelling - camara-language-avoid-telco + - camara-casing-convention functionsDir: "./lint_function" rules: camara-language-spelling: @@ -22,3 +23,11 @@ rules: given: "$..*.*" then: function: camara-language-avoid-telco + camara-casing-convention: + message: "{{error}}" + severity: hint + description: | + This rule checks for telco-specific terminology in your API definitions and suggests more inclusive terms. + given: "$..operationId" + then: + function: camara-casing-convention