def errors(self):
# type: () -> Dict[Text, List[Dict[Text, Text]]]
"""
Returns a dict of error messages generated by the Filter, in a
format suitable for inclusion in e.g., an API 400 response
payload.
E.g.::
{
'authToken': [
{
'code': 'not_found',
'message':
'No AuthToken found matching this value.',
},
],
'data.foobar': [
{
'code': 'unexpected',
'message': 'Unexpected key "foobar".',
},
],
# etc.
}
"""
return self.get_errors()
评论列表
文章目录