google / go-jsonnet

Apache License 2.0
1.63k stars 235 forks source link

std.parseYaml wraps result in an array when string values contain #749

Closed SamuraiPrinciple closed 7 months ago

SamuraiPrinciple commented 7 months ago

Example:

[
  std.parseYaml('a: good--'),
  std.parseYaml('a: bad---'),
]

Produces:

[
   {
      "a": "good--"
   },
   [
      {
         "a": "bad---"
      }
   ]
]
jsonnet -v
Jsonnet commandline interpreter (Go implementation) v0.20.0
SamuraiPrinciple commented 7 months ago

This seems to be the duplicate of:

https://github.com/google/go-jsonnet/issues/673

so I'll close the issue.

johnbartholomew commented 7 months ago

Updated libjsonnet.wasm on jsonnet.org, so this should be fixed on the website now.

SamuraiPrinciple commented 7 months ago

Thanks - much appreciated.