openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

Allow ReturnType to return Generics

Open andrewwilsonnew opened this issue 8 months ago • 0 comments

Is your feature request related to a problem? Please describe.

I'd like to be able to change type mappings to return generics. So for example:

typeMapping.put("file", "Response<ByteString>");

However despite my {{{returnType}}} in the template we get: ResponseLessThanByteStringGreaterThan

Describe the solution you'd like

It would be great if {{{returnType}}} allowed generics

Describe alternatives you've considered

We currently do a manual work around and and use a kotlin typealias to fix this

Additional context

Waddyathink @wing328 @guiarn

andrewwilsonnew avatar Jun 10 '25 08:06 andrewwilsonnew