-
Notifications
You must be signed in to change notification settings - Fork 54
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
instructions for how to install the java jar version of codegen. #72
Comments
I think this wget command can do the trick, but mac users need to install wget first
|
@Tomcli -- The choice is either Homebrew or downloading the jar file. Maven should not be needed unless building the swagger-codegen jar from source is desired. Our instructions currently also link to the Did you want to copy this excerpt from there? # Download current stable 2.x.x branch (Swagger and OpenAPI version 2)
wget https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.4.10/swagger-codegen-cli-2.4.10.jar -O swagger-codegen-cli.jar
java -jar swagger-codegen-cli.jar help ...and maybe add a command alias to make it compatible with the existing shell scripts we have: # add this alias to your `~/.profile` or create it for any new Terminal shell session where you run api/codegen.sh
alias swagger-codegen="java -jar swagger-codegen-cli.jar"
# or create and export a `swagger-codegen` function before running the script `api/generate_code.sh`
function swagger-codegen() { java -jar swagger-codegen-cli.jar "$@"; }
export -f swagger-codegen |
yes, I think the swagger-codegen repo can be too confusing especially for junior developers. Also I remember 2.4.10 might change some schema on the MLX? I remember back then I have to downgrade the codegen-cli to 2.4.8 in order to not change some of the schema. |
also the homebrew command is always installing the latest codegen 2.4.x (right now is 2.4.20). If we can't support that version then maybe we need to note it down. |
The latest Not sure what you may have experienced with respect to
|
When you run |
Oh, yes, that's true. I added some fixes for that in previous commits and corrected the Git master branch reference to main in PR #59 |
Yes. I had codified the required post-processing in the script I will do an evaluation of the various |
* Update the api/README.md * Automatically download swagger-codegen-cli-2.4.8.jar when running the api/generate_code.sh script Resolves machine-learning-exchange#72 Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
* Update the api/README.md * Automatically download swagger-codegen-cli-2.4.8.jar when running the api/generate_code.sh script Resolves machine-learning-exchange#72 Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
* Update the api/README.md * Automatically download swagger-codegen-cli-2.4.8.jar when running the api/generate_code.sh script Resolves machine-learning-exchange#72 Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
* Update the api/README.md * Automatically download swagger-codegen-cli-2.4.8.jar when running the api/generate_code.sh script Resolves #72 Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
@ckadner we probably need a set of instructions for how to install the java jar version of codegen. Homebrew and maven plugin might be too complicated and it may change based on the user's java/brew config.
Originally posted by @Tomcli in #71 (comment)
The text was updated successfully, but these errors were encountered: