Repository navigation
add funcOptions to requestOptions - #857
Merged
Ramses Sanchez-Hernandez (ramsessanchez) merged 3 commits intoOct 26, 2022
Merged
Conversation
Ramses Sanchez-Hernandez (ramsessanchez)
requested review from
Michael Mainer (MIchaelMainer),
Philip Gichuhi (Ndiritu),
silaskenneth (SilasKenneth),
Andrew Omondi (andrueastman),
Vincent Biret (baywet),
DeVere Dyett (ddyett),
Nikitha Chettiar (nikithauc),
Ronald K (rkodev) and
Mustafa Zengin (zengin)
as code owners
October 25, 2022 22:52
This was referenced Oct 26, 2022
Closed
Vincent Biret (baywet)
approved these changes
Oct 26, 2022
Ramses Sanchez-Hernandez (ramsessanchez)
deleted the
rsh/java/missingFuncOptions
branch
October 26, 2022 16:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
microsoftgraph/msgraph-sdk-java#1063
As noted in this issue, we are not adding function options to our request options on all methods which include parameters. The issue is due to the fact that we do not check the method overloads for whether they have parameters or not when we generate the BuildRequest() methods. In some cases the topmost Ocdm method of the class does not have parameters and in such cases, we fail to add these parameters to the request options. By checking all instances of the method, and whether any overloads include parameters, we can cover scenarios where some overloads have parameters and others don't.
Microsoft Reviewers: Open in CodeFlow