Open
Description
PageIterator does not provide type validation on the constructor function and this is resulting to runtime errors that arenot easy to debug for users. e.g
- Retrieving site pages panics with "interface {} is *models.ListItem, not *models.SitePage" msgraph-beta-sdk-go#380
- panic while iterating over Page Item msgraph-sdk-go#558
We need to provide possible solutions for the type validation of the parameters in the constructor function