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

Spectral overrides do not work #123

Open
bolmstedt opened this issue Apr 11, 2024 · 0 comments
Open

Spectral overrides do not work #123

bolmstedt opened this issue Apr 11, 2024 · 0 comments

Comments

@bolmstedt
Copy link

We have a multiple OpenAPI schemas where some might not follow all rules yet, and have switched off certain rules for certain schemas using overrides in our .spectral.yml configuration, like so:

---
extends:
  - some_ruleset.yml
overrides:
  - files:
      - "some/path/openapi.yaml"
    rules:
      some-rule: "off"

This is does however not work with this plugin, since it takes the content of the file to lint and creates a temporary file that it passes to Spectral.

Is there some smart way of fixing this, or could we perhaps add an option to disable the usage of a temporary file?

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

1 participant