def validate(self):
        """Explicitly validate all the fields."""
        for name, field in self:
            try:
                field.validate_for_object(self)
            except __HOLE__ as error:
                raise ValidationError(
                    "Error for field '{name}'.".format(name=name),
                    error,
                )
dataset/ETHPy150Open beregond/jsonmodels/jsonmodels/models.py/Base.validate