YAML / Nested leaf merge
YAML Nested Mapping Leaf Merge
This page has a stable URL for review, documentation, and implementation comparison. The fixture tabs show merge inputs and output; the contract tabs show JSON and compact ruleset renderings with stable IDs and deterministic ownership.
Advanced .yml advanced leaf mergenested leavesdestination leaf winsyamlnested_mapping_leavesstable_pathnative_read_portable_writenormalize_tracked_layout_merge
Fixture sources
JSON fixture: structuredmerge-fixtures/yaml/slice-720-advanced-leaf-merge/nested-mapping-leaf-merge.json
Compact ruleset: structuredmerge-fixtures/rulesets/yaml/slice-720-advanced-leaf-merge/nested-mapping-leaf-merge.smrules
Fixture view
patient:
demographics:
name:
given: Pat
family: Template
contact:
email: [email protected]
phone: 555-0100
care_plan:
status: draft
goals:
mobility: walk daily
nutrition: low sodium
Contract view
{
"contract_id": "yaml-nested-mapping-leaf-merge",
"format": "yaml",
"owners": "nested_mapping_leaves",
"match": "stable_path",
"read": "native_read_portable_write",
"attach": "normalize_tracked_layout_merge",
"comment_style": "hash_comment",
"render": "yaml_mappings_and_sequences",
"capabilities": {
"nested_leaf_merge": true,
"destination_leaf_wins": true,
"template_missing_leaf_adds": true
}
}