Error when using BytesUnmarshaler
together with array aliases
#431
Labels
bug
Something isn't working
BytesUnmarshaler
together with array aliases
#431
Describe the bug
When an anchor is defined for an array and it is aliased in a node which has a custom unmarshaler, the unmarshaling fails if the indentation of the anchor and the alias do not match.
To Reproduce
main.go
:test.yml
:When running
go run main.go
, the following error is printed:Expected behavior
The alias should be parsed without error.
Version Variables
Additional context
The
test.yml
file is valid YAML according to, e.g., https://www.yamllint.com/. We strongly suspect that the error stems from a simple string replacement, where aliases are simply replaced with the string content of the anchor before unmarshaling.The text was updated successfully, but these errors were encountered: