Closed NicholasHusin closed 1 year ago
Given the following:
{ ['foo']+: [x] for x in [1]} + { ['foo']+: [x] for x in [2]}
The official implementation of jsonnet would output:
jsonnet
{ "foo": [ 1, 2 ] }
due to the +: used.
+:
However, on sjsonnet, the + in +: seems to be ignored, resulting in
sjsonnet
+
being interpreted as:
{ ['foo']: [x] for x in [1]} + { ['foo']: [x] for x in [2]}
and resulting in:
{ "foo": [ 2 ] }
This causes an inconsistency between jsonnet and sjsonnet.
Should be fixed by https://github.com/databricks/sjsonnet/pull/155
Given the following:
The official implementation of
jsonnet
would output:due to the
+:
used.However, on
sjsonnet
, the+
in+:
seems to be ignored, resulting inbeing interpreted as:
and resulting in:
This causes an inconsistency between
jsonnet
andsjsonnet
.