Skip to content

Commit

Permalink
fix: assign the resp_validation_err (#375)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <kemingy94@gmail.com>
  • Loading branch information
kemingy authored Jun 18, 2024
1 parent c8d5118 commit 8967d2f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "spectree"
version = "1.2.9"
version = "1.2.10"
dynamic = []
description = "generate OpenAPI document and validate request&response with Python annotations."
readme = "README.md"
Expand Down
1 change: 1 addition & 0 deletions spectree/plugins/quart_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ async def validate(
)
except ValidationError as err:
response = await make_response(err.errors(), 500)
resp_validation_error = err
else:
response = await make_response(
(
Expand Down
1 change: 1 addition & 0 deletions spectree/plugins/starlette_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ async def validate(
)
except ValidationError as err:
response = JSONResponse(err.errors(), 500)
resp_validation_error = err

after(request, response, resp_validation_error, instance)

Expand Down

0 comments on commit 8967d2f

Please sign in to comment.