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

Ordered Map support #345

Open
kvaDrug opened this issue Feb 9, 2022 · 1 comment
Open

Ordered Map support #345

kvaDrug opened this issue Feb 9, 2022 · 1 comment

Comments

@kvaDrug
Copy link

kvaDrug commented Feb 9, 2022

Do this lib supports creation of an ordered map (let's say an array of tuples [(key, val)]) from YAML map? Do you plan to add it later?

@afreer
Copy link

afreer commented May 13, 2024

It would be nice to use ordered dictionaries by default. One motivating reason is that it supports round trip read and write. It also might be nice for those editing the YAML to have what is essentially a named array (instead of an array where one of the properties happens to be a name). This shows up nicely in the outline view of VS Code. Thanks!

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