Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Struct field with optional child element isn't parsed when child is missing #513

@srowen

Description

@srowen

Consider:

<Foo>
    <Bar bing="123">
    </Bar>
    <Bar bing="345">
        <Baz/>
    </Bar>
</Foo>

Bar has an optional child element Baz. It turns out that when this child is missing, as in the first <Bar> tag, the element is skipped. This results in the array-valued Bar having 1 element, not 2.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions