TOOP4EU / toop

TOOP Specification and Documentation and Code Lists and Artefacts etc.
Other
1 stars 0 forks source link

Documentation says "OR", but xsd allows both elements #1

Open SiwMeckelborg opened 6 years ago

SiwMeckelborg commented 6 years ago

In the documentation: http://wiki.ds.unipi.gr/display/TOOP/TOOP+Exchange+Data+Model+Specification#TOOPExchangeDataModelSpecification-DataModel:TOOPRequest

It says a request (and corresponding response) can have either the DataElementRequest OR the DocumentRequest. In the xsd, however, both elements are present in a sequence, and both are allowed.

Suggest to either change the documentation (this is the preferred option), or add a xs:choice for these two elements, ensuring that one, and only one is present.

phax commented 6 years ago

@SiwMeckelborg welcome to this fabulous project :D Yes it is like this in the XSD, but we're solving this on the application level, because at some point in time, when multiple responses are aggregated, it might be possible that both are filled.