Skip to content

Commit fd579e2

Browse files
authored
Add Qiita API v2 openapi.yml (#1)
1 parent 52b264a commit fd579e2

File tree

3 files changed

+1352
-0
lines changed

3 files changed

+1352
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: openapi-yaml-lint
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- openapi.yml
7+
- .github/workflows/openapi_yaml_lint.yml
8+
9+
push:
10+
branches:
11+
- develop
12+
paths:
13+
- openapi.yml
14+
15+
jobs:
16+
spectral_lint:
17+
name: Run Spectral
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- uses: stoplightio/spectral-action@latest
23+
with:
24+
file_glob: "openapi.yml"

.spectral.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
extends: ["spectral:oas"]
2+
overrides:
3+
- files:
4+
- "openapi.yml"
5+
rules:
6+
oas3-unused-component: off

0 commit comments

Comments
 (0)