From 634c4d6bb53d702e4bffd2bf51b9540a81cf9153 Mon Sep 17 00:00:00 2001 From: Keming Date: Wed, 9 Nov 2022 22:37:46 +0800 Subject: [PATCH] fix: only call `after` at the end of the validation (#274) * fix: only call `after` at the end of the validation Signed-off-by: Keming * version Signed-off-by: Keming Signed-off-by: Keming --- setup.py | 2 +- spectree/plugins/flask_plugin.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 9da96f99..1d90afaa 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ setup( name="spectree", - version="1.0.0a3", + version="1.0.0a4", license="Apache-2.0", author="Keming Yang", author_email="kemingy94@gmail.com", diff --git a/spectree/plugins/flask_plugin.py b/spectree/plugins/flask_plugin.py index 8ec40d45..9e880afb 100644 --- a/spectree/plugins/flask_plugin.py +++ b/spectree/plugins/flask_plugin.py @@ -193,7 +193,6 @@ def validate( before(request, response, req_validation_error, None) if req_validation_error: - after(request, response, req_validation_error, None) assert response # make mypy happy abort(response)