Skip to content
Snippets Groups Projects
Commit f3d0bd13 authored by Fabian Sudau's avatar Fabian Sudau
Browse files

chore: Include two additional spectral rules (planning#213)

parent 0d5b9128
No related branches found
No related tags found
1 merge request!36chore: Include two additional spectral rules (planning#213)
...@@ -20,3 +20,22 @@ rules: ...@@ -20,3 +20,22 @@ rules:
# HTTP Status 429 (rate limiting) is handeled via reverse proxy # HTTP Status 429 (rate limiting) is handeled via reverse proxy
use-problem-json-for-errors: off use-problem-json-for-errors: off
path-parameters-camelcase:
given: $..parameters[?(@.in == 'path')].name
then:
function: casing
functionOptions:
type: camel
disallowDigits: true
message: Path parameters should be camelCase and not contain digits
severity: error
query-parameters-camelcase:
given: $..parameters[?(@.in == 'query')].name
then:
function: casing
functionOptions:
type: camel
disallowDigits: true
message: Query parameters should be camelCase and not contain digits
severity: error
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment