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

Restrict linting to only OpenAPI specification files #29

Open
ntsim opened this issue Jul 21, 2022 · 0 comments
Open

Restrict linting to only OpenAPI specification files #29

ntsim opened this issue Jul 21, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@ntsim
Copy link

ntsim commented Jul 21, 2022

Currently, the IDE inspections are triggered indiscriminately on any YAML/JSON files matching the configured file pattern. Unfortunately, this leads to inspections on files that are not OpenAPI specifications. This makes it really awkward when working on different projects where the pattern may not be the same and it would be more convenient to use a generic file pattern like **.yaml.

It would be good if inspections could only trigger if the plugin detects that the current file is a valid OpenAPI specification e.g. if there is an openapi property, or some other heuristics. This way, we could use a more generic file pattern without getting inspection warnings in files that aren't OpenAPI specifications.

@markbrockhoff markbrockhoff added the enhancement New feature or request label Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants