Closed d0x closed 2 years ago
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
I tried to reproduce the given example and it seems it's already fixed for kotlin-spring
generator v5.4.0.
@d0x can you pls confirm?
Thanks! Seems to be fixed. I tried the steps to reproduce and it compiles well. 👍🏻
Description
When using inheritance, the generated code won't compile. It fails with this error:
You can see it in this example:
openapi-generator version
Generator Version 4.0.3 Spec Version 3.0.1
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
Generate the spec above and check the Pet class.
Related issues/PRs
There is a similar issue which was fixed in 4.0.0.beta and openapi version 2. But it seems like openapi version 3 breaks it.
https://github.com/OpenAPITools/openapi-generator/issues/1205