sjsonnet icon indicating copy to clipboard operation
sjsonnet copied to clipboard

Implement quote_keys flag for std functions manifestYamlDoc/manifestY…

Open jnyi opened this issue 3 years ago • 1 comments

…amlStream to match official jsonnet doc

Purpose

This PR creates a flag documented in jsonnet official site std library: https://jsonnet.org/ref/stdlib.html for function manifestYamlDoc and manifestYamlStream, it will allow us to generate yaml without quoting the keys.

Test

  • Tested via unit tests.
  • compile sjsonnet using ./mill -i show "sjsonnet[2.13.4]".jvm.assembly and run again a locally created test.jsonnet to output YAML via flag --yaml-out

jnyi avatar Jan 21 '22 05:01 jnyi

Passing the review to @szeiger

lihaoyi-databricks avatar Jan 21 '22 11:01 lihaoyi-databricks