Use Redocly CLI to validate OpenAPI definitions (#1558)
This commit is contained in:
parent
f4aa7c0327
commit
3c5355a278
6 changed files with 12 additions and 434 deletions
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
|
@ -23,16 +23,9 @@ jobs:
|
|||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14'
|
||||
- name: "⚙️ npm"
|
||||
working-directory: "./scripts"
|
||||
run: |
|
||||
npm install
|
||||
- name: "🔎 Run validator"
|
||||
working-directory: "./scripts"
|
||||
run: |
|
||||
node validator.js -s "../data/api/application-service"
|
||||
node validator.js -s "../data/api/client-server"
|
||||
node validator.js -s "../data/api/push-gateway"
|
||||
npx @redocly/cli@latest lint data/api/*/*.yaml
|
||||
|
||||
check-examples:
|
||||
name: "🔎 Check Event schema examples"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue