diff --git a/.github/utils/direct_requirements.txt b/.github/utils/direct_requirements.txt index 18a3e57d..4d1190fe 100644 --- a/.github/utils/direct_requirements.txt +++ b/.github/utils/direct_requirements.txt @@ -1,7 +1,7 @@ -fastapi-slim>=0.116.1 +fastapi-slim>=0.117.1 hypercorn>=0.17.3 oteapi-core>=1.0.0 -pydantic>=2.11.7 +pydantic>=2.11.9 pydantic-settings>=2.10.1 redis>=6.4.0 tenacity>=9.1.2 diff --git a/app/main.py b/app/main.py index 9e142ee5..bfe37ba2 100644 --- a/app/main.py +++ b/app/main.py @@ -149,7 +149,7 @@ def create_app() -> FastAPI: app.include_router( router, responses={ - status.HTTP_422_UNPROCESSABLE_ENTITY: { + status.HTTP_422_UNPROCESSABLE_CONTENT: { "description": "Validation Error", "model": HTTPValidationError, }, diff --git a/app/models/error.py b/app/models/error.py index 03d832a7..66317531 100644 --- a/app/models/error.py +++ b/app/models/error.py @@ -45,7 +45,7 @@ def httpexception_404_item_id_does_not_exist( def httpexception_422_resource_id_is_unprocessable(resource_id: str) -> HTTPException: """return 422 Exception with resource_id.""" return HTTPException( - status_code=status.HTTP_422_UNPROCESSABLE_ENTITY, + status_code=status.HTTP_422_UNPROCESSABLE_CONTENT, detail=[ { "loc": ["resource_id"], diff --git a/app/routers/dataresource.py b/app/routers/dataresource.py index 1222ab39..9f0fcee7 100644 --- a/app/routers/dataresource.py +++ b/app/routers/dataresource.py @@ -29,7 +29,7 @@ tags=["dataresource"], responses={ status.HTTP_404_NOT_FOUND: {"model": HTTPNotFoundError}, - status.HTTP_422_UNPROCESSABLE_ENTITY: {"model": HTTPValidationError}, + status.HTTP_422_UNPROCESSABLE_CONTENT: {"model": HTTPValidationError}, }, ) diff --git a/requirements.txt b/requirements.txt index 980daea9..231e2848 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,20 +3,20 @@ annotated-types==0.7.0 anyio==4.10.0 async-timeout==5.0.1 bcrypt==4.3.0 -billiard==4.2.1 +billiard==4.2.2 celery==5.5.3 certifi==2025.8.3 -cffi==1.17.1 +cffi==2.0.0 charset-normalizer==3.4.3 -click==8.2.1 +click==8.3.0 click-didyoumean==0.3.1 click-plugins==1.1.1.2 click-repl==0.3.0 -cryptography==45.0.6 +cryptography==46.0.1 diskcache==5.6.3 et_xmlfile==2.0.0 exceptiongroup==1.3.0 -fastapi-slim==0.116.1 +fastapi-slim==0.117.1 h11==0.16.0 h2==4.3.0 hpack==4.1.0 @@ -32,13 +32,13 @@ paramiko==4.0.0 pillow==11.3.0 priority==2.0.0 prompt_toolkit==3.0.52 -psycopg==3.2.9 -psycopg-binary==3.2.9 -pycparser==2.22 -pydantic==2.11.7 +psycopg==3.2.10 +psycopg-binary==3.2.10 +pycparser==2.23 +pydantic==2.11.9 pydantic-settings==2.10.1 pydantic_core==2.33.2 -PyNaCl==1.5.0 +PyNaCl==1.6.0 pysftp==0.2.9 python-dateutil==2.9.0.post0 python-dotenv==1.1.1 @@ -46,7 +46,7 @@ redis==6.4.0 requests==2.32.5 six==1.17.0 sniffio==1.3.1 -starlette==0.47.3 +starlette==0.48.0 taskgroup==0.2.2 tenacity==9.1.2 tomli==2.2.1