Skip to content

Commit 5a27333

Browse files
committed
linting errors fixed
1 parent c35ac74 commit 5a27333

File tree

3 files changed

+650
-503
lines changed

3 files changed

+650
-503
lines changed

.spectral.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# CAMARA Project - linting ruleset - documentation avaialable here:
22
# https://github.com/camaraproject/Commonalities/blob/main/documentation/Linting-rules.md
3-
# 31.01.2024 - initial version
3+
# Changelog:
4+
# - 31.01.2024: Initial version
5+
# - 19.03.2024: Corrected camara-http-methods rule
6+
47

58
extends: "spectral:oas"
69
functions:
@@ -108,7 +111,7 @@ rules:
108111
then:
109112
function: pattern
110113
functionOptions:
111-
match: "^(get|put|post|delete|patch|options)$"
114+
match: "^(get|put|post|delete|patch|options|parameters)$"
112115
recommended: true # Set to true/false to enable/disable this rule
113116

114117
camara-get-no-request-body:
@@ -156,7 +159,7 @@ rules:
156159
field: description
157160
function: truthy
158161
recommended: true # Set to true/false to enable/disable this rule
159-
162+
160163
camara-parameters-descriptions:
161164
message: "Parameter description is missing or empty: {{error}}"
162165
severity: warn
@@ -168,7 +171,7 @@ rules:
168171
field: description
169172
function: truthy
170173
recommended: true # Set to true/false to enable/disable this rule
171-
174+
172175
camara-response-descriptions:
173176
message: "Parameter description is missing or empty: {{error}}"
174177
severity: warn
@@ -193,7 +196,7 @@ rules:
193196
field: description
194197
function: truthy
195198
recommended: true # Set to true/false to enable/disable this rule
196-
199+
197200
camara-operation-summary:
198201
message: "Operation Summary Warning: Each operation should include a short summary for better understanding."
199202
severity: warn
@@ -255,4 +258,4 @@ rules:
255258
function: pattern
256259
functionOptions:
257260
match: "^\/([a-z0-9]+(-[a-z0-9]+)*)?(\/[a-z0-9]+(-[a-z0-9]+)*|\/{.+})*$" # doesn't allow /asasd{asdas}sadas pattern or not closed braces
258-
recommended: true # Set to true/false to enable/disable this rule
261+
recommended: true # Set to true/false to enable/disable this rule

0 commit comments

Comments
 (0)