Skip to content

Commit

Permalink
chore: re-enable all OAS linter rules (#54)
Browse files Browse the repository at this point in the history
The OAS linter has been fixed (aep-dev/aep-openapi-linter#9),
so re-enabling all linter rules.
  • Loading branch information
toumorokoshi authored Dec 11, 2024
1 parent 808c737 commit 70910ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
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: {}

0 comments on commit 70910ed

Please sign in to comment.