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 #1164

Closed ghost closed 3 months ago

ghost 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


Without this change, test fails. With the change, test passes.

google-cla[bot] commented 3 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.