aws_lambda_decorators/classes.py
def validate_path(self, value, group_errors=False):
        """
        Validates a value against the passed in validators

        Args:
            value: value to be validated
            group_errors (bool): flag that indicates if error messages are to be grouped together
                (if set to False, validation will end on first error)

        Returns:
            A list of validation key/pair errors
        """
        key = self._path.split(PATH_DIVIDER)[-1]

        errors = self.validate(value, group_errors)

        return {key: errors} if errors else {}

        Validates a value against the passed in validators

        Args:
            value: value to be validated
            group_errors (bool): flag that indicates if error messages are to be grouped together
                (if set to False, validation will end on first error)

        Returns:
            A list of validation key/pair errors
        
Validates a value against the passed in validators
Validates a value against the passed in validators
def validate_path(self, value, group_errors=False):
        key = self._path.split(PATH_DIVIDER)[-1]
        errors = self.validate(value, group_errors)
        return {key: errors} if errors else {}
def validate_path ( self , value , group_errors = False ) : key = self . _path . split ( PATH_DIVIDER ) [ - 1 ] errors = self . validate ( value , group_errors ) return { key : errors } if errors else { }
Validates a value against the passed in validators
Validates a value against the passed in validators
"""
        Validates a value against the passed in validators

        Args:
            value: value to be validated
            group_errors (bool): flag that indicates if error messages are to be grouped together
                (if set to False, validation will end on first error)

        Returns:
            A list of validation key/pair errors
        """
A list of validation key/pair errors
A list of validation key / pair errors
self
value
value to be validated
value to be validated
group_errors
flag that indicates if error messages are to be grouped together
(if set to False, validation will end on first error)
flag that indicates if error messages are to be grouped together ( if set to False validation will end on first error )