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

Fix for response headers and status codes data in entities during update #485

Merged
merged 18 commits into from
May 30, 2019

Conversation

irvinesunday
Copy link
Contributor

Fixes #426

Changes proposed in this pull request

  • EntityRequest classes have been updated with property checking validation in the async UpdateAsync() method which inspects the AdditionalData property bag for the presence of response headers and status code data. If these are found, a ClientException is thrown with the message: "Do not use objects returned in a response for updating an object in Microsoft Graph. Create a new <class name> object and only set the updated properties on it."
  • A test method UpdateAsync_EntityWithResponseHeadersAndStatusCode() has been added to validate this check.

Other links

Spacing is used in place of tabs; for uniformity
@MIchaelMainer MIchaelMainer merged commit 6cc1968 into dev May 30, 2019
@MIchaelMainer MIchaelMainer deleted the is/response-headers-fix branch May 30, 2019 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove response header properties from serialized requests
3 participants