btcpayserver/btcpayserver-doc

swagger-cli is deprecated, let's remove it from the dependencies

Closed this issue · 0 comments

swagger-cli's GitHub repo is now archived https://github.com/APIDevTools/swagger-cli. The package is deprecated.

Furthermore, when you run npm install, there's this warning saying:

deprecated @apidevtools/swagger-cli@4.0.4: This package has been abandoned. Please switch to using the actively maintained @redocly/cli

The good news is @redocly/cli is already being used in setup-deps.sh, alongside swagger-cli. So, there's no need for a replacement

npx swagger-cli validate $swagger_file
npx @redocly/cli lint $swagger_file

What needs to be done is:

  1. delete swagger-cli from package.json
  2. delete swagger-cli from setup-deps.sh