From 2131e191c644bfc812a18ad799cd5aa068a32a50 Mon Sep 17 00:00:00 2001 From: VijayKesharwani <122533719+VijayKesharwani@users.noreply.github.com> Date: Mon, 6 Nov 2023 18:00:31 +0530 Subject: [PATCH] Update .spectral-oas.yml --- .spectral-oas.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.spectral-oas.yml b/.spectral-oas.yml index 0747ac623c..1ee1163813 100644 --- a/.spectral-oas.yml +++ b/.spectral-oas.yml @@ -1,5 +1,5 @@ rules: - camel-case-name: + camara-operationid-casing-convention: message: Operation Id must be in Camel case "{{error}}" severity: hint description: | @@ -9,3 +9,13 @@ rules: function: casing functionOptions: type: camel + camara-parameter-casing-convention: + message: Path URI must be in Kebab case "{{error}}" + severity: hint + description: | + This rule checks Operation ids should follow a specific case convention: kebab case. + given: "$.paths" + then: + function: casing + functionOptions: + type: kebab