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

Improved support for maps #33

Open
Umaaz opened this issue Sep 8, 2023 · 0 comments
Open

Improved support for maps #33

Umaaz opened this issue Sep 8, 2023 · 0 comments

Comments

@Umaaz
Copy link
Member

Umaaz commented Sep 8, 2023

Is your feature request related to a problem? Please describe.
Currently if a map is collected the key is always converted to a string, meaning that complex keys do not work.

Describe the solution you'd like
Wrap the key entries in a deep.MapEntry type. This allows the UI to treat all maps from all languages the same. This type should then define child variables as:

{
 type: 'deep.MapEntry',
 value: '0',
 hash: '123.0',
 children: [
    {
      id: '124',
      name: 'key'
    }
    {
      id: '125',
      name: 'value'
    }
  ]
}

Describe alternatives you've considered
Add explicitly the fields for map entries.

Additional context
Look at how NV handled this.

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

1 participant