You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This results in the error line 10: mapping key "<<" already defined at line 9 -- it appears that yaml.v3 is interpreting "<<" as the name of the map key rather than as an expansion, and thus fails when multiple of them occur.
This is handled properly by yaml.v2.
Test that displays the behavior (and shows that it works in v2):
@6543 I think this issue here has nothing to do with what you were mentioning in that yaml issue. This is simply about two ways of merging more than one mapping, not sequences.
yaml.v3
returns an error when trying to unmarshal valid YAML that expands multiple aliases in a single map:This results in the error
line 10: mapping key "<<" already defined at line 9
-- it appears thatyaml.v3
is interpreting "<<" as the name of the map key rather than as an expansion, and thus fails when multiple of them occur.This is handled properly by
yaml.v2
.Test that displays the behavior (and shows that it works in v2):
Output:
The text was updated successfully, but these errors were encountered: