springwolf-core icon indicating copy to clipboard operation
springwolf-core copied to clipboard

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

Open sam0r040 opened this issue 2 years ago • 0 comments

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.

sam0r040 avatar Mar 06 '24 08:03 sam0r040