Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: re-enable all OAS linter rules #54

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
run: |
./scripts/run-oas-linter.sh
# currently disabled due to api-linter bugs:
# - https://github.com/aep-dev/api-linter/milestone/1
# - name: run protobuf api-linter
# run: |
# ./scripts/run-api-linter.sh
4 changes: 2 additions & 2 deletions scripts/run-oas-linter.sh
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"
7 changes: 2 additions & 5 deletions spectral.yaml
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: {}
Loading