-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Unsupported merges #41
Comments
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
looks like this is probably a duplicate of #300 now |
There are many duplicates to this feature request: #353, #617, #638, #683. @Ortham proposed an implementation in #300 back in 2015 (!) that was garnering a lot of support, then closed in 2021 because it's not officially in the spec: #300 (comment) Now:
Based on this, can we re-open the discussion to consider merge keys as a feature (even if optionally built) of yaml-cpp? Or should this issue be closed for the same reason that #300 was closed? |
This is a good point, and I'm not sure. This is a pretty big feature, and would need thorough review. I'm the only maintainer, and I unfortunately don't have time for it. I also (as you can see by this history of this feature) never really thought much of this feature. I've been unable to find someone to help maintain this project (any takers?). If I found someone who I trusted and is willing to support and review this feature, then I'd be open to accepting this feature. Also, thanks for the links to the other feature requests, and they should at least be closed as dupes of this one. |
Support for YAML Merge keys ( <<: [*dict1, *dict2] ) is added. The merge key is a specific scalar with value << (and tag !!merge) that implies that during node construction, the map (or sequence of maps) are merged into the current map. The priority rules are that each key from maps within the value associated with << are added iff the key is not yet present in the current map (and first map gets higher priority). Test cases have been added accordingly.
Support for YAML Merge keys ( <<: [*dict1, *dict2] ) is added. The merge key is a specific scalar with value << (and tag !!merge) that implies that during node construction, the map (or sequence of maps) are merged into the current map. The priority rules are that each key from maps within the value associated with << are added iff the key is not yet present in the current map (and first map gets higher priority). Test cases have been added accordingly.
… update-lib-and-merge-operator * github.com:jbeder/yaml-cpp: Fix merge-key handling in case the dictionary contains a sub-dictionary Adding support for handling YAML Merge Key (jbeder#41)
* merge-operator: Fix merge operator support (that can be visible by iterating through the node) Fix merge-key handling in case the dictionary contains a sub-dictionary Adding support for handling YAML Merge Key (jbeder#41)
* merge-operator: Fix order for merging iterator Remove cast to const from MergeMapCollection() Fix merge operator support (that can be visible by iterating through the node) Fix merge-key handling in case the dictionary contains a sub-dictionary Adding support for handling YAML Merge Key (jbeder#41)
* merge-operator: Fix order for merging iterator Fix merge operator support (that can be visible by iterating through the node) Fix merge-key handling in case the dictionary contains a sub-dictionary Adding support for handling YAML Merge Key (jbeder#41)
Original issue reported on code.google.com by
pole...@gmail.com
on 8 Sep 2009 at 10:38The text was updated successfully, but these errors were encountered: