Skip to content

Commit

Permalink
fix: validate OpenAPI against readme.io validator
Browse files Browse the repository at this point in the history
  • Loading branch information
jvallesm committed Jan 3, 2024
1 parent 4d0f781 commit 2c57015
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/buf-gen-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ jobs:
- name: Generate OpenAPI definitions
run: |
buf generate
- name: Lint generated OpenAPI definitions
uses: mhiew/redoc-lint-github-action@v3
uses: vaibhav-jain/spectral-action/@v2.6
with:
# Named path parameters (e.g. `/admin/{pipeline.permalink}/lookUp`)
# cause linter errors despite being unambiguously resolved.
args: openapiv2/openapiv2.swagger.yaml --skip-rule=no-ambiguous-paths --skip-rule=no-identical-paths
args: openapiv2/openapiv2.swagger.yaml
- name: Commit and push
run: |
if [[ `git status --porcelain` ]]; then
Expand Down

0 comments on commit 2c57015

Please sign in to comment.