Spinta is a framework to describe, extract and publish data (a DEP Framework).
MIT License
10
stars
4
forks
source link
In situations when we have a ref element with one child ref element which is an array (`maxOccurs=unbound`), we skip this model and add it's child model as `backref`, and add the `ref` property to that child element. But this works not in all cases. #613
In situations when we have a ref element with one child ref element which is an array (maxOccurs=unbound), we skip this model and add it's child model as backref, and add the ref property to that child element.
For example, in this case we have XSD element REGISTRAS which has child element ADRESAI which has a reference to ADRESAS which is unbounded.
In situations when we have a ref element with one child ref element which is an array (maxOccurs=unbound), we skip this model and add it's child model as backref, and add the ref property to that child element.
For example, in this case we have
XSD
elementREGISTRAS
which has child elementADRESAI
which has a reference toADRESAS
which is unbounded.In this case, DSA should look like this:
Registras /REGISTRAS id integer ID atributai backref Registras adresai[] backref Adresas
Adresas /REGISTRAS/ADRESAI/ADRESAS registras ref Registas
This already works in the most generic cases, for example where the
XSD
structure is like this:But it might not work in cases where we have, let's say,
all
instead of sequence.