-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
documentationUrl causes #235
Comments
Is the error still happening for you? I'm working on adding support for documentationUrl (i.e. "click on error'scode to open the documentation site"), and I did not encoutered any runtime bug. |
Open
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When adding
documentationUrl
to the custom spectral ruleset file, the extension breaks with error, although documentationUrl is a valid supported configuration according to https://docs.stoplight.io/docs/spectral/e5b9616d6d50c-rulesets#documentation-urlTo Reproduce
Enable the extension with the following
.spectral.yaml
:You should see the error in the Spectral OUTPUT log.
Now remove the
documentationUrl
and the error is gone.Expected behavior
When
documentationUrl
is set in a rule, the extension should not break, and when hovering over a warning or an error with a documentationUrl link, it should provide a clickable link to the URL defined in the .spectral.yaml file.Screenshots
.spectral.yaml with
documentationUrl
(note that theopenapi.json
is not red - this is cause the extension broke):Same .spectral.yaml without it (note that the extension output is fine, and the openapi.json file is red):
Environment:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: