Ensuring that endpoints without output_schema work as expected (#568)

This commit is contained in:
kevgliss 2016-12-07 15:40:29 -08:00 committed by GitHub
parent d7c0e2ec35
commit f63ccd033d

View File

@ -115,6 +115,8 @@ def wrap_errors(messages):
def unwrap_pagination(data, output_schema):
if not output_schema:
return data
if isinstance(data, dict):
if 'total' in data.keys():