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 ChangeCase on nested fields #77

Open
wijnanjo opened this issue Sep 17, 2021 · 1 comment
Open

Support ChangeCase on nested fields #77

wijnanjo opened this issue Sep 17, 2021 · 1 comment

Comments

@wijnanjo
Copy link

I'm dumping a nested structure into MongoDB and I'd like to apply lowercase on all fieldnames, also the nested fields. The current ChangeCase transformation only applies to the first level fields.

@feamcor
Copy link

feamcor commented Apr 27, 2022

I have a slightly different use case...

Consider a CDC record from Debezium.
The record has many metadata fields on first level, plus before and/or after fields that contains the columns and their before/after values depending on the transaction (insert/update/delete).
I would like to have changeCase applied only to the inner object of the before and after fields.

Without changeCase transformation:

{"metadata1":"value","metadata2":"value","before": {"col1":"val1","col2":"val2"}}

After changeCase transformation (e.g. "transforms.changeCase.fields.unwrap":"before,after"):

{"metadata1":"value","metadata2":"value","before": {"COL1":"val1","COL2":"val2"}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants