Skip to content

Aliases don't work properly with TextUnmarshaler #299

@WGH-

Description

@WGH-

Given

testStructAB_TextUnmarshaler struct {
	A simpleTextUnmarshaler
	B simpleTextUnmarshaler
}

YAML document

a: &foo hello world
b: *foo

Incorrectly decodes to

a:
    value: hello world
b:
    value: ""

But the correct value is

a:
    value: hello world
b:
    value: hello world

This is a problem as of current main (cc10f15) and v4.0.0-rc.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions