Skip to content

Commit

Permalink
chore: bump version (#360)
Browse files Browse the repository at this point in the history
* bump version

Signed-off-by: Keming <[email protected]>

* implicit return

Signed-off-by: Keming <[email protected]>

---------

Signed-off-by: Keming <[email protected]>
  • Loading branch information
kemingy authored Nov 7, 2023
1 parent 0472090 commit 616541d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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.7"
version = "1.2.8"
dynamic = []
description = "generate OpenAPI document and validate request&response with Python annotations."
readme = "README.md"
Expand Down
6 changes: 4 additions & 2 deletions spectree/plugins/falcon_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def validate(

before(_req, _resp, req_validation_error, _self)
if req_validation_error:
return
return None

result = func(*args, **kwargs)

Expand All @@ -243,6 +243,8 @@ def validate(

after(_req, _resp, resp_validation_error, _self)

# `falcon` doesn't use this return value. However, some users may have
# their own processing logics that depend on this return value.
return result

@staticmethod
Expand Down Expand Up @@ -325,7 +327,7 @@ async def validate(

before(_req, _resp, req_validation_error, _self)
if req_validation_error:
return
return None

result = (
await func(*args, **kwargs)
Expand Down

0 comments on commit 616541d

Please sign in to comment.