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
Is your feature request related to a problem? Please describe.
our app added a MessageConverter to support YAML content types and a JSON MessageConverter to add specific configuration of the Jackson ObjectMapper. As a result, the returned String gets serialized as a JSON String object (quoted and escaped) rather than as raw JSON
Describe the solution you'd like
Perhaps returning Map<String, Object> would play better with the Spring response serialization?
Describe alternatives you've considered
I need to figure out how to insert the correct MessageConverter to handle the String response through a WebMvcConfigurer
The text was updated successfully, but these errors were encountered:
You have so many ways to achieve your goal.
You can add StringHttpMessageConverter to your configureMessageConverters.
Or you can define your own OpenApiWebMvcResource Bean which returns what you are expecting...
Is your feature request related to a problem? Please describe.
our app added a MessageConverter to support YAML content types and a JSON MessageConverter to add specific configuration of the Jackson ObjectMapper. As a result, the returned String gets serialized as a JSON String object (quoted and escaped) rather than as raw JSON
Describe the solution you'd like
Perhaps returning Map<String, Object> would play better with the Spring response serialization?
Describe alternatives you've considered
I need to figure out how to insert the correct MessageConverter to handle the String response through a WebMvcConfigurer
The text was updated successfully, but these errors were encountered: