Skip to content

Commit a6c0c98

Browse files
committed
@pcrespov review: use same constant
1 parent 5e2314a commit a6c0c98

File tree

1 file changed

+4
-2
lines changed
  • packages/models-library/src/models_library/api_schemas_webserver

1 file changed

+4
-2
lines changed

packages/models-library/src/models_library/api_schemas_webserver/storage.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ class ListPathsQueryParams(InputSchema, CursorQueryParameters):
4949
size: Annotated[
5050
int,
5151
Field(
52-
description="maximum number of items to return (pagination)", ge=1, lt=1000
52+
description="maximum number of items to return (pagination)",
53+
ge=1,
54+
lt=MAX_NUMBER_OF_PATHS_PER_PAGE,
5355
),
54-
] = 20
56+
] = DEFAULT_NUMBER_OF_PATHS_PER_PAGE
5557

5658

5759
class DataExportPost(InputSchema):

0 commit comments

Comments
 (0)