Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update internal swagger-codegen-cli to 3.0.63 #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fanalin
Copy link

@fanalin fanalin commented Nov 4, 2024

Hi,

this PR updates the swagger-codegen-cli to 3.0.63. The newer swagger-codegen-cli fixes a lot of bugs.
The jar file was simply downloaded from maven central https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.63/swagger-codegen-cli-3.0.63.jar - there is also a checksum file to check the correctness of it.

Please consider accepting it and release a new version. TIA

Best regards
Matti

@Apollinaire
Copy link

If anyone else is stuck because this package has not been updated for a while, here is how to replace the binary automatically :
in package.json add a new postinstall script

{
  "scripts": {
    "postinstall": "./scripts/postinstall.sh"
  }
}

Create an executable script in scripts/postinstall.sh with the following content:

# download version 3.0.64 (latest) of swagger-codegen-cli and write it in the node_modules for swagger-nodegen-cli
curl -sS https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.64/swagger-codegen-cli-3.0.64.jar --output $(dirname "$0")/../node_modules/swagger-nodegen-cli/bin/swagger-codegen-cli-3.0.34.jar

This script will re-download the file every time you install your node modules.

This repo is the official release for the binary. Check it if you want to update further versions and replace 3.0.64 in the curl command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants