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
... which is entirely sensible. Some might even say correct. However, wouldn't it be neat if when we got back to yaml the node anchors were back in place?
I'm wondering if you think it would be to hacky to take a switch in the cli to preserve metadata, that stored a known metadata object allowing us to get back. For instance, cat sample.yaml | seria -j --preserve-anchors might look like:
Consider the following sample.yaml:
This is the output of
cat sample.yaml | seria -j | seria -y
:... which is entirely sensible. Some might even say correct. However, wouldn't it be neat if when we got back to yaml the node anchors were back in place?
I'm wondering if you think it would be to hacky to take a switch in the cli to preserve metadata, that stored a known metadata object allowing us to get back. For instance,
cat sample.yaml | seria -j --preserve-anchors
might look like:Then, back to yaml,
cat sample.yaml | seria -j --preserve-anchors | seria -y
would output with our original node anchors.I think that would also allow the preservation of comments.
I have no use for this. But I noticed it trying something unimportant. It is more of a thought experiment.
The text was updated successfully, but these errors were encountered: