diff --git a/lemur/common/schema.py b/lemur/common/schema.py index 71071c01..e01081a8 100644 --- a/lemur/common/schema.py +++ b/lemur/common/schema.py @@ -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():