From f63ccd033d8cd38cf0cbf47fbed0253e4e682c22 Mon Sep 17 00:00:00 2001 From: kevgliss Date: Wed, 7 Dec 2016 15:40:29 -0800 Subject: [PATCH] Ensuring that endpoints without output_schema work as expected (#568) --- lemur/common/schema.py | 2 ++ 1 file changed, 2 insertions(+) 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():