Skip to content

Preprocessors for ObjectMapper before deserializing field #615

Description

@Rothes

A preprocessor modifies the node created by nodeResolver, before doing the deserialization.

This can be used to relocate old node key to this one, when node path is changed due to config schema change,
with annotation like @RenamedNode(String oldPath).

For tiny schema change, this way could be much easier to do configration migration.

This cannot be done with current API, unless implement own nodeResover.

If possible, I could create a PR for this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions