-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Extending with distributed rulesets #254
Comments
Hi there, So this feature does not yet exist in vacuum, the ability to include references to other configs. It can be added, for sure - but there is just no code in the tool to handle this capability right now. I'll add this as a feature and add it to the backlog. |
Thanks in advance @daveshanley . |
I'd love to see this feature as well. While we can accomplish much of this by writing custom functions, the bar of doing that is a lot higher bar as you need to build a new |
I have a shared ruleset distributed as an npm package i would love to be able to use with this, however that ruleset also itself extends from local js and yaml ruleset definitions any chance we could get vacuum to parse and use the js rulesets correctly too 🥺 |
I don't know what a JS ruleset looks like. Can you give me an example? I don't use Spectral myself anymore. |
This feature is something I am planning on working on very soon, so the more requests and details in this ticket, the better. |
This feature was implemented in |
Hi, does the release of |
Hello @daveshanley , it's me again 😄. Having some unclear things about Rulesets, especially Extending Rulesets. I have read whole documentation on vacuum website, but I didn't find any information about extending with a shared ruleset, in my case File System option.
For example, I have openapi.yaml, main.ruleset.yaml and a folder rules with custom rulesets separated by "category". The question is, how can I include the rulesets from rules folder in main.ruleset.yaml ? I have 71 additional custom rules which a are with the original Spectral, it would be sad to miss them 😕
Folder structure
main.ruleset.yaml
stringTypeConstraints.yaml
integerAndNumberTypeConstraints.yaml
The text was updated successfully, but these errors were encountered: