You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Currently with code generated, we are not able to provide a customized objectMapper used during serialization. Indeed, RestClient.Builder builds a default list of converters and then calls the consumer that currently adds the MappingJackson2HttpMessageConverter with the customized ObjectMapper at the end.
openapi-generator version
7.9.0
OpenAPI declaration file content or url
Any one.
Generation Details
Steps to reproduce
Generate any ApiClient with RestClient by providing the ObjectMapper. By breakpoint you can see that the MappingJackson2HttpMessageConverter used during serialization is the one built by default and not the one built by the generated stub.
Bug Report Checklist
Description
Currently with code generated, we are not able to provide a customized
objectMapper
used during serialization. Indeed,RestClient.Builder
builds a default list of converters and then calls the consumer that currently adds theMappingJackson2HttpMessageConverter
with the customizedObjectMapper
at the end.openapi-generator version
7.9.0
OpenAPI declaration file content or url
Any one.
Generation Details
Steps to reproduce
Generate any
ApiClient
withRestClient
by providing theObjectMapper
. By breakpoint you can see that theMappingJackson2HttpMessageConverter
used during serialization is the one built by default and not the one built by the generated stub.Suggestion
See MR #20112
The text was updated successfully, but these errors were encountered: