std.objectHas(o, f):
Returns true if the given object has the field (given as a string), otherwise false. Raises an error if the arguments are not object and string respectively. Returns false if the field is hidden.
std.objectHasAll(o, f):
As std.objectHas but also includes hidden fields.
This issue depends on #5.
It is possible to check field’s visibility using
std.objectHas
andstd.objectHasAll
standard library functions.Ref: https://jsonnet.org/ref/stdlib.html
std.objectHas(o, f): Returns
true
if the given object has the field (given as a string), otherwisefalse
. Raises an error if the arguments are notobject
andstring
respectively. Returnsfalse
if the field is hidden.std.objectHasAll(o, f): As std.objectHas but also includes hidden fields.