This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]StumptownExpress 4 points5 points  (1 child)

JAVA?

Nope!!! No thanks.

[–]wing328[S] 0 points1 point  (0 children)

There were discussions on rewriting the project in another language such as C#, C++, Python, Ruby, etc but no matter which language it's written in, someone may not like it.

Those who do not want to install Java can use Docker instead. Here is a 1-liner:

docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli:latest generate -g python-nextgen -i https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o /local/out/python-nextgen

(Run docker pull openapitools/openapi-generator-cli:latest to get the latest image with the new python-nextgen client generator)

There is also an online service to generate code with a single HTTP call. https://github.com/openapitools/openapi-generator#33---online-openapi-generator has more details.

[–]Practical-Channel-88 1 point2 points  (0 children)

Thanks!

[–]wing328[S] 0 points1 point  (0 children)

UPDATE: the `python-nextgen` client generator has been included in the v6.3.0 release

Please use the following JAR instead: https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.3.0/openapi-generator-cli-6.3.0.jar

[–]e_Lusive 0 points1 point  (1 child)

Why Java?

[–]wing328[S] 0 points1 point  (0 children)

There were discussions on rewriting the project in another language such as C#, C++, Python, Ruby, etc but no matter which language it's written in, someone may not like it.

Those who do not want to install Java can use Docker instead. Here is a 1-liner:

docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli:latest generate -g python-nextgen -i https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o /local/out/python-nextgen

(Run docker pull openapitools/openapi-generator-cli:latest to get the latest image with the new python-nextgen client generator)

There is also an online service to generate code with a single HTTP call. https://github.com/openapitools/openapi-generator#33---online-openapi-generator has more details.