Ensuring that endpoints without output_schema work as expected (#568)
This commit is contained in:
parent
d7c0e2ec35
commit
f63ccd033d
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue