diff --git a/fastapi/encoders.py b/fastapi/encoders.py index 8491f4895..ea1f2d00e 100644 --- a/fastapi/encoders.py +++ b/fastapi/encoders.py @@ -82,6 +82,7 @@ ENCODERS_BY_TYPE: Dict[Type[Any], Callable[[Any], Any]] = { AnyUrl: str, } + def jsonable_encoder( obj: Annotated[ Any,