示例#1
0
 def __init__(self, validators, msg=None, **kwargs):
     self.validators = validators
     self.msg = msg
     self._schemas = [Schema(val, **kwargs) for val in validators]
示例#2
0
 def __init__(self, validators, **kwargs):
     self.validators = validators
     self.msg = kwargs.pop('msg', None)
     self._schemas = [Schema(val, **kwargs) for val in validators]