[Kotlin-spring] fix model inheritance#10365
[Kotlin-spring] fix model inheritance#10365frecco75 wants to merge 3 commits intoOpenAPITools:masterfrom
Conversation
9d3d2d5 to
973315f
Compare
|
Thanks for the PR but your commit (as shown in the Commits tab) is not linked to your Github account, which means this PR won't count as your contribution in https://github.com/OpenAPITools/openapi-generator/graphs/contributors. Let me know if you need help fixing it. |
|
cc @jimschubert (2017/09) ❤️, @dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11) @yutaka0m (2020/03) |
e4501b4 to
edf9c7c
Compare
|
Thanks @wing328. I have edited the commit! |
|
@frecco75 Did you run the following commands to build the project and update samples? |
|
@4brunu Yes I did it. |
|
Thanks, I asked because I was expecting to see some changes in the sample projects |
|
Please resolve the merge conflicts when you've time. |
4439337 to
2325cad
Compare
2325cad to
d2a96b9
Compare
|
@wing328 done |
This PR fixes kotlin classes generation with inherited models in the source schema.
For example given this schema
With the fix the generated code is valid and compiles correctly.
Moreover, it's better to use
JsonTypeInfo.As.EXISTING_PROPERTYto avoid duplicatenamein the JSON response