RUNTIME ERROR: expected string result, got: object

404 views
Skip to first unread message

Michael Wilkerson

unread,
Jul 29, 2021, 4:46:03 PM7/29/21
to Jsonnet
Hello,

When attempting to run Jsonnet commands on jsonnet files I'm receiving runtime errors. I'm new to Jsonnet and I could use some pointer and suggestions on how to resolve this..........

Also, what is the best way to convert Jsonnet files back to YAML?

thanks and regards,
Michael

Paul Rudin

unread,
Jul 29, 2021, 5:03:29 PM7/29/21
to Michael Wilkerson, Jsonnet
If you're seeing errors the best thing is probably to post some code that gives an error.

To generate yaml use std.manifestYamlDoc, or just generate json and use that (json is a subset of yaml), or else there are loads of tools for rendering json as idiomatic yaml.

--
You received this message because you are subscribed to the Google Groups "Jsonnet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsonnet+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jsonnet/21ccfddf-c773-419c-8d51-5b68c6afdd0en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages