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 multiple entries of source + target + map_to_list_when condition in map_to_list processor #5380

Open
niketan16 opened this issue Jan 31, 2025 · 0 comments · May be fixed by #5418
Open
Assignees
Labels
enhancement New feature or request

Comments

@niketan16
Copy link

Is your feature request related to a problem? Please describe.
Allow the map_to_list processor to convert multiple sources (map of key-value pairs) to lists of objects under different map_to_list_when conditions.

Describe the solution you'd like
Modify map_to_list processor to support this new configuration that allows multiple entries of source, target and map_to_list_when(optional) like shown below. The existing configuration is still supported. This is new config under entries needs to be added.

processor:
    - map_to_list:
        entries:
           - source: "my-map"
             target: "my-list"
             map_to_list_when: "some-key == 'test'"
           - source: "my-map2"
             target: "my-list2"
             map_to_list_when: "some-key2 == 'test2'"

Describe alternatives you've considered (Optional)
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
2 participants