Closed jcfj closed 3 years ago
you cannot alias/anchor an array on yaml - see yaml/yaml#35
Oh, woops, this issue was still open...
cf. https://github.com/dtolnay/serde-yaml/issues/163#issuecomment-700004185, Merge keys are not part of Yaml 1.2, and simply not supported. So no, this isn't a bug.
@cilindrox If you check the debug output above, the "<<"
are inside of a Hash
. It has nothing to do with arrays.
I encountered the following yaml document in the wild:
Parsing and printing it with:
on yaml-rust v0.4.4 yields something odd:
Notice the
String("<<")
?Is that a bug in the parser, or is that document simply not valid YAML 1.2?