microsoft / kiota-dotnet

Abstractions library for the Kiota generated SDKs in dotnet
https://aka.ms/kiota/docs
MIT License
36 stars 34 forks source link

Add a default `application/xml` serialization library #342

Open andrueastman opened 2 months ago

andrueastman commented 2 months ago

Looks like some endpoints on Graph support application/xml content type now. e.g https://learn.microsoft.com/en-us/graph/api/trustframeworkpolicy-get?view=graph-rest-beta

To provide a better customer experience, we should add an xml serialization library that is registered with other serializers too.

Related to https://github.com/microsoftgraph/msgraph-beta-sdk-dotnet/issues/883

baywet commented 2 months ago

$value is a "binary payload" by nature in odata conventions. Meaning it's not schematized. So even if we implemented a parsing/serialization provide for XML, the description would still not contain a schema for this operation. And kiota would still generate a Task or equivalent.

We could get around that by adding post processing to the OAS description, or something in XOD + implementation in Yoko, but that's probably a lot of work end to end for a single scenario at this point.

My recommendation here is that we leave this on ice until we get overwhelming customer demand for it.

Of course the other scenarios being: