Skip to content

Commit

Permalink
fix: bump redocly/cli (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
xespona authored Apr 18, 2024
1 parent 6245752 commit 5bc3d40
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/validate-openapi/run.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ extends:
rules:
operation-4xx-response: off
security-defined: warn
no-identical-paths: warn
operation-parameters-unique: warn
EOF

# Limiting the depth limits the risk of (irrelevant) `openapi.yaml` files being found in eg. `_gomodcache` or `node_modules`
IFS=$'\n' files=($(find . -maxdepth 3 -name openapi.yaml))

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

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

0 comments on commit 5bc3d40

Please sign in to comment.