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_]+})+$"