teemtee / fmf

Flexible Metadata Format
GNU General Public License v2.0
22 stars 28 forks source link

Merging for nested dictionaries defined in root #190

Open lukaszachy opened 1 year ago

lukaszachy commented 1 year ago

Based on the promises of Elasticity and Merging I'd expect this fmf file (either main.fmf or arbitrary name in the fmf root)

a+:
  b+:
    c: d

to produce 'a': {'b': {'c': 'd'} dictionary. However currently 'a+' and 'b+' is kept as key names.

Also the

foo: bar

/child:
    a+:
        b+:
            c: d

keeps 'b+' as key name (the 'a' is correctly named.)

Would be nice if one can use Merging everywhere in the Tree structure.

jscotka commented 1 year ago

Should work well as we've introduced. Probably some feature break this behaviour. I remember I've implemented it in https://github.com/teemtee/fmf/pull/93