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 built-in ruleset to validate Spectral ruleset #1853

Open
dolmen opened this issue Sep 29, 2021 · 1 comment
Open

Add a built-in ruleset to validate Spectral ruleset #1853

dolmen opened this issue Sep 29, 2021 · 1 comment
Labels
enhancement New feature or request triaged

Comments

@dolmen
Copy link

dolmen commented Sep 29, 2021

User story.
As a user, I would like to check that the ruleset I've written to use Spectral is valid.

Is your feature request related to a problem?
As Spectral is a JSON/YAML validator and Spectral rulesets are written in JSON or YAML I would like to use Spectral for that task.

Describe the solution you'd like
Add a built-in ruleset for Spectral ruleset like we have for OpenAPI and AsyncAPI.

Additional context

  • As with v6.0.0 writing a ruleset is mandatory in the CLI arguments, validating a Spectral ruleset is helpful for all users.
  • Eat your own dog food
@P0lip
Copy link
Contributor

P0lip commented Oct 4, 2021

Heyo!
I agree. We probably wouldn't expose a ruleset, but a CLI command for that, i.e. spectral ruleset validate or alike.
This would probably output errors in a similar way to spectral lint.
I have some code somewhere that adds it, but haven't had enough time to get this over the finish line.

@P0lip P0lip added the enhancement New feature or request label Oct 4, 2021
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

3 participants