Stoplight
9 months agoCommunity Manager
Need help extending a ruleset
Originally posted by user kpds2000 to the Stoplight Community on 03/28/2023 at 16:21 ET.
I need to extend a ruleset that is currently served via a http url. Using it with below syntax results in an error
'Unexpected token(1:0)' extends:
<http url to a spectral ruleset js file>
This same ruleset works fine if I download it, and give a local path to the extends attribute.
I think this is because the http response has a content-disposition == 'attachment.'
Is there a workaround for stoplight to recognize this kind of http delivery of the ruleset?
a_welch (Staff) [04/24/2023 - 11:49 ET]
Hello kpds2000 here is a link to the Spectral docs specifically around rule sets. https://docs.stoplight.io/docs/spectral/e5b9616d6d50c-rulesets