Skip to content

Commit e22d0a9

Browse files
committed
fix(apphub): fix FastAPI compatibility and bump to 0.2.7, release 2.2.15
1 parent c6f55ce commit e22d0a9

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

apphub/src/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ async def custom_swagger_ui_html():
9595
"""
9696

9797
# remove 422 responses
98-
async def remove_422_responses():
98+
def remove_422_responses():
9999
openapi_schema = app.openapi()
100100
for path, path_item in openapi_schema["paths"].items():
101101
for method, operation in path_item.items():
102102
operation["responses"].pop("422", None)
103103
app.openapi_schema = openapi_schema
104104

105-
app.add_event_handler("startup", remove_422_responses)
105+
remove_422_responses()
106106

107107
#custom error handler
108108
@app.exception_handler(CustomException)

changelog_latest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
- Upgrade Moodle to version 5.1.3
44
- Upgrade deployment and fix CVE-2026-33186 and CVE-2026-1229
5+
- Upgrade apphub to 0.2.7 and fix FastAPI compatibility issue

docker/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
APPHUB_VERSION=0.2.6
1+
APPHUB_VERSION=0.2.7
22
DEPLOYMENT_VERSION=2.39.1
33
GIT_VERSION=1.25.5
44
PROXY_VERSION=2.12.7

docker/apphub/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
FROM python:3.10-slim-bullseye
77
LABEL maintainer="Websoft9<help@websoft9.com>"
8-
LABEL version="0.2.6"
8+
LABEL version="0.2.7"
99

1010
WORKDIR /websoft9
1111

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.2.14",
2+
"version": "2.2.15",
33
"plugins": {
44
"portainer": "0.1.4",
55
"nginx": "0.1.0",

0 commit comments

Comments
 (0)