I have the following 2 files:
1.jsonnet
{
a: {
b: {
b1: 1
}
}
}
2.jsonnet
local one = import'1.jsonnet';
one {
a+: {
b+: {
b2: 2
}
}
}
I want to extend the inner object b which is part of a (e.g. add a.b.b2), is there a way to do it without explicitly doing as in 2.jsonnet? The idea is that an object might be a few levels deep and that the user should not care about the inner structure.
Something similar to:
{
bInner::self.a.b,
a : {
b : {
b1 : 1
}
}
}
one {
bInner +: {
b2 : 2
}
}