fix(kotlin): set isVoid to true for Unit datatypes#21940
fix(kotlin): set isVoid to true for Unit datatypes#21940wing328 merged 1 commit intoOpenAPITools:masterfrom
Conversation
6cdbd23 to
a40b168
Compare
|
thanks for the PR
for response, i see the use cases CodegenResponse with isVoid set to true but for CodegenProperty, what's the use case the type is Unit (java void)? what type does it correspond to in OpenAPI specification? |
You are absolutely right. I assumed that the interface I was extending also was used for mapping datatypes for CodegenProperty 😅 . The correct statement is that isVoid is set to true for |
|
ok. thanks for the explanation let's give it a try |
Sets the isVoid to true for
CodegenResponsesandCodegenOperationwhen the type isUnit(java void) so thatisVoidcan be used in mustache templates.PR checklist
Commit all changed files.
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*.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
master(upcoming7.x.0minor release - breaking changes with fallbacks),8.0.x(breaking changes without fallbacks)"fixes #123"present in the PR description)@dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11) @yutaka0m (2020/03) @stefankoppier (2022/06) @e5l (2024/10)