Skip to content

Conversation

@encircled
Copy link
Contributor

Preserve json type info during serialization when value is wrapped with java.util.Optional #24498

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Apr 6, 2020
@rstoyanchev
Copy link
Contributor

Thanks for the PR but this is a GenericHttpMessageConverter and typically invoked through the 4-arg write method that also takes a Type. So I don't think this is a good place to solve it and we'd have to put similar logic in all converters.

I think it is better to address this more generally for all supported return types so I'll close this.

@rstoyanchev rstoyanchev added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: declined A suggestion or change that we don't feel we should currently apply

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants