Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Client bug]: Missing expand query parameters #1788

Closed
MartinM85 opened this issue Mar 30, 2023 · 0 comments · Fixed by microsoftgraph/msgraph-metadata#311
Closed

[Client bug]: Missing expand query parameters #1788

MartinM85 opened this issue Mar 30, 2023 · 0 comments · Fixed by microsoftgraph/msgraph-metadata#311

Comments

@MartinM85
Copy link
Contributor

Describe the bug
At least the following classes have missing Expand property.

Microsoft.Graph.Me.Calendars.Item.CalendarItemRequestBuilder.CalendarItemRequestBuilderGetQueryParameters
Microsoft.Graph.Users.Item.Calendars.Item.CalendarItemRequestBuilder.CalendarItemRequestBuilderGetQueryParameters
Microsoft.Graph.Me.ContactFolders.Item.ContactFolderItemRequestBuilder.ContactFolderItemRequestBuilderGetQueryParameters
Microsoft.Graph.Users.Item.ContactFolders.Item.ContactFolderItemRequestBuilder.ContactFolderItemRequestBuilderGetQueryParameters

To Reproduce
Steps to reproduce the behavior:
Compile error

var response = await graphClient.Me.Calendars.GetAsync(x =>
{
    x.QueryParameters.Select = new string[] { "id" };
    x.QueryParameters.Expand = new string[] { "xxx" };
});

var response = await graphClient.Me.ContactFolders.GetAsync(x =>
{
    x.QueryParameters.Select = new string[] { "id" };
    x.QueryParameters.Expand = new string[] { "xxx" };
});

Expected behavior
No compile error

var response = await graphClient.Me.Calendars.GetAsync(x =>
{
    x.QueryParameters.Select = new string[] { "id" };
    x.QueryParameters.Expand = new string[] { "xxx" };
});

var response = await graphClient.Me.ContactFolders.GetAsync(x =>
{
    x.QueryParameters.Select = new string[] { "id" };
    x.QueryParameters.Expand = new string[] { "xxx" };
});

Client version
5.4.0

Desktop (please complete the following information):

  • OS: Windows 11
  • .NET 7.0

Additional context
Similar issue was reported in #1761 but it was fixed only for Contacts.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants