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

Merge key (yaml 1.1) operator "<<" treated as normal key #6

Open
kosiu opened this issue Nov 13, 2023 · 2 comments
Open

Merge key (yaml 1.1) operator "<<" treated as normal key #6

kosiu opened this issue Nov 13, 2023 · 2 comments

Comments

@kosiu
Copy link

kosiu commented Nov 13, 2023

According to yaml 1.1 operator "<<" is used to merge keys pls see:
https://yaml.org/type/merge.html

for input:

<<: {A: 1, B: 2}
A: 0

should be:

{ "A": 0, "B": 2 }

and it is:

{"<<": {"A": 0, "B": 2}, "A": 0 }

I'm not sure is it fortran-yaml-c or underlying c library.

@kosiu
Copy link
Author

kosiu commented Nov 13, 2023

Ok, it's not part of the standard
yaml/libyaml#168

@Nicholaswogan
Copy link
Owner

Ok, so we have to wait until libyaml is fixed.

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