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

[REQ] [kotlin-server] Add kotlinx serialization support

Open svenallers opened this issue 2 years ago • 1 comments

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

We do use Ktor with kotlinx as our serialization library which is currently not supported by the kotlin-server generator. But we really like to use the kotlin-server generator for our project. Currently, we do adopt the existing mustache files manually in our project to add the @Serializable annotation ourselves. But of course we would prefer to have it directly supported by the generator itself.

Describe the solution you'd like

Add kotlinx as additional option to serializationLibrary.

Describe alternatives you've considered

We thought about using the kotlin generator as it supports kotlinx via multiplatform. But having even the paths/routes generated by the generator is sth. we really want to keep and therefore we do prefer the kotlin-server generator.

Additional context

svenallers avatar Aug 11 '22 07:08 svenallers

Hi, same for me. It worked until version 7.0. Now, it was removed. Why? https://github.com/OpenAPITools/openapi-generator/pull/16627

nucle avatar Feb 08 '24 18:02 nucle