equinor / configsuite

Config Suite is the result of recognizing the complexity of software configuration.
Other
7 stars 13 forks source link

Support not allowing empty containers #148

Closed markusdregi closed 4 years ago

markusdregi commented 4 years ago

A very common behaviour is to disallow empty containers (list and dict). It is a bit odd consumers have to write validators for this. I would hence suggest that we start supporting this natively in the schema. My proposed solution would be to implement:

MetaKeys.AllowEmpty -> [True, False]

for list and dict.

markusdregi commented 4 years ago

Duplicate of #149