From 66f6a5619db10ec137109bef4a0aeb1d519b1190 Mon Sep 17 00:00:00 2001 From: VijayKesharwani <122533719+VijayKesharwani@users.noreply.github.com> Date: Mon, 6 Nov 2023 18:13:50 +0530 Subject: [PATCH] Update .spectral-oas.yml --- .spectral-oas.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.spectral-oas.yml b/.spectral-oas.yml index 1ee1163813..a192ad9f2d 100644 --- a/.spectral-oas.yml +++ b/.spectral-oas.yml @@ -10,12 +10,11 @@ rules: 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" + description: Paths should be kebab-case. + message: "{{property}} should be kebab-case (lower-case and separated with hyphens)" + severity: warn + given: $.paths[*]~ then: - function: casing + function: pattern functionOptions: - type: kebab + match: "^(\/|[a-z0-9-.]+|{[a-zA-Z0-9_]+})+$"