-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: re-enable all OAS linter rules
The OAS linter has been fixed (aep-dev/aep-openapi-linter#9), so re-enabling all linter rules.
- Loading branch information
1 parent
808c737
commit 6638075
Showing
3 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
if [ ! -f /tmp/spectral ]; then | ||
curl "https://github.com/stoplightio/spectral/releases/download/v6.14.2/spectral-linux-x64" -o /tmp/spectral | ||
curl -L "https://github.com/stoplightio/spectral/releases/download/v6.14.2/spectral-linux-x64" -o /tmp/spectral | ||
chmod +x /tmp/spectral | ||
fi | ||
|
||
/tmp/spectral lint --ruleset "./spectral.yaml" "./example/bookstore/v1/bookstore_openapi.yaml" | ||
exec /tmp/spectral lint --ruleset "./spectral.yaml" "./example/bookstore/v1/bookstore_openapi.yaml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
extends: | ||
- https://raw.githubusercontent.com/aep-dev/aep-openapi-linter/refs/heads/js-based-linter/spectral.yaml | ||
rules: | ||
# disabling for now, as required path parameters (which are acceptable) | ||
# will violate this rule. | ||
aep-132-request-required-params: off | ||
- https://raw.githubusercontent.com/aep-dev/aep-openapi-linter/acd68f74286e5af3b1244f58c70572ae0967e201/spectral.yaml | ||
rules: {} |