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

Moultingyaml does not conserve the order for maps and case classes #38

Open
apps4uco opened this issue May 25, 2019 · 1 comment
Open

Comments

@apps4uco
Copy link

Although the yaml specification does not require conserving the order, snakeyaml does conserve the order.
This makes it easier to round trip yaml to yaml or yaml to case class and back.

Attached: Modifications to conserve the order for maps and for case classes.

Disclaimer, please test the code, it compiles and passes a quick test.
It would be great if you could include this functionality in the next release.

patch.txt

@tmichniewski
Copy link

Hello,
Are you going to fix this according to the proposed patch? It would be a really nice enhancement.
Best wishes,
Tomek

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