microsoftgraph / microsoftgraph/msgraph-sdk-dotnet

[Client bug]: client.Users["id"].PatchAsync() should not be `Task<User>`

Open
#1,855 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Bug: metadata OpenApi
Dominant language
C#
Stars
789
Forks
264
Avg merge
15h 17m
Merged PRs (30d)
3

Description

Describe the bug
The call of PatchAsync() claims to return a Task<User>, but this return value is always null and according to the documentation it won't return anything.

Client version
v5.7.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs at the linked PatchAsync declaration, then compare its signature with the Microsoft Graph user-update response documentation. Done means the generated client no longer advertises a User result for this update operation and the resulting API contract is consistent with the documented empty response.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.