This PR adds a AindModel validator that checks for fields with the suffix _unit.
If there is a matching variable name for a unit named name_unit then the validator ensures that if name is set, the unit also needs to be set.
If there are multiple variables matching the pattern rootname_* (where * can be anything) for a unit named rootname_unit then the validator ensures that if any of the variables are set, the unit is also set.
This PR adds a
AindModel
validator that checks for fields with the suffix_unit
.If there is a matching variable
name
for a unit namedname_unit
then the validator ensures that ifname
is set, the unit also needs to be set.If there are multiple variables matching the pattern
rootname_*
(where * can be anything) for a unit namedrootname_unit
then the validator ensures that if any of the variables are set, the unit is also set.