Skip to content

Commit

Permalink
fix: only call after at the end of the validation (#274)
Browse files Browse the repository at this point in the history
* fix: only call `after` at the end of the validation

Signed-off-by: Keming <kemingy94@gmail.com>

* version

Signed-off-by: Keming <kemingy94@gmail.com>

Signed-off-by: Keming <kemingy94@gmail.com>
  • Loading branch information
kemingy authored Nov 9, 2022
1 parent f85762a commit 634c4d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion spectree/plugins/flask_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 634c4d6

Please sign in to comment.