atviriduomenys / spinta

Spinta is a framework to describe, extract and publish data (a DEP Framework).
MIT License
10 stars 4 forks source link

in conversion XSD to DSA, complex content only works when extension is abstract #604

Closed karina-klinkeviciute closed 3 weeks ago

karina-klinkeviciute commented 2 months ago

XSD files might have complexContent tag which is used together with complexType and means that this complexType can extend another complexType.

When this happens, the elements in both contentType definitions should be joined together.

Now, all files of Registrų centras which have complexContent are extending abstract complexType items. For this, it is not necessary to join those content types together, it's enough to use the one that extends the other.

But in a more generic case, both those complexType elements should be joined together and elements or properties from both of them should be added as models or properties.

karina-klinkeviciute commented 1 month ago

done as a part of #160