TOML / Nested leaf merge
TOML Nested Table 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 .toml advanced leaf mergenested leavesdestination leaf winstomlnested_table_leavesstable_pathnative_read_portable_writenormalize_tracked_layout_merge
Fixture sources
JSON fixture: structuredmerge-fixtures/toml/slice-720-advanced-leaf-merge/nested-table-leaf-merge.json
Compact ruleset: structuredmerge-fixtures/rulesets/toml/slice-720-advanced-leaf-merge/nested-table-leaf-merge.smrules
Fixture view
[patient.demographics.name]
given = "Pat"
family = "Template"
[patient.demographics.contact]
email = "[email protected]"
phone = "555-0100"
[patient.care_plan]
status = "draft"
[patient.care_plan.goals]
mobility = "walk daily"
nutrition = "low sodium"
Contract view
{
"contract_id": "toml-nested-table-leaf-merge",
"format": "toml",
"owners": "nested_table_leaves",
"match": "stable_path",
"read": "native_read_portable_write",
"attach": "normalize_tracked_layout_merge",
"comment_style": "hash_comment",
"render": "toml_pairs_and_tables",
"capabilities": {
"nested_leaf_merge": true,
"destination_leaf_wins": true,
"template_missing_leaf_adds": true
}
}