openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

[cpp] pass arguments as const reference

Open MartinDelille opened this issue 8 years ago • 4 comments

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

MartinDelille avatar Jun 10 '18 14:06 MartinDelille

I would add here in general also the handling of setters for complex types

etherealjoy avatar Jun 10 '18 14:06 etherealjoy

This issue relates to that #273

stkrwork avatar Jun 10 '18 14:06 stkrwork

To #270 too

MartinDelille avatar Jun 10 '18 14:06 MartinDelille

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.

etherealjoy avatar Jul 28 '18 10:07 etherealjoy