-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
extends rulesets doesn't follow redirects #2266
Comments
This works somewhat as expected, although the expected behavior might be indeed not the most of folks would expect. I'll have a look at it tomorrow to see if we can handle that in a better way. |
I'm not sure your reply lines up with what my understanding of the problem is. You are talking about what happens when you load the ruleset right? But we have not yet loaded the ruleset, it cannot even find the ruleset. I am trying to load:
As you can see using the httpie example above (or use curl) that GET request is redirecting to:
Sadly Spectral isn't following that redirect. |
I meant the error here |
Error being reported over here stoplightio/spectral-owasp-ruleset#14 |
Describe the bug
When using Unpkg (which I need to do to use my NPM-based style guide in CLI, VS Code, and Studio) I am getting Not Found if I use a version alias, possiibly because it's not following redirects.
This will let me set a version requirement that I am happy with, instead of having to update the patch number every time a bug fix is made.
To Reproduce
.spectral.yaml
with `extends: ["https://unpkg.com/@apisyouwonthate/[email protected]/dist/ruleset.js"]Expected behavior
I would expect it to follow the redirect.
The text was updated successfully, but these errors were encountered: