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

Properly testing input multiplicity #58

Open
jerstlouis opened this issue Feb 12, 2023 · 2 comments
Open

Properly testing input multiplicity #58

jerstlouis opened this issue Feb 12, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@jerstlouis
Copy link
Member

Describe the bug
The ETS does not currently seem to properly test multiplicity of inputs.

Expected behavior
The ETS should use the array form for inputs with multiplicity > 1, and if minOccurs is < 2, it should also test the singular form (without the extra brackets).

Additional context
In the sample Echo process, imagesInput has a minOccurs of 1 and a maxOccurs of 150.
The ETS should test various forms e.g.:

  • "imagesInput" : [ "<base64 TIFF image1>", "<base64 TIFF image2>" ]
  • "imagesInput" : "<base64 TIFF image1>"
  • "imagesInput" : { "value": "<base64 TIFF image1>", "format": { "encoding": "base64", "mediaType": "image/tiff; application=geotiff" } }
  • "imagesInput" : [ { "href": "http://example.com/image1.tiff" }, { "href": "http://example.com/image2.tiff", "type": "image/tiff; application=geotiff" } ]
  • "imagesInput" : { "href": "http://example.com/image1.tiff" }
  • "imagesInput" : [ { "href": "http://example.com/image1.tiff" }, "<base64 TIFF image2>" ]
  • "imagesInput" : [ ] (error: less than minOccurs)
  • "imagesInput" : null (or input missing; error: less than minOccurs)
@dstenger dstenger added the enhancement New feature or request label Sep 7, 2023
@bpross-52n
Copy link
Collaborator

This issue will be discussed at the SWG meeting on October 16th.

@bpross-52n
Copy link
Collaborator

As there is currently no requirement for testing input multiplicity, we will leave this as open as enhancement for future work.

@dstenger dstenger added this to CITE Aug 1, 2024
@dstenger dstenger moved this to To do in CITE Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: To do
Development

No branches or pull requests

3 participants