OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.23k stars 6.43k forks source link

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

Open svenallers opened 2 years ago

svenallers commented 2 years ago

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

nucle commented 7 months ago

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