-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REQ][Kotlin][Jackson] Add support to enable/disable Jackson's features #11776
Comments
+1 for this issue.
Also wondering about that. I guess changing the defaults now would be a breaking change, but to me it feels like the current defaults are kinda wrong (i.e. failing on unknown JSON properties) and inconsistent with Java client generator 🤔 |
Is there any update on this issue? |
the breaking on adding new fields to API responses can be avoided with this option in your config.yaml: |
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:
The text was updated successfully, but these errors were encountered: