Skip to content

Commit 005eb35

Browse files
authored
Merge pull request #35 from redhat-developer/false-positive-api
fix: remove false positive from the ruleset
2 parents 1cc57ff + a8cecd5 commit 005eb35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spectral/ruleset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ rules:
5656
then:
5757
function: pattern
5858
functionOptions:
59-
match: "\/api\/([a-z_]*){1,}(\/v[0-9]*(alpha|beta)?)(\/{?[a-z_]*}?){0,}$"
59+
match: "\/api\/v.*\/.*$"
6060
rhoas-response-media-type:
6161
given: "$.paths.*.*.responses.*.content"
6262
description: application/json is the only acceptable content type

0 commit comments

Comments
 (0)