OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
I’m using the Maven plugin (version 4.2.3) to generate Kotlin DTOs.
I’m having trouble with the Import Mappings. If I change the generators name to Java then the import mappings happen as I expect but with Kotlin I experience weird behaviour.
Here is my config:
Description
I’m using the Maven plugin (version 4.2.3) to generate Kotlin DTOs. I’m having trouble with the Import Mappings. If I change the generators name to Java then the import mappings happen as I expect but with Kotlin I experience weird behaviour. Here is my config:
And here is the Kotlin code that are generated, look at the import of Status:
The expected output is:
openapi-generator version
4.2.3