Skip to content

Commit

Permalink
Update .spectral-oas.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
VijayKesharwani authored Nov 1, 2023
1 parent 0db5f21 commit 31dbafb
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .spectral-oas.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
formats:
camelCase:
type: string
pattern: '^[a-z][a-zA-Z0-9]*$'

functions:
- camara-casing-convention
functionsDir: "./lint_function"
rules:
camara-operationId-casing-convention:
camara-casing-convention:
message: "{{error}}"
severity: hint
description: OperationId should be in camelCase
description: |
This rule checks Operation ids should follow a specific case convention: camel case.
given: "$.paths.*.*.operationId"
then:
field: operationId
function: pattern
functionOptions:
format: camelCase
function: camara-casing-convention

0 comments on commit 31dbafb

Please sign in to comment.