Skip to content

Commit f46f29d

Browse files
committed
total is not anymore optional
1 parent f5389e9 commit f46f29d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/service-library/src/servicelib/fastapi/rest_pagination.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from fastapi_pagination.cursor import CursorPage # type: ignore[import-not-found]
55
from fastapi_pagination.customization import ( # type: ignore[import-not-found]
66
CustomizedPage,
7+
UseIncludeTotal,
78
UseParamsFields,
89
)
910
from models_library.api_schemas_storage.storage_schemas import (
@@ -24,5 +25,8 @@
2425
description="Page size",
2526
)
2627
),
28+
UseIncludeTotal(
29+
include_total=False
30+
), # make total field optional as S3 does not provide that
2731
]
2832
CustomizedPathsCursorPageParams: TypeAlias = CustomizedPathsCursorPage.__params_type__ # type: ignore

0 commit comments

Comments
 (0)