Skip to content

Commit

Permalink
Make limit in list more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSuperiorStanislav committed Jun 27, 2024
1 parent 9be935e commit 95cc6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi_rest_framework/views/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class GeneratedPaginationParams(
limit: int = pydantic.Field(
fastapi.Query(
default=self.list_limit_default,
gt=0,
ge=1,
le=self.list_limit_max,
),
)
Expand Down

0 comments on commit 95cc6b3

Please sign in to comment.