aws_lambda_decorators/validators.py
def validate(value=None):
        """
        Check if the given value is non empty.

        Args:
            value (any): Value to be validated.
        """
        if value is None or value in (0, 0.0, 0j):
            return True

        return bool(value)

        Check if the given value is non empty.

        Args:
            value (any): Value to be validated.
        
Check if the given value is non empty.
Check if the given value is non empty .
def validate(value=None):
        if value is None or value in (0, 0.0, 0j):
            return True
        return bool(value)
def validate ( value = None ) : if value is None or value in ( 0 , 0.0 , 0j ) : return True return bool ( value )
Check if the given value is non empty.
Check if the given value is non empty .
"""
        Check if the given value is non empty.

        Args:
            value (any): Value to be validated.
        """
value
Value to be validated.
Value to be validated .