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

Process definition with minOccurs=1 and defaultvalue contracdict themselves #342

Open
fmigneault opened this issue Sep 14, 2021 · 0 comments
Assignees

Comments

@fmigneault
Copy link

I noticed in following description that this process provides a region input with both explicit min_occurs=1 and default="DEU".

min_occurs=1,
max_occurs=len(countries()),
default='DEU',

This produces a process description where it is hard to understand what is the expected behaviour. If an input is always required, there should not be a default. Otherwise, min_occurs=0 should be provided and it would be expected that this default is used. Right now, default serves no purpose and is counter intuitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants