diff --git a/fastapi_crudrouter/core/_base.py b/fastapi_crudrouter/core/_base.py index e45d33fe..504f670b 100644 --- a/fastapi_crudrouter/core/_base.py +++ b/fastapi_crudrouter/core/_base.py @@ -58,7 +58,7 @@ def __init__( "", self._get_all(), methods=["GET"], - response_model=Optional[List[self.schema]], # type: ignore + response_model=List[self.schema], # type: ignore summary="Get All", dependencies=get_all_route, ) @@ -78,7 +78,7 @@ def __init__( "", self._delete_all(), methods=["DELETE"], - response_model=Optional[List[self.schema]], # type: ignore + response_model=List[self.schema], # type: ignore summary="Delete All", dependencies=delete_all_route, )