Skip to content

Commit

Permalink
Merge e5b19f0 into 20a960b
Browse files Browse the repository at this point in the history
  • Loading branch information
strongbugman committed Oct 6, 2018
2 parents 20a960b + e5b19f0 commit 82bdd43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flasgger/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def get_def_models(self, definition_filter=None):
}

def get_apispecs(self, endpoint='apispec_1'):
if endpoint in self.apispecs:
if not self.app.debug and endpoint in self.apispecs:
return self.apispecs[endpoint]

spec = None
Expand Down Expand Up @@ -550,7 +550,7 @@ def before_request(): # noqa
path = '/'.join(subs)
path_key = path + request.method.lower()

if path_key in self.parsers:
if not self.app.debug and path_key in self.parsers:
parsers = self.parsers[path_key]
schemas = self.schemas[path_key]
else:
Expand Down

0 comments on commit 82bdd43

Please sign in to comment.