google / jsonnet

Jsonnet - The data templating language
http://jsonnet.org
Apache License 2.0
6.98k stars 440 forks source link

Resolve anchors after parsing YAML #1165

Closed puremourning closed 1 month ago

puremourning commented 3 months ago

rapidyaml seems to choke on trees which contain anchors (or perhaps, strictly, references to them) when returning JSON.

To avoid this aggressively resolve anchors/references when parsing YAML into JSON and then into our own model.

Fixes #1162


test fails prior to this change, passes after.

apologies for the spam, i raised the request with the wrong account (twice :(). I have signed the CLA!