Skip to content

[nexus] Support Bundle API Skeleton #4160

[nexus] Support Bundle API Skeleton

[nexus] Support Bundle API Skeleton #4160

name: validate-openapi-spec
on:
pull_request:
paths:
- .github/workflows/validate-openapi-spec.yml
- openapi/*
workflow_dispatch:
inputs:
jobs:
format:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
ref: ${{ github.event.pull_request.head.sha }} # see omicron#4461
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: '18'
- name: Install our tools
shell: bash
run: |
npm install -g @apidevtools/swagger-cli
- name: Run validation
shell: bash
run: |
for spec in openapi/*.json; do
swagger-cli validate $spec || exit
done