Skip to content

Commit

Permalink
Merge branch 'main' into yft/proto
Browse files Browse the repository at this point in the history
  • Loading branch information
toumorokoshi authored Dec 11, 2024
2 parents 209bd61 + 70910ed commit b893923
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ jobs:
- 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 b893923

Please sign in to comment.