Skip to content

Commit 540bcca

Browse files
authored
Update linter to redocly (#64)
1 parent d246d57 commit 540bcca

File tree

4 files changed

+11
-46
lines changed

4 files changed

+11
-46
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ jobs:
1111
with:
1212
submodules: true
1313
- uses: actions/setup-node@v2
14-
- run: npm i -g @apidevtools/swagger-cli@4 @stoplight/[email protected]
15-
- run: spectral --version
14+
- run: npm i -g @apidevtools/swagger-cli@4 @redocly/[email protected]
1615

1716
- name: Lint spec
18-
run: spectral lint ./builder-oapi.yaml
17+
run: redocly lint ./builder-oapi.yaml
1918

2019
- name: Bundle spec
2120
run: "swagger-cli bundle ./builder-oapi.yaml -r -t yaml -o ./deploy/builder-oapi.yaml"

.redocly.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
extends:
2+
- recommended
3+
rules:
4+
no-unused-components: error
5+
operation-4xx-response: off
6+
operation-tag-defined: error
7+
security-defined: off

.spectral.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ The API specification is checked for lint errors before merging pull requests.
4848

4949
To run the linter locally, install it with:
5050
```console
51-
npm install -g @stoplight/spectral-cli@6.2.1
51+
npm install -g @redocly/cli
5252
```
5353
and then run it:
5454
```console
55-
spectral lint builder-oapi.yaml
55+
redocly lint builder-oapi.yaml
5656
```
5757

5858
### Render API Specification

0 commit comments

Comments
 (0)