I have a large application using PyYAML which relies on merging of non-unique keys.   If the values are strings, they are catenated; otherwise a list of all values with the same key is built.     Will this be affected by any future changes to the specification?




From: Oren Ben-Kiki [mailto:oren@ben-kiki.org]
Sent: 24 January 2012 14:29
To: Andrey Somov
Cc: YAML-Core
Subject: Re: [Yaml-core] when the keys are not unique: mapping and merging


Arrgghh. The wording in  http://yaml.org/type/merge.html  is correct. The  http://code.google.com/p/snakeyaml/issues/detail?id=139 issue isn't really with the merge behavior; the problem is that someone assumed there can be more than one instance of the key to merge. I'm posting a reply on that thread.