Set isModel property#1275
Conversation
|
@wheezil thanks for the PR. I'd a look and I think it' a good start. There will be some enhancements and I"ll do it after merging this PR into master. |
|
If no further question or feedback, I'll merge it tomorrow. |
|
Thanks William. Much appreciated because I'm using it already :-) Let me know if I've forgotten some cases. |
|
Note: this enhancement may be subject to breaking changes in the future as the enhancement is still being worked on (e.g. isModel support in Response object) |
|
Hi William. Do you think that isModel will be replaced by something equivalent in the template? I currently use it only in one place. |
|
I don't foresee the |
|
@wheezil thanks for the PR, which is included in the v3.3.2 release: https://twitter.com/oas_generator/status/1057649626101112832 |
* Set isModel property * Replace tab characters
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\.Description of the PR
Added an attribute isModel available to the mustache-based code generators. This should be set for all parameters and fields that are objects or referenced schemas.