diff --git a/crates/jrsonnet-stdlib/src/std.jsonnet b/crates/jrsonnet-stdlib/src/std.jsonnet index 4d994499..1193ccd4 100644 --- a/crates/jrsonnet-stdlib/src/std.jsonnet +++ b/crates/jrsonnet-stdlib/src/std.jsonnet @@ -274,6 +274,12 @@ objectValuesAll(o):: [o[k] for k in std.objectFieldsAll(o)], + objectKeysValues(o):: + [{ key: k, value: o[k] } for k in std.objectFields(o)], + + objectKeysValuesAll(o):: + [{ key: k, value: o[k] } for k in std.objectFieldsAll(o)], + resolvePath(f, r):: local arr = std.split(f, '/'); std.join('/', std.makeArray(std.length(arr) - 1, function(i) arr[i]) + [r]),