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
1 changed files with 2 additions and 0 deletions

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():