Skip to content

- adds missing put methods for java sdk #282

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

Merged
merged 2 commits into from
Sep 3, 2020
Merged

Conversation

baywet
Copy link
Member

@baywet baywet commented Sep 3, 2020

Summary

the java SDK was missing put methods for entity requests. This PR fixes it.

Generated code differences

microsoftgraph/msgraph-sdk-java#446

Command line arguments to run these changes

Provide the command line arguments here so that reviewers can quickly repro the results of changes.

Links to issues or work items this PR addresses

@baywet baywet self-assigned this Sep 3, 2020
@zengin
Copy link
Contributor

zengin commented Sep 3, 2020

Do we need any applicability check to decide whether we have PUT available or not? It seems like the .NET version generates PutAsync() only on references. I am trying to understand if .NET needs fixing or if we need a guard in Java to generate only for references.

@baywet
Copy link
Member Author

baywet commented Sep 3, 2020

we had a quit chat about that with @darrelmiller this morning.
As far as we know, there's no official annotation to indicate support or non support of the method.
We could inject our own custom annotation via XSLT, and then code gen the methods based on that annotation to make it more precise.
Going through all the entities to check which ones support PUT or not is going to be a painful exercise though.

@baywet
Copy link
Member Author

baywet commented Sep 3, 2020

the other factor is that Java doesn't support partial classes or extensions methods, making it difficult to make a "one off" addition to what's codegen

@baywet baywet merged commit 4ae0d37 into dev Sep 3, 2020
@baywet baywet deleted the bugfix/missing-put-methods-java branch September 3, 2020 18:46
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.

2 participants