Forum Discussion

Stoplight's avatar
Stoplight
Community Manager
9 months ago

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?