Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SiwMeckelborg opened this issue Jun 12, 2018 · 1 comment
Open

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

SiwMeckelborg opened this issue Jun 12, 2018 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@SiwMeckelborg
Copy link

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.

@SiwMeckelborg SiwMeckelborg changed the title Documentation says "OR", but xsd allowes both elements Documentation says "OR", but xsd allows both elements Jun 12, 2018
@phax
Copy link
Member

phax commented Jun 12, 2018

@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.

@phax phax self-assigned this Jun 12, 2018
@phax phax added the question Further information is requested label Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants