validators#
RequiredFieldCombinationValidatorBase#
Source code in src/apps/common/serializers/validators.py
field_value_count(value)
#
Count how many non-empty field values exist.
Source code in src/apps/common/serializers/validators.py
AnyOf#
Bases: RequiredFieldCombinationValidatorBase
Require at least one of fields to be non-empty.
Source code in src/apps/common/serializers/validators.py
OneOf#
Bases: RequiredFieldCombinationValidatorBase
Require exactly one of fields to be non-empty.
Source code in src/apps/common/serializers/validators.py
AllOf#
Bases: RequiredFieldCombinationValidatorBase
Require all of listed fields.