def load_data(self, data):
"""
Deserialize data to an object defined by its Schema and raises a
ValidationError if there are eny errors.
:param data:
:return:
"""
data, errors = self.load(data)
if errors:
raise ApiValidationError(errors)
return data
评论列表
文章目录