You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
I also have the same issue while using spectral-full.yml:
[ERROR][2024-12-18 08:08:52] ...lsp/handlers.lua:623 "An error occurred while validating document /home/openapi.yml: Unable to read ruleset at https://github.com/italia/api-oas-checker-rules/releases/latest/download/spectral-full.yml. Error: 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"
We use your rulesets to verify our API.
In our
.spectral.yml
we inport the rulesets via URL:This fails with "Invalid ruleset provided", as the URLs are no more working (HTTP 404).
So I fixed them to:
But then, I get an error loading the
checkSecurity.js
: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?
The text was updated successfully, but these errors were encountered: