Hi all,
We’ve just added a Crystal client generator to the openapi-generator project:
Please give it a try by following 3 simple steps below:
-
Download the Java JAR: oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/5.0.1-SNAPSHOT/openapi-generator-cli-5.0.1-20210107.102010-25.jar
-
Rename the JAR as “openapi-generator-cli.jar”
-
Execute the following command to run the generator for the Petstore API:
Mac/Linux:
$ java -jar openapi-generator-cli.jar generate -g crystal -i https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o /var/tmp/crystal-client/
I’m new to crystal so the output may not look best. Welcome feedback, PRs to further improve it.