Update ruleset file location flag

This commit is contained in:
Andrzej
2019-12-03 10:17:25 +01:00
committed by GitHub
parent 2d5e4fa374
commit b45ab13c02

View File

@@ -55,7 +55,7 @@ npm install -g @stoplight/spectral
yarn global add @stoplight/spectral
```
Once installed, to verify your OAS file with spectral execute `spectral lint <oas-file>` having the `.spectral.yaml` file inside the directory from which you are calling the command.
Once installed, to verify your OAS file with spectral execute `spectral lint <oas-file> -r path/.spectral.yaml` where `path/.spectral.yaml` indicated the location `.spectral.yaml` file.
For further documentation on Spectral refer to their [documentation](https://stoplight.io/p/docs/gh/stoplightio/spectral/README.md).