Closed thomasmitchell closed 2 years ago
It's also possible to attempt combining all combinations of dot-joined key names if a path cannot be found in the datastructure, which would provide a no-user-change-required way of doing this, but I'm not sure if that would have too large of a computation-time impact for such a niche edge-case.
This extends to hashes as well
---
stuff:
beep.boop: foo
want: (( grab stuff.beep.boop ))
Existing workaround is to reference both from a pruned source that can be referenced, like:
---
meta:
thing: foo
stuff:
beep.boop: (( grab meta.thing ))
want: (( grab meta.thing ))
stuff.[beep.boop].properties.thing
is probably the right option. I think this only affects finding objects inside arrays based off a key (name/id/key properties), seems to be achievable via the square-bracket notation with straight up hashes:
closing as stale
results in:
stuff.[beep.boop].properties.thing
stuff."beep.boop".properties.thing
stuff.beep\.boop.properties.thing
these might be valid ways to escape such a path. Do you think that such an implementation would conflict greatly with existing templates?