Skip to content

Commit

Permalink
Keep track of resp_validation_error in flask plugin (#373)
Browse files Browse the repository at this point in the history
This needs to be passed on to the after handler
  • Loading branch information
nikos-hj authored Jun 18, 2024
1 parent e45895b commit c8d5118
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spectree/plugins/flask_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ def validate(
)
except ValidationError as err:
response = make_response(err.errors(), 500)
resp_validation_error = err
else:
response = make_response(
(
Expand Down

0 comments on commit c8d5118

Please sign in to comment.