OpenAPITools / OpenAPITools/openapi-generator
[REQ] [kotlin-server] Add kotlinx serialization support
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the kotlin-server generator's serializationLibrary option and compare it with the kotlin generator's kotlinx support via multiplatform. Trace the existing mustache files used for Kotlin server generation; done means kotlinx is selectable and generated output supports @Serializable while retaining generated paths and routes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin, openapi
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100