'Allow adding validation on each payload key
by defining `validate_{key_name}`'

def validate(self, options):

    for (key, value) in options.items():
        validate_method = getattr(self, ('validate_%s' % key), None)
        if validate_method:
            validate_method(value)
