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

Path aliases #1680

Closed
P0lip opened this issue Jun 18, 2021 · 1 comment · Fixed by #1692
Closed

Path aliases #1680

P0lip opened this issue Jun 18, 2021 · 1 comment · Fixed by #1692
Assignees
Labels
enhancement New feature or request released v6 Scheduled to be released in v6

Comments

@P0lip
Copy link
Contributor

P0lip commented Jun 18, 2021

User story.
As a ruleset write, I often have to come up with complex JSON Path expressions in order to pick a certain fragment of my document I'd like my rule to be run on.
This is both tedious and error-prone, in particular when targeting specific specs like OpenAPI.

Describe the solution you'd like

I'd like to have a way to specify these complex path expressions in one spot to be able to re-use them later on.
Ideally, the rulesets Stoplight provides have an array of paths I could choose from, so that I don't need to author my own paths anymore (assuming I write a ruleset based on OpenAPI / AsyncAPI)

Additional context

This issue just intend to add the functionality to specify those aliases which can then be used in the ruleset and rulesets extending it.

Stoplight ruleset having aliases would be tackled in a separate issue.

@P0lip P0lip added enhancement New feature or request v6 Scheduled to be released in v6 labels Jun 18, 2021
@P0lip P0lip self-assigned this Jun 24, 2021
@stoplight-bot
Copy link
Collaborator

🎉 This issue has been resolved in version @stoplight/spectral-core-v1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released v6 Scheduled to be released in v6
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants