Parsing anchors in Model namespace
ianbenz opened this issue · comments
Ian Benz commented
I am having an issue loading documents that use anchors to duplicate scalar values though Model.YamlStream.Load(TextReader)
. A simple example of the format is:
field1: &data ABCD
field2: *data
It looks like YamlNode.ReadElement
returns null when processing field2
which causes an exception in YamlMapping.Load
.
Alexandre Mutel commented
Could be, anchors has never been much tested nor used in SharpYaml. If you find the time, PR welcome, otherwise I don't have any spare time left for this project
Ian Benz commented
Alright, I'll see if I can track down the issue when I have a spare minute.