Title: AdditionalData not serialized for collections · Issue #511 · microsoftgraph/msgraph-sdk-java · GitHub
Open Graph Title: AdditionalData not serialized for collections · Issue #511 · microsoftgraph/msgraph-sdk-java
X Title: AdditionalData not serialized for collections · Issue #511 · microsoftgraph/msgraph-sdk-java
Description: Hello everyone, DefaultSerializer.getChildAdditionalData() lacks support of collections. As you can see, lists are not contemplated. As a result Items of Lists are not serialized with additional properties. On the other hand, HashMap sho...
Open Graph Description: Hello everyone, DefaultSerializer.getChildAdditionalData() lacks support of collections. As you can see, lists are not contemplated. As a result Items of Lists are not serialized with additional pr...
X Description: Hello everyone, DefaultSerializer.getChildAdditionalData() lacks support of collections. As you can see, lists are not contemplated. As a result Items of Lists are not serialized with additional pr...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java/issues/511
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AdditionalData not serialized for collections","articleBody":"Hello everyone,\r\n`DefaultSerializer.getChildAdditionalData()` lacks support of collections. As you can see, lists are not contemplated. As a result Items of Lists are not serialized with additional properties. On the other hand, HashMap should be changed to Map in order to support more generic collections.\r\n\r\nThis issue is strongly related with #295 and the fix should be similar.\r\n\r\n### Expected behavior\r\n`helloWord` additional of ChatMessageMention property should be serialized\r\n\r\n\r\n\r\n### Actual behavior\r\n`helloWorld` additional of ChatMessageMention is not serialized\r\n\r\n\r\n\r\n### Steps to reproduce the behavior\r\n\r\n```\r\nChatMessage chatMessage = new ChatMessage();\r\nChatMessageMention chatMessageMention = new ChatMessageMention();\r\nchatMessageMention.additionalDataManager().put(\"helloWord\", new JsonPrimitive(\"3.141516\"));\r\nchatMessage.mentions = Collections.singletonList(chatMessageMention);\r\nDefaultSerializer serializer = new DefaultSerializer(new DefaultLogger());\r\nSystem.out.println(serializer.serializeObject(chatMessage));\r\n```\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/bougar","@type":"Person","name":"bougar"},"datePublished":"2020-10-01T10:06:51Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java/issues/511"}
| 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:b003e463-5bc8-c251-f06b-512122b66c18 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E4B0:2876DA:14DF30C:1B30A95:6B0504C2 |
| html-safe-nonce | f70ddbf5685ee5f14680c6844eb3440cb08233345a39cc363e89949b605cfdca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEIwOjI4NzZEQToxNERGMzBDOjFCMzBBOTU6NkIwNTA0QzIiLCJ2aXNpdG9yX2lkIjoiNTkyNTU3OTYzNDkwODY2MDkzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2caaec1fd91dfce6c37f248da24082ad296b2e2f54ccc8ca3a4a70684f46c8ef |
| hovercard-subject-tag | issue:712695842 |
| 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/511/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c18672d0b42180fa20c525fbb294bffb14ca727affaae3657e3a7e8fad48eb3d/microsoftgraph/msgraph-sdk-java/issues/511 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c18672d0b42180fa20c525fbb294bffb14ca727affaae3657e3a7e8fad48eb3d/microsoftgraph/msgraph-sdk-java/issues/511 |
| og:image:alt | Hello everyone, DefaultSerializer.getChildAdditionalData() lacks support of collections. As you can see, lists are not contemplated. As a result Items of Lists are not serialized with additional pr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bougar |
| 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