OpenAPITools / OpenAPITools/openapi-generator
[REQ][Kotlin][Jackson] Add support to enable/disable Jackson's features
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.
I'm using the OpenAPI generator to generate a Kotlin client with Jackson as a serialization library, but I cannot customize the object mapper with the generator. If I want to customize it, I need to import the Serializer object and customize it using the property jacksonObjectMapper.
Describe the solution you'd like
I'd like to enable/disable Jackson's features using the generator's config file.
Describe alternatives you've considered
I changed the object mapper directly, accessing Serializer#jacksonObjectMapper.
Additional context
Also, we have some defaults for Java that we're not applying for Kotlin.
Is there a specific reason we're not using the same defaults?
Reference:
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 with the Kotlin Serializer.kt.mustache template referenced in the issue and compare its Jackson setup with Java ApiClient.mustache. Trace how generator config options reach these templates, then verify that Kotlin clients can enable or disable the requested Jackson features and apply the relevant Java defaults.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100