Open kilianmh opened 1 year ago
Problem: alias (e.g. *alias) ignored -> distorted parsing result order
Workaround: parse alias (name) as a string -> correct parsing order -> function to serialize alias node referring back to anchor might be implemented later
Example:
(cl-yaml:emit-to-string (cl-yaml:parse "alias: *test-alias input: 1"))
before: "{ 1: false, \"alias\": \"input\" }" now: "{ \"input\": 1, \"alias\": \"*test-alias\" }"
"{ 1: false, \"alias\": \"input\" }"
"{ \"input\": 1, \"alias\": \"*test-alias\" }"
What do you think about this PR @eudoxia0 ?
I wonder if this will break existing code.
Problem: alias (e.g. *alias) ignored -> distorted parsing result order
Workaround: parse alias (name) as a string -> correct parsing order -> function to serialize alias node referring back to anchor might be implemented later
Example:
before:
"{ 1: false, \"alias\": \"input\" }"
now:"{ \"input\": 1, \"alias\": \"*test-alias\" }"