extVars are always strings?

25 views
Skip to first unread message

Rudo Thomas (seznam.cz)

unread,
Aug 11, 2023, 10:20:52 AM8/11/23
to Jsonnet
Hello.

The docs of the std package as well as the language spec imply or outright say that external variables are always of the string type. This quick experiment with the go-jsonnet interpreter show that they don't have to be:
  $ jsonnet --ext-code foo=true --string -e 'std.type(std.extVar("foo"))'
  boolean


Could anyone with the powers pull it, please? :)

Thanks.

Rudo.
Reply all
Reply to author
Forward
0 new messages