-
Notifications
You must be signed in to change notification settings - Fork 145
bugfix/default content type and boolean deserialization #693
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
bugfix/default content type and boolean deserialization #693
Conversation
…pplication/octet-stream content type
…' of https://github.com/microsoftgraph/msgraph-sdk-java into bugfix/default-content-type-and-boolean-deserialization
zengin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but I feel that this logic should belong to the core library as the beta service library will also be subject to the same bug. What do you think?
| final JsonElement element = json.getAsJsonObject().get("@odata.null"); | ||
| if(element != null && element.isJsonPrimitive()) { | ||
| return getPrimitiveValue(element, type); | ||
| } else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: else block can be removed
|
@zengin thanks for the review. Yeah all of that has been moved to the core library with the v3 work. I just authored the reflective PR for v3 in core (see the item linked right above this comment). |
|
@baywet thanks for the TL;DR. it was a long thread, I must have missed it while skimming through :) |
fixes #687