openapi-generator
openapi-generator copied to clipboard
[cpp] pass arguments as const reference
Description
Passing arguments as const reference would allow developer not caring about memory issues and would reduce the generated code.
openapi-generator version
Head
OpenAPI declaration file content or url
N/A
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
#264 #270 #273
I would add here in general also the handling of setters for complex types
This issue relates to that #273
To #270 too
I applied this to the Qt5 server, but for the client we have to rewrite the helpers since the serialization is dependent on the pass by pointer.
I applied this to Pistache based on @stkrwork initial changes.