Skip to content

XML Examples for Arrays/Lists are missing the list-item-element #642

@sam0r040

Description

@sam0r040

Describe the bug
Given the following class definition

@XmlRootElement(name = "ArrayFoo")
private static class ArrayFoo {
    private List<SimpleFoo> fList;
}

The following example should be generated:

<ArrayFoo>
    <flist>
        <SimpleFoo>
            <b>true</b>
            <s>string</s>
        </SimpleFoo>
    </flist>
</ArrayFoo>

But currently the following example is generated:

<ArrayFoo>
    <flist>
        <b>true</b>
        <s>string</s>
    </flist>
</ArrayFoo>

Dependencies and versions used
1.0.0
Code example
If possible, an example project or snippet that reproduces the bug.

Stack trace and error logs
If an exception has been thrown or an error was logged by springwolf.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions