Skip to content

Commit

Permalink
docs(repo): clarify how to version pin rulesets
Browse files Browse the repository at this point in the history
As noted in stoplightio#2022, the version pinning can only be done using
`package.json`s, not the `extends` rule.
  • Loading branch information
jamietanna committed Jan 26, 2022
1 parent 8717691 commit f800622
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/guides/7-sharing-rulesets.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,14 @@ extends:
- example-spectral-ruleset
```
Pegging a ruleset on given version is possible:
Pegging a ruleset on given version is possible through a `package.json`:

```yaml
extends:
- "example-spectral-ruleset@0.2.0"
```json
{
"dependencies": {
"example-spectral-ruleset": "0.2.0"
}
}
```

## Filesystem
Expand Down

0 comments on commit f800622

Please sign in to comment.