Allow handlers to return user-defined error types #160
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: validate-openapi-spec | |
on: | |
pull_request: | |
paths: | |
- .github/workflows/validate-openapi-spec.yml | |
- dropshot/tests/test_openapi.json | |
- dropshot/tests/test_openapi_fuller.json | |
workflow_dispatch: | |
inputs: | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '14' | |
- name: Install our tools | |
shell: bash | |
run: | | |
npm install -g @apidevtools/swagger-cli | |
- name: Run validation | |
shell: bash | |
run: | | |
swagger-cli validate dropshot/tests/test_openapi.json && | |
swagger-cli validate dropshot/tests/test_openapi_fuller.json | |