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

Add a Spectral version in ruleset document #2108

Open
arno-di-loreto opened this issue Mar 24, 2022 · 0 comments
Open

Add a Spectral version in ruleset document #2108

arno-di-loreto opened this issue Mar 24, 2022 · 0 comments
Labels
enhancement New feature or request triaged

Comments

@arno-di-loreto
Copy link
Contributor

User story.
As a Spectral tool creator, I can read the spectral property of a Spectral ruleset document, so that I can use appropriate Spectral library.

Is your feature request related to a problem?
I have been terribly frustrated when Studio integrated Spectral v6, some of my v5 rules were not working anymore until I migrated to v6.

Describe the solution you'd like
Add a spectral property indicated the version used (like it happens in OpenAPI with the openapi property)

spectral:"6.0"

In order to ensure backward compatibility, it could be made optional in v6 then required in v7.
When not present, it's up to the tool to choose the version according to its own logic and capabilities.

Additional context

Maybe there could be some impacts on functions too. They may need to tell which version (or versions?) they handle.

@mnaumanali94 mnaumanali94 added the enhancement New feature or request label Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triaged
Projects
None yet
Development

No branches or pull requests

2 participants