-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Rendering template using yaml data file containing anchors #520
Comments
I would love to support this. Unfortunately So the actual work required here is quite high. Ideally support for this lands in a YAML library that directly supports serde. |
Well, the library you mentioned doesn't seem to be well maintained too unfortunately. Also, is it that hard to convert |
I cannot say because I'm not entirely sure how |
Turns out dict1: &dict1_anchor
key1: value1
dict2: &dict2_anchor
key2: value2
dict3:
<<: *dict1_anchor
<<: *dict2_anchor
key3: value3 However this would be: dict1: &dict1_anchor
key1: value1
dict2: &dict2_anchor
key2: value2
dict3:
<<: [*dict1_anchor, *dict2_anchor]
key3: value3 |
Description
Currently yaml anchors inside yaml data files are not fully supported because of serde_yaml author refused to implement them. There is wonderful yaml-rust2 that could help mitigate the issue. Would you mind to consider migration from serde_yaml to yaml-rust2?
Additional helpful information:
What did you expect
Structures like:
should serialize into:
The text was updated successfully, but these errors were encountered: