Skip to content

Aliases don't work properly with TextUnmarshaler #299

@WGH-

Description

@WGH-

Given

type testStructAB_TextUnmarshaler struct {
	A simpleTextUnmarshaler
	B simpleTextUnmarshaler
}

YAML document

a: &foo hello world
b: *foo

returns an error cannot construct into yaml_test.simpleTextUnmarshaler (TextUnmarshaler), but it should be correctly decoded into

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