Skip to content

Convert list of dict items to list of string items #331

Description

@martinm82

Hi,
first of all thanks a lot for this create library. It saved me a lot of time.

I have the following problem where I need to remap a list of dict into a list of strings.

apps:
  - slug: abc
  - slug: def

should be converted to

apps:
  - abc
  - def

In general this an easy task if the dict is flat but in my case I have a nested dict and never can know when the list apps is located.

I tried several things with remap and enter but cannot get it working.

Any ideas would be appreciated.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions