mff-uk / dataspecer

https://dataspecer.com
MIT License
22 stars 7 forks source link

Implement "identification of instances not required" in XSD generator #688

Closed jakubklimek closed 3 days ago

jakubklimek commented 5 days ago

Currently, even if "Identifikace instancí tříd" is disabled, the IRI element to hold the identifier is generated in the resulting XSD, requiring the common schema to be imported.

image

This is because the option was added after the functionality was implemented in Dataspecer.

Now, this is required in XSD generation. 1) do not generate <xs:element minOccurs="0" ref="c:iri"/> where identification is disabled 2) If the common (c) namespace is not used in the XSD, do not import it at all.