Skip to content

Commit

Permalink
docs: code example
Browse files Browse the repository at this point in the history
Co-authored-by: nulltoken <emeric.fermas@gmail.com>
  • Loading branch information
P0lip and nulltoken committed Jun 23, 2020
1 parent 194e48f commit b166c92
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/getting-started/rulesets.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,11 @@ Whatever you link you provide, the rule name will be appended as an anchor.

Given the following `documentationUrl` [`https://stoplight.io/p/docs/gh/stoplightio/spectral/docs/reference/openapi-rules.md`](https://stoplight.io/p/docs/gh/stoplightio/spectral/docs/reference/openapi-rules.md), an example URL for `info-contact` rule would look as follows [`https://stoplight.io/p/docs/gh/stoplightio/spectral/docs/reference/openapi-rules.md#info-contact`](https://stoplight.io/p/docs/gh/stoplightio/spectral/docs/reference/openapi-rules.md#info-contact).

```yaml
documentationUrl: https://www.example.com/docs/api-ruleset.md

rules:
# ...
```

If no `documentationUrl` is provided, no links will show up, and users will just have to rely on the error messages to figure out how the errors can be fixed.

0 comments on commit b166c92

Please sign in to comment.