Conversation
|
Hi William, thanks for your effort to create this. May I ask is this generator stable to use? Any plan to merge it to master branch or release it? |
|
@Crisliu7 I've not seen any contributions to this generator so far. Would you have time to contribute to this PR to make the output works (at least with basic APIs like petstore that we use for testing in this project)? |
|
I plan to work on it, to create cpp-oatpp-server generator. But I will start from scratch, |
|
preparing hand-written oatpp-petstore-server https://github.com/atokama/oatpp-petstore-server i plan to use async endpoints, to enable non-blocking IO in handlers. https://oatpp.io/docs/oatpp-coroutines/ |
|
I manually created Petstore API with C++ and Oat++. Anyone welcome to use it as a reference for a https://github.com/makru86/oatpp-petstore-starter |
To build the new generator
cpp-oatpp-server:(ref: https://github.com/oatpp/oatpp)
The new generator is created based on
cpp-pistache-server. To start with, we'll need to update the mustache templates to useoatpp. Templates can be found inmodules/openapi-generator/src/main/resources/cpp-oatpp-serverPR checklist
./bin/generate-samples.shto update all Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master. These must match the expectations made by your contribution. You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example./bin/generate-samples.sh bin/configs/java*. For Windows users, please run the script in Git BASH.master