Serialized MS Graph objects fail when received by Graph #5534
-
My existing code uses either Newtonsoft or System.Text.Json to serialize various MS Graph objects and then Post/Patch the result to the Graph endpoint as needed. This worked fine until I upgraded the Graph library to current. Now, this code:
produces this string: Here's a snippet of the ItemBody object:
When that is Patch-ed to Graph it tells me "additionaData" is not valid: I'm not able to re-write my whole application to use the Graph SDK, so is there a way to get the Graph objects serialized properly? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Thanks for raising this @thoffmann-fms Any chance you can try using the serialization helpers as outlined in the documentation below? https://learn.microsoft.com/en-us/openapi/kiota/serialization?tabs=csharp#serialization-helpers Kiota abstracts away the use of a specific library/serializer and decouples the serialization information and the serialization format which can make some serialization scenarios more complex. |
Beta Was this translation helpful? Give feedback.
Thanks for raising this @thoffmann-fms
Any chance you can try using the serialization helpers as outlined in the documentation below?
https://learn.microsoft.com/en-us/openapi/kiota/serialization?tabs=csharp#serialization-helpers
Kiota abstracts away the use of a specific library/serializer and decouples the serialization information and the serialization format which can make some serialization scenarios more complex.