Skip to content

Improve type validation for PageIterator  #267

Description

@rkodev

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

  1. Retrieving site pages panics with "interface {} is *models.ListItem, not *models.SitePage" msgraph-beta-sdk-go#380
  2. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions