Comments (8)
I think this wget command can do the trick, but mac users need to install wget first
brew install wget
wget https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.4.8/swagger-codegen-cli-2.4.8.jar -O swagger-codegen-cli.jar
from mlx.
@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 swagger-api/swagger-codegen
on GitHub, which should provide the details on other install or build option.
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
from mlx.
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.
from mlx.
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.
from mlx.
The latest swagger-codegen@2
formula 2.4.20
from Homebrew works fine as well. Just tested it.
Not sure what you may have experienced with respect to
"...
swagger-codegen
2.4.12+ ... not matching with the MLX schema ..."
from mlx.
When you run ./generate_code.sh
, it was generated some code differences. Is there any extra step we need to do?
from mlx.
When you run
./generate_code.sh
, it was generated some code differences. Is there any extra step we need to do?
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
from mlx.
When you run
./generate_code.sh
, it was generated some code differences. ... any extra step we need to do?
Yes. I had codified the required post-processing in the script api/generate_code.sh
to undo the undesired codegen results, by doing a codegen before and after making changes to api/swagger/swagger.yaml
. I generate a reverse patch from the changes resulting by running codegen.sh
before having done any changes to the Swagger API spec.
I will do an evaluation of the various swagger-codegen-cli.jar
version to see which version is best suited for regenerating the API server stubs without causing too many undesired code changes that need to be undone by post-processing the generated code.
from mlx.
Related Issues (20)
- Replace `kfp-notebook`/`elyra-server` with a KFP component to run notebooks
- Release checklist v0.2.0 HOT 5
- MLX Contribution Documentation
- API Architecture Documentation
- Add script to update the navigation table in docs
- Local deployment on KIND needs update HOT 8
- Make `check_doc_links` fails with UnicodeDecodeError: 'utf-8' codec can't decode byte 0x96 in position 522: invalid start byte
- Add linting target to Makefile to enforce code style for Python and JavaScript sources HOT 2
- Make target `update_doc_table` has incorrect description HOT 3
- Implement KFP Template Registry API HOT 1
- mlx ui pod: "EACCES: permission denied, mkdir '/workspace/build'" HOT 3
- Convert to UBI conformant container images
- `mlx-ui` pod fails to start up on OpenShift
- Cannot toggle Capabilities in MLX settings on OpenShift HOT 1
- `mlx-ui` logs show session error messages
- No IstioIngressGateway Route on Openshift HOT 1
- Remove VIEW EXPERIMENTS link for catalog-only deployments HOT 7
- Option to change MLX admin password during deployment
- MLX UI shows outdated texts
- KIND installation doesn't work on k8s 1.22+ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlx.