[REST] Is there any way to completely disable pageSizeLimit

REST API uses ActiveDataProvider to fetch and show data. This class has [b]pageSizeLimit /b parameter which by default limit our pageSize to 50, so no matter how high is per-page (pageSizeParam) query parameter, maximum 50 rows are returned.

Is there any way to completely disable pageSizeLimit so that provider will show as many rows as we want by specifying per-page query parameter or defaultPageSize if not specified? Setting pageSizeLimit to false forces to always return defaultPageSize rows no matter what we pass by per-page.

StackOverflow question: http://stackoverflow.com/questions/31931049/is-there-any-way-to-completely-disable-pagesizelimit-yii2

Looking through Pagination class source code, I found a workaround to set pageSizeLimit to anything but false and two-dimensional array, e.g. to true. But isn’t there proposed (planned) way of doing it? Also there is no anything concerning that in documentation, won’t it be better to mention something there?