Skip to content

Commit 2e6586b

Browse files
authored
update to dropshot 72583242d80b88561602a37013595e9f75f4f394 (#536)
1 parent 082664f commit 2e6586b

File tree

3 files changed

+39
-5
lines changed

3 files changed

+39
-5
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: validate-openapi-spec
2+
on:
3+
pull_request:
4+
paths:
5+
- .github/workflows/validate-openapi-spec.yml
6+
- openapi/*
7+
workflow_dispatch:
8+
inputs:
9+
jobs:
10+
format:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: '14'
17+
- name: Install our tools
18+
shell: bash
19+
run: |
20+
npm install -g @apidevtools/swagger-cli
21+
- name: Run validation
22+
shell: bash
23+
run: |
24+
for spec in openapi/*.json; do
25+
swagger-cli validate $spec || exit
26+
done

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/nexus.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,21 @@
187187
},
188188
"required": true
189189
},
190-
"responses": {}
190+
"responses": {
191+
"default": {
192+
"description": ""
193+
}
194+
}
191195
}
192196
},
193197
"/logout": {
194198
"post": {
195199
"operationId": "logout",
196-
"responses": {}
200+
"responses": {
201+
"default": {
202+
"description": ""
203+
}
204+
}
197205
}
198206
},
199207
"/organizations": {

0 commit comments

Comments
 (0)