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 20, 2023
1 parent c11bc34 commit a737102
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .spectral-oas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,26 @@ rules:
function: pattern
functionOptions:
notMatch: \b(id|Id|ID|iD)\b
camara-parameters-descriptions:
description: This spectral rules check for the description of each parameter
message: Parameter must have description "{{error}}"
severity: hint
given:
- "$.components.*.*"
- "$.components.*.*.properties.*"
then:
field: description
function: truthy
camara-operation-summary:
message: Summary must be defined on each operation, describing with a short summary what the operation does.
severity: warn
given:
- "$.paths.*.post"
- "$.paths.*.get"
- "$.paths.*.delete"
- "$.paths.*.put"
- "$.paths.*.gatch"
- "$.paths.*.options"
then:
field: summary
function: truthy

0 comments on commit a737102

Please sign in to comment.