You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think PaginatedFindAll should return the defaultSize. When query page[size]=0 will assign size = defaultSize.
Another problem is that when I want to limit the size (eg max = 10), what should I do?
The text was updated successfully, but these errors were encountered:
Oh that is not supposed to happen. Thanks for reporting! Instead of implicitly assuming that zero should be the defaultSize, I'd rather handle invalid cases with a bad request. If you'd like or it's urgent you you open a PR with a test, but if not, we will take a look at it :)
I validated the page[size] parameter in the PaginatedFindAll function and returned a BadRequest error message if it was zero. This problem is not very serious, but you should check back later. I think the way to solve this problem may be related to #306.
When calling PaginatedFindAll with query page[size]=0, the server returns the following error:
I think PaginatedFindAll should return the defaultSize. When query page[size]=0 will assign size = defaultSize.
Another problem is that when I want to limit the size (eg max = 10), what should I do?
The text was updated successfully, but these errors were encountered: