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

Parsing anchors in Model namespace #65

Open
ianbenz opened this issue Jan 16, 2019 · 2 comments
Open

Parsing anchors in Model namespace #65

ianbenz opened this issue Jan 16, 2019 · 2 comments

Comments

@ianbenz
Copy link

ianbenz commented Jan 16, 2019

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.

@xoofx xoofx added the bug label Jan 16, 2019
@xoofx
Copy link
Owner

xoofx commented Jan 16, 2019

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

@ianbenz
Copy link
Author

ianbenz commented Jan 17, 2019

Alright, I'll see if I can track down the issue when I have a spare minute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants