Recently we released OpenAPI Generator v7.0.0 and we’ve added the mapping features
in the Crystal client generator.
To give it a try, please install openapi-generator via NPM package manager or brew (Java 11 required). If you don’t have JAVA 11 installed, please use docker instead.
To generate a Crystal API client for Petstore spec, please run the following:
openapi-generator-cli generate -g crystal -i https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o /tmp/crystal-client/
(replaced openapi-generator-cli with openapi-generator if you’re using brew for installation)
I hope you guys find the new features useful. If you’ve questions, please reply to let me know.
Thanks and regards,