Skip to content

Spectral overrides do not work #123

Open
@bolmstedt

Description

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions