aws_lambda_decorators/validators.py
def validate(self, value=None):
        """
        Check if a value is in a list of valid values

        Args:
            value (object): object to be validated.
        """
        if value is None:
            return True

        return value in self._condition

        Check if a value is in a list of valid values

        Args:
            value (object): object to be validated.
        
Check if a value is in a list of valid values
Check if a value is in a list of valid values
def validate(self, value=None):
        if value is None:
            return True
        return value in self._condition
def validate ( self , value = None ) : if value is None : return True return value in self . _condition
Check if a value is in a list of valid values
Check if a value is in a list of valid values
"""
        Check if a value is in a list of valid values

        Args:
            value (object): object to be validated.
        """
self
value
object to be validated.
object to be validated .