Tip
This repository is intended to provide an example of how to generate different clients from the Open API definition. It may be necessary to modify it to suit your specific needs.
- Ensure
openapi-generator-cli
andJDK
≥ 11 is installed. - Replace
<generator>
in theMakefile
with your desired generator1. - Run
make
Note
The Makefile expects a Unix environment. For Windows the individual commands should more or less still apply.
In general any language supported by the openapi-generator should work - if not out of the box with minor tweaks. The following generators have been tested:
Language | Status | Additional Options |
---|---|---|
typescript-angular |
✅ | |
typescript-fetch |
✅ | |
go |
✅ | --additional-properties structPrefix=true,enumClassPrefix=true |
Footnotes
-
See openapi-generator for available generators. ↩