mirror of
https://github.com/adidas/api-guidelines.git
synced 2025-10-25 15:19:19 +00:00
Update the ruleset file location/usage
Put it as referenced in the linting example
This commit is contained in:
@@ -50,12 +50,10 @@ Spectral can also be used from within JavaScript. For details on how to accompli
|
|||||||
|
|
||||||
## Validating with Adidas API Guidelines
|
## Validating with Adidas API Guidelines
|
||||||
|
|
||||||
To check whether your API Specification complies with Adidas API Guidelines copy the `.spectral` file from this repository ([here](https://github.com/adidas/api-guidelines/blob/master/.spectral.yml)).
|
To check whether your API Specification complies with Adidas API Guidelines you will need the `.spectral.yaml` file from this repository ([here](https://github.com/adidas/api-guidelines/blob/master/.spectral.yml)).
|
||||||
|
|
||||||
Once it is in the same directory as the one from which you are calling spectral it will be used automatically.
|
|
||||||
|
|
||||||
```
|
```
|
||||||
spectral lint <oas-file>
|
spectral lint <oas-file> -r path/.spectral.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
### Validation problems
|
### Validation problems
|
||||||
|
|||||||
Reference in New Issue
Block a user