Skip to content

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

@fmigneault

Description

@fmigneault

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions