From c55d0e26b0a73fa2a577a37abd902f0bb89d2da0 Mon Sep 17 00:00:00 2001 From: Paul Sanders Date: Thu, 26 Feb 2026 08:56:43 -0500 Subject: [PATCH] Remove depreciated fastapi orjson FastAPI is removing the ORJSONResponse and handling this directly with pydantic now --- src/fastapi/fastapi_files.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/fastapi/fastapi_files.rs b/src/fastapi/fastapi_files.rs index e4e3f725..3c6bec8b 100644 --- a/src/fastapi/fastapi_files.rs +++ b/src/fastapi/fastapi_files.rs @@ -165,7 +165,6 @@ from collections.abc import AsyncGenerator from contextlib import asynccontextmanager from fastapi import FastAPI, Request, Response -from fastapi.responses import ORJSONResponse from loguru import logger from starlette.exceptions import HTTPException as StarletteHTTPException from starlette.middleware.cors import CORSMiddleware @@ -226,7 +225,6 @@ app = FastAPI( title=settings.TITLE, lifespan=lifespan, openapi_url=openapi_url, - default_response_class=ORJSONResponse, )