Open
Description
local foo = {
a: { b: { c: { d: 1234 } } },
e: 1
};
foo + { a.b.c.d: 999 }
It would be really cool if the above (or something along those lines) worked and evaluated to:
{
a: { b: { c: { d: 999 } } },
e: 1
}
To achieve the same in today's jsonnet you would have to write:
local foo = {
a: { b: { c: { d: 1234 } } },
e: 1
};
foo + { a+: { b+: { c+: { d: 9999} }
I don't know how difficult and/or sane this would be to implement, but there is a similar construct in Nix that is quite useful :)