Updating EntityRequest.Base.template with code fix for response headers issue#202
Updating EntityRequest.Base.template with code fix for response headers issue#202MIchaelMainer merged 3 commits intodevfrom
Conversation
New changes will propagate the fix for having response headers and status codes in request objects when UpdateAsync method is called in entities
MIchaelMainer
left a comment
There was a problem hiding this comment.
This looks good. The main thing to look for is that we are generating valid code, that we aren't breaking existing code, and we are only affecting the intended files.
The only change I request is that we add a /// comment for the expected exception.
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/exception
Another thing you'll need to do is to build the client library with the updated files. Do this by copying the generated files into their appropriate directory in the client repo. Can you verify that this builds? You'll also be able to validate your test at this point. If all is good, go ahead and make a PR in the SDK repo for the updated code files.
|
- Adding the exception documentation in IEntityRequest.Base - Refactoring in EntityRequest.Base to include this if includeSendParams == true so that it shows in the async UpdateAsync() method.
* Add NamespacePrefix that's used as the class name prefix for generating ObjC models. * Added preprocessors for nav properties * Support updating the default base Graph URL via the endpointVersion argument. * add rule to add containsTarget=true to labelPolicy navigation * Convert edm.Decimal to number * Handle CRLF in doc annotations as code comments. * Updated request builder interfaces to inherit from common interface * Added IBaseRequestBuilder to consumers of IRequestBuilder.Base * Applied <auto-generated/> comment tag to all generated c# files. * Added comments to all complex types class definitions. * Fix for enum naming for camelcased+underscore scenario (#194) * Fix duplicate PHP enum name generation * Add back camelcase-ization to limit the changes. * Added preprocess rule for new intune navigation (#195) * Updating EntityRequest.Base.template with code fix for response headers issue (#202) * Updating template with response headers fix. * New changes will propagate the fix for having response headers and status codes in request objects when UpdateAsync method is called in entities * Adding the exception documentation in IEntityRequest.Base * Refactoring in EntityRequest.Base to include this if includeSendParams == true so that it shows in the async UpdateAsync() method. * Fixed spacing indentation (#204) * New changes will propagate the fix for having response headers and status codes in request objects when UpdateAsync method is called in entities * Adding exception description to documentation * Adding and refactoring exception documentation * Adding the exception documentation in IEntityRequest.Base * Refactoring in EntityRequest.Base to include this if includeSendParams == true so that it shows in the async UpdateAsync() method. * Space Indentation Fixes * Fixed bugs for publishing in definitely typed repo (#203) * Add contains target for new entities. (#205)


This PR does the following:
Updates the EntityRequest.Base.template with the code fix that checks response headers and status codes in the AdditionalData property tag of entities and throws an error (if response headers or status code properties are found).
This fix is for task: microsoftgraph/msgraph-sdk-dotnet#426