Skip to content

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

4 participants