api-oas-checker
api-oas-checker copied to clipboard
Error using the Rulesets
We use your rulesets to verify our API.
In our .spectral.yml
we inport the rulesets via URL:
- https://italia.github.io/api-oas-checker/spectral-generic.yml
- https://italia.github.io/api-oas-checker/spectral-security.yml
This fails with "Invalid ruleset provided", as the URLs are no more working (HTTP 404). So I fixed them to:
- https://github.com/italia/api-oas-checker-rules/releases/latest/download/spectral-generic.yml
- https://github.com/italia/api-oas-checker-rules/releases/latest/download/spectral-security.yml
But then, I get an error loading the checkSecurity.js
:
Error running Spectral!
Error #1: Could not load https://github.com/italia/api-oas-checker-rules/releases/latest/download/functions/checkSecurity.js: Error fetching https://github.com/italia/api-oas-checker-rules/releases/latest/download/functions/checkSecurity.js: Not Found
The reason is, that checkSecurity.js
is provided as a zip archive (functions.zip).
Can you please provide a public URL for the rulesets, with the functions side by side?