Closed damilareisaac closed 2 months ago
Hi @damilareisaac,
Sorry for long response.
It will look like this:
from fastapi_pagination.customization import CustomizedPage, UseParamsFields, UseName
MyPage = CustomizedPage[
Page,
UseName("Paginated"),
UseParamsFields(size=Query(20, ge=1, le=50)),
]
Page = Page.with_custom_options(cls_name= "Paginated", size=Query(20, ge=1, le=50))
I have the code above which was currently working but got a depreciation warning
I am trying to get a direct equivalent of this using the new CustomiizedPage but to no avail