atviriduomenys / spinta

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

Do not add global elements without references. #611

Closed sirex closed 3 weeks ago

sirex commented 1 month ago

If element is defined globally in XSD file and are references from other elements, do not create separate DSA entries, for global elements.

For example if we have:


<element name="a">
  <complexType>
    <attribute ref="b" />
  </complexType>
</element>
<element name="b" />

Since b is reference by a, and b is not referenced by any other element we don't need to add a separate entry in DSA for b.

karina-klinkeviciute commented 1 month ago

fixed as part of #160