From 2c570151cd25c4b04bc4e4d80ea36adf1783942f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Vall=C3=A9s?= Date: Wed, 3 Jan 2024 14:03:26 +0100 Subject: [PATCH] fix: validate OpenAPI against readme.io validator --- .github/workflows/buf-gen-openapi.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/buf-gen-openapi.yaml b/.github/workflows/buf-gen-openapi.yaml index fb5513f0..4e2c139c 100644 --- a/.github/workflows/buf-gen-openapi.yaml +++ b/.github/workflows/buf-gen-openapi.yaml @@ -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