Currently Spinta generate multiple options for each choice, but in this case, since maxOccurs="unbounded", choice itself can be repeated multiple times, with either a or b, which in the end means, that either a or b can appear multiple times in any order.
When we have XSD like this:
This means, that there can be any number of
a
andb
elements, basically this is the same as:Currently Spinta generate multiple options for each choice, but in this case, since
maxOccurs="unbounded"
, choice itself can be repeated multiple times, with eithera
orb
, which in the end means, that eithera
orb
can appear multiple times in any order.We should interpret these elements as optional.
If
maxOccurs="1"
, for example:Then we can generate multiple models with either
a
orb
.