Skip to content

Commit 73dd069

Browse files
committed
Update Page type annotation to enforce minimum value constraint
1 parent 8218b9e commit 73dd069

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎facturapi/types/queries.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
MIN_PAGE = 1
88

99
PageSize = Annotated[int, Field(gt=0, le=MAX_PAGE_SIZE)]
10-
Page = Annotated[int, Field(gt=MIN_PAGE)]
10+
Page = Annotated[int, Field(ge=MIN_PAGE)]
1111

1212

1313
class DateFilter(BaseModel):

0 commit comments

Comments
 (0)