Closed cemerick closed 4 years ago
Given
foo: &foo 5 bar: *foo
libfyaml/src/fy-tool -m json foo.yaml yields:
libfyaml/src/fy-tool -m json foo.yaml
{ "foo": 5, "bar": "foo" }
I would expect an error message and nonzero exit code when attempting to emit JSON corresponding to any input YAML that contains unresolved aliases.
(Note that alias resolution when emitting JSON appears to work just fine.)
You will now get an error, so closing.
foo.yaml:2:7: error: aliases not allowed in JSON emit mode bar: *foo ^~~
Given
libfyaml/src/fy-tool -m json foo.yaml
yields:I would expect an error message and nonzero exit code when attempting to emit JSON corresponding to any input YAML that contains unresolved aliases.
(Note that alias resolution when emitting JSON appears to work just fine.)