Skip to content

Commit 8ed24c4

Browse files
committed
release v1.1.5
1 parent cd826db commit 8ed24c4

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v1.1.5 2023-05-06
2+
3+
- feat: Add operation_id_callback to v1.x (#69)
4+
15
## v1.1.4 2022-05-05
26

37
- fix: Trailing slash in APIBlueprint

flask_openapi3/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# @Author : llc
33
# @Time : 2022/4/30 9:20
44

5-
__version__ = '1.1.4'
5+
__version__ = '1.1.5'

tests/test_restapi.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class NotFoundResponse(BaseModel):
2121
code: int = Field(-1, description="Status Code")
2222
message: str = Field("Resource not found!", description="Exception Information")
2323

24+
2425
def get_operation_id_for_path_callback(*, name: str, path: str, method: str) -> str:
2526
return name
2627

@@ -30,8 +31,7 @@ def get_operation_id_for_path_callback(*, name: str, path: str, method: str) ->
3031
info=info,
3132
security_schemes=security_schemes,
3233
responses={"404": NotFoundResponse},
33-
operation_id_callback=get_operation_id_for_path_callback,
34-
34+
operation_id_callback=get_operation_id_for_path_callback
3535
)
3636
app.config["TESTING"] = True
3737
security = [{"jwt": []}]

0 commit comments

Comments
 (0)