Skip to content

Jackson AbstractTypeMapping How-to #1047

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

Open
ghost opened this issue Feb 21, 2025 · 0 comments
Open

Jackson AbstractTypeMapping How-to #1047

ghost opened this issue Feb 21, 2025 · 0 comments
Labels
type: question Further information is requested

Comments

@ghost
Copy link

ghost commented Feb 21, 2025

Issue description

Hi I'm trying to serialize / deserialize external types that are interfaces from a Micronaut Controller. Typically in this case I would have a custom Jackson module and do something like:

coreModule.addAbstractTypeMapping(Execution.class, ExecutionImpl.class);
objectMapper.registerModule(coreModule);

And Execution would end up being the propagated type to injected sub-components.

Is there any way to achieve this with Serde?

Tried some combinations of @SerdeImport & @Serdeable.Deserializable, but I can't find a way to preserve decoupling.

@ojebari-ma ojebari-ma added the type: question Further information is requested label May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant