Skip to content

Commit

Permalink
fix(openapi): replace swagger-cli with redocly (#165)
Browse files Browse the repository at this point in the history
* fix(openapi): replace swagger-cli with redocly

* fix(openapi): done message:

* removing openapi check to test if its the problem

* retesting with check enabled

* pinning redocly version

* pinning redocly and restoring the validate step

* redocly cli lint does the validation

* pinning redocly version in package.json

* stupid typo

* another typo omg its friday

* why is not running redocly 1.0.2

* chore: remove empty line

Co-authored-by: Jordi Roig <[email protected]>

* chore: remove print version

* chore: remove empty line

---------

Co-authored-by: David Salvador Astals <[email protected]>
Co-authored-by: Jordi Roig <[email protected]>
  • Loading branch information
3 people authored Sep 18, 2023
1 parent d43c454 commit ec83401
Show file tree
Hide file tree
Showing 3 changed files with 956 additions and 16 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@actions/glob": "^0.4.0",
"@octokit/types": "^6.19.1",
"@octokit/webhooks": "^9.13.0",
"@redocly/cli": "1.0.2",
"comment-json": "^4.2.3",
"csv-reader": "^1.0.8",
"ignore": "^5.2.4"
Expand Down
6 changes: 1 addition & 5 deletions scripts/validate-openapi/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ EOF
IFS=$'\n' files=($(find . -maxdepth 3 -name openapi.yaml))

for f in ${files[@]}; do
npx @apidevtools/swagger-cli validate "$f"
done

for f in ${files[@]}; do
npx @redocly/cli lint "$f"
npx @redocly/cli lint --extends=minimal "$f"
done

npx @redocly/cli bundle --dereferenced --ext json --output openapi.json $(echo ${files})
Loading

0 comments on commit ec83401

Please sign in to comment.