You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ jsonnet -e '[x for x in {a: "foo"}]'
RUNTIME ERROR: Object index must be string, got double.
thunk <x>
<cmdline>:1:2 thunk <array_element>
During manifestation
The text was updated successfully, but these errors were encountered:
Probably the code is doing x[i] for i in std.range(0, std.length({a: "foo"})} and length of an object is the number of keys. Best thing to do right now is to put an explicit check in that it's an array and not an object.
The text was updated successfully, but these errors were encountered: