Title: AdditionalData map not populated for collections · Issue #295 · microsoftgraph/msgraph-sdk-java · GitHub
Open Graph Title: AdditionalData map not populated for collections · Issue #295 · microsoftgraph/msgraph-sdk-java
X Title: AdditionalData map not populated for collections · Issue #295 · microsoftgraph/msgraph-sdk-java
Description: DefaultSerializer.setChildAdditionalData() lacks support of collections. As you can see, only a HashMap (why not just Map???) and IJsonBackedObject are supported. As a result all other collections fail to get additionalDataManager field ...
Open Graph Description: DefaultSerializer.setChildAdditionalData() lacks support of collections. As you can see, only a HashMap (why not just Map???) and IJsonBackedObject are supported. As a result all other collections ...
X Description: DefaultSerializer.setChildAdditionalData() lacks support of collections. As you can see, only a HashMap (why not just Map???) and IJsonBackedObject are supported. As a result all other collections ...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java/issues/295
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AdditionalData map not populated for collections","articleBody":"`DefaultSerializer.setChildAdditionalData()` lacks support of collections. As you can see, only a `HashMap` (why not just `Map`???) and `IJsonBackedObject` are supported. As a result all other collections fail to get `additionalDataManager` field populated. For instance, `DriveItem`s fetched with GET `/user/{userId}/drive/root/delta` don't have this field populated for `createdBy.user` object. Same object's property is populated for `Drive` as response's `value` field is scalar. \r\n\r\n### Expected behavior\r\n\r\n`DriveItem.createdBy.user.additionalDataManager` should contain user email\r\n\r\n### Actual behavior\r\n\r\n`DriveItem.createdBy.user.additionalDataManager` is empty\r\n\r\n### Steps to reproduce the behavior\r\n\r\n```\r\n final String json = \"{\\n\"\r\n + \" \\\"@odata.context\\\": \\\"https://graph.microsoft.com/v1.0/$metadata#users('02008492-3fec-4ce4-bb54-980ad856856f')/drive/root/children\\\",\\n\"\r\n + \" \\\"value\\\": [\\n\"\r\n + \" {\\n\"\r\n + \" \\\"createdBy\\\": {\\n\"\r\n + \" \\\"user\\\": {\\n\"\r\n + \" \\\"email\\\": \\\"the@email.com\\\",\\n\"\r\n + \" \\\"id\\\": \\\"02008492-3fec-4ce4-bb54-980ad856856f\\\",\\n\"\r\n + \" \\\"displayName\\\": \\\"John Doe\\\"\\n\"\r\n + \" }\\n\"\r\n + \" }\\n\"\r\n + \" }\\n\"\r\n + \" ]\\n\"\r\n + \"}\";\r\n \r\n final DefaultSerializer serializer = new DefaultSerializer(new DefaultLogger());\r\n final DriveItemDeltaCollectionResponse deserialized = serializer\r\n .deserializeObject(json, DriveItemDeltaCollectionResponse.class);\r\n\r\n System.out.println(deserialized.value.get(0).createdBy.user.additionalDataManager());```\r\n\r\n","author":{"url":"https://github.com/kitherill","@type":"Person","name":"kitherill"},"datePublished":"2019-09-13T16:36:55Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java/issues/295"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:de1ff14d-10b5-cef7-419e-ec837127ed13 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8536:121D2B:DE5A02:126D6D9:6B050996 |
| html-safe-nonce | ad7fa439413caa9084b169a82607ebb74fe62b6bdbd95a3a8c179df8afe7c412 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTM2OjEyMUQyQjpERTVBMDI6MTI2RDZEOTo2QjA1MDk5NiIsInZpc2l0b3JfaWQiOiI4ODgyNzc4MjE1Nzk0Njc0MDcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 15fcb3dfc7da06e8956aa130291578fedfac7b54a6a4881e4f2c0248d47c739e |
| hovercard-subject-tag | issue:493418171 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-java/295/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c024f2e28eae1a9cdf266be3905c00302333c380fb13fadb97d52c96383cbea6/microsoftgraph/msgraph-sdk-java/issues/295 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c024f2e28eae1a9cdf266be3905c00302333c380fb13fadb97d52c96383cbea6/microsoftgraph/msgraph-sdk-java/issues/295 |
| og:image:alt | DefaultSerializer.setChildAdditionalData() lacks support of collections. As you can see, only a HashMap (why not just Map???) and IJsonBackedObject are supported. As a result all other collections ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kitherill |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoftgraph/msgraph-sdk-java git https://github.com/microsoftgraph/msgraph-sdk-java.git |
| octolytics-dimension-user_id | 17304259 |
| octolytics-dimension-user_login | microsoftgraph |
| octolytics-dimension-repository_id | 103300409 |
| octolytics-dimension-repository_nwo | microsoftgraph/msgraph-sdk-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 103300409 |
| octolytics-dimension-repository_network_root_nwo | microsoftgraph/msgraph-sdk-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width