You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a CLI tool that enables users to run an OAS (Open API Spec) file through the DevX ruleset before opening a pull request against [api-specs](https://github.com/Bandwidth/api-specs)
3
+
This is a CLI tool that enables users to run an OAS (Open API Spec) file through Bandwidth's custom [Stoplight ruleset](https://docs.stoplight.io/docs/spectral/e5b9616d6d50c-rulesets).
4
4
5
5
## Setup and Install
6
6
7
7
```sh
8
-
# if your npm profile isnt setup to download npm packages published to githubs npm registry - run these commands first
9
-
npm login --registry https://npm.pkg.github.com # Requires a github token with Bandwidth SSO access
10
-
npm config set @Bandwidth:registry https://npm.pkg.github.com
11
-
12
-
# note the uppercase `B`
13
-
npm install -g @Bandwidth/oas-linter-cli
8
+
npm install -g @bandwidth/oas-linter-cli
14
9
```
15
10
16
11
## Usage
17
12
18
13
```sh
19
-
bw-oas-lint -h # Help
20
-
bw-oas-lint lint ../path/to/my/spec.yml # must be in Yaml format
21
-
22
-
# add -s flag to save the terminal output to a .json file in your home directory
14
+
bw-oas-linter lint ../path/to/my/spec.yml # json also supported
23
15
```
24
16
25
-
## Uninstall
17
+
### Options
18
+
19
+
Run `bw-oas-linter lint -h` for a list of options.
20
+
21
+
| Flag | Description |
22
+
|:----:|:------------|
23
+
| -s | Save linter result to users home directory |
0 commit comments