Skip to content

0.12.23

Compare
Choose a tag to compare
@uriyyo uriyyo released this 17 Apr 15:55
· 381 commits to main since this release
16969d0
  • Add limit to CursorParams.size field. #1119
  • Strip extra lines before and after the _WARNING_MSG. #1117

Thanks to @barsikus007 and @frost-nzcr4!

Breaking changes:

CursorPage now has default upper limit for size query param (size should be <= 100).

If you want to remove this restriction and use old behavior, you can customize CursorPage:

from fastapi_pagination.cursor import CursorPage as BaseCursorPage
from fastapi_pagination.customization import UseParamsFields, CustomizedPage


CursorPage = CustomizedPage[
    BaseCursorPage,
    UseParamsFields(
        size=Query(50, ge=0),
    ),
]