Michael Mainer

Results 139 comments of Michael Mainer

Thank you for bringing this up. This error message is a pass-through from the service. We'd like to capture this information for future work. This is actually a service feature...

This is caused by an error in the service API response. https://docs.microsoft.com/en-us/graph/known-issues#revoke-sign-in-sessions-returns-wrong-http-code. It is returning an unexpected The metadata states this: This is a generator issue.

I can't find anything in the [OData docs](https://www.odata.org/documentation/) about how to represent a primitive in a method response body. Certainly nothing specific in the action documentation. Let's see if we...

@zengin Nice find! Okay, now let's find who owns this.

Can you share the document you used to help form the request? Can you capture and sanitize the request and response and share it with us? A requestId and timestamp...

We are generating the incorrect reference URL. **Actual** ```http POST https://graph.microsoft.com/v1.0/deviceAppManagement/mobileApps/8691b9c4-da35-47fe-9177-17d0b6c441d0/categories/$ref { "@odata.id": "https://graph.microsoft.com/v1.0/deviceAppManagement/categories/2ae868f2-5b00-4473-a116-570800b0d331" } ``` **Expected** ```http POST https://graph.microsoft.com/v1.0/deviceAppManagement/mobileApps/8691b9c4-da35-47fe-9177-17d0b6c441d0/categories/$ref { "@odata.id": "https://graph.microsoft.com/v1.0/deviceAppManagement/mobileAppCategories/2ae868f2-5b00-4473-a116-570800b0d331" } ``` The issue is here: https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/src/Microsoft.Graph/Generated/requests/MobileAppCategoriesCollectionReferencesRequest.cs#L62...

Workaround until this is fixed. ```csharp var allApps = await client.DeviceAppManagement.MobileApps.Request().Filter("isOf('microsoft.graph.win32LobApp')").GetAsync(); var allCategories = await client.DeviceAppManagement.MobileAppCategories.Request().GetAsync(); var hrm = client.DeviceAppManagement.MobileApps["mobileAppId"].Categories.References.Request().GetHttpRequestMessage(); hrm.Method = HttpMethod.Post; hrm.Content = new StringContent($"{{\"@odata.id\": \"https://graph.microsoft.com/v1.0/deviceAppManagement/mobileAppCategories/{allCategories[2]}\"}}"); var response...

@bmulholland I have now added a tldr to my original post. Do not use this client library in your solution unless you are comfortable with the current state of this...

@omenking We are looking to fill this gap. We are working on an OpenAPI code generator in a project named [Kiota](https://github.com/microsoft/kiota). [Kiota will support Ruby](https://github.com/microsoft/kiota#supported-languages). This way our generator won't...