Skip to content
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

During API Specification Design time, Spectral Rules are not showing up under problems in IDEs/JetRider #122

Open
iamrajivgithub opened this issue Jan 18, 2024 · 2 comments

Comments

@iamrajivgithub
Copy link

iamrajivgithub commented Jan 18, 2024

Hi ,
Greetings for today.

I am trying to use spectral plugin in IntelliJ IDE and also in JetRider. I added the plugin though the market place.
I have added the spectral rule set ( with fully qualified path).
image

and within the .spectral.yaml file, I have ruleset defined in gitlab.

image

main openapi.yaml has other reference yaml files under examples, headers, models, parameters, responses. and referred in openapi.yaml.

I would expect that once spectral plugin setting is done, all linting error should come under problems on API specification typing/save. but it does not come. Is there something else needed to view the linting errors. This problem is same in Intellij and JetRider.

Thanks for your response.

@iamrajivgithub iamrajivgithub changed the title During design time, Spectral Rules are not showing up during API Specification design time During API Specification Design time, Spectral Rules are not showing up during API Specification design time Jan 18, 2024
@iamrajivgithub iamrajivgithub changed the title During API Specification Design time, Spectral Rules are not showing up during API Specification design time During API Specification Design time, Spectral Rules are not showing up under problems in IDEs/JetRider Jan 18, 2024
@gino17m
Copy link

gino17m commented Mar 13, 2024

From my observations....this is a problem with "Included path patterns" config param....if you put "**/*openapi.yaml" as first path the .yaml files will be linted....but .json and .yml will not.
workaround: put "**/*{openapi,swagger}.{json,yml,yaml}" in "Included path patterns" param

@JustinvanLier
Copy link

I have the same problem, with the IntelliJ Plugin. The settings are as follows, but there are not error showing up within the IDE itself. Everything else works fine, when you run the CLI, the error are showing properly, but unfortunately this plugins doesn't do it's job.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants