italia / api-oas-checker

An OpenAPI 3 checker based on spectral.
https://italia.github.io/api-oas-checker/
60 stars 24 forks source link

Error using the Rulesets #717

Open fjd-anh opened 3 months ago

fjd-anh commented 3 months ago

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?