YAML 1.2 Merge Key Precedence and Duplicate Key Handling
The YAML 1.2 specification introduces the merge key ! to facilitate map merging. However, the specification does not explicitly define precedence rules when a map contains multiple merge keys or when nested merges are applied. This lack of a defined standard creates uncertainty during serialization and deserialization, particularly when attempting to maintai