Skip to content
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

Support isolated actuator ObjectMapper #20291

Closed
bclozel opened this issue Feb 21, 2020 · 1 comment
Closed

Support isolated actuator ObjectMapper #20291

bclozel opened this issue Feb 21, 2020 · 1 comment
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@bclozel
Copy link
Member

bclozel commented Feb 21, 2020

This is a new attempt at fixing #12951, since the original fix caused regressions (see #20211).

@bclozel bclozel added the type: enhancement A general enhancement label Feb 21, 2020
@bclozel bclozel self-assigned this Feb 21, 2020
@bclozel bclozel added this to the 2.3.0.RC1 milestone Feb 21, 2020
@bclozel bclozel added the status: pending-design-work Needs design work before any code can be developed label Mar 10, 2020
@bclozel bclozel modified the milestones: 2.3.0.RC1, 2.x Mar 10, 2020
@bclozel
Copy link
Member Author

bclozel commented Mar 10, 2020

A second attempt is ongoing, see #20290.

@philwebb philwebb modified the milestones: 2.x, 3.x Aug 19, 2022
@philwebb philwebb changed the title Add actuator specific ObjectMapper Support actuator specific ObjectMapper Nov 9, 2022
@philwebb philwebb removed the status: pending-design-work Needs design work before any code can be developed label Nov 10, 2022
@philwebb philwebb assigned philwebb and unassigned bclozel Nov 10, 2022
@philwebb philwebb modified the milestones: 3.x, 3.0.0-RC2 Nov 10, 2022
@philwebb philwebb changed the title Support actuator specific ObjectMapper Support isolated actuator ObjectMapper Nov 10, 2022
philwebb added a commit that referenced this issue Nov 10, 2022
Add `OperationResponseBody` tagging interface that can be used
to trigger the use of an isolated ObjectMapper specifically for
actuator responses.

The isolated mapper is provided by an `EndpointObjectMapper`
bean which is auto-configured unless specifically disabled
by the user.

WebMVC, WebFlux and Jersey integrations have been updated
to provide a link between the `OperationResponseBody` type
and the endpoint `ObjectMapper`.

See gh-20291
philwebb added a commit that referenced this issue Nov 10, 2022
Update types returned from endpoints to implement the
`OperationResponseBody` interface. This ensures that they will be
serialized using the isolated actuator `ObjectMapper`.

See gh-20291
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants