The Crystal Programming Language Forum

Cyrstal API Client Generator

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:

  1. Download the Java JAR:

  2. Rename the JAR as “openapi-generator-cli.jar”

  3. Execute the following command to run the generator for the Petstore API:


$ java -jar openapi-generator-cli.jar generate -g crystal -i -o /var/tmp/crystal-client/

I’m new to crystal so the output may not look best. Welcome feedback, PRs to further improve it.


URL to the Github repo: GitHub - OpenAPITools/openapi-generator: OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)