highsource / highsource/jaxb2-basics

Plugin should not generate List-properties if maxOccurs defaults to 1

Open
#116 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
119
Forks
49
PR merge metrics
No merged PRs in 30d

Description

For the simplify-plugin, all examples in the reference have `choice`-elements with `maxOccurs="unbounded"`, which correctly results in List-properties. But if `maxOccurs` is not specified it defaults to 1, so there should not be List-properties but singular fields.

Example:

```xml




```

should rather result in

```java
@XmlElement(name = "foo", type = String.class)
protected String foo; // no List!
@XmlElement(name = "bar", type = Integer.class)
protected Integer bar; // no List!
```

for usage of ``

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.