Read annotations on MediaEntity paths that are structural paths #399
Labels
priority:p1
High priority but not blocking. Causes major but not critical loss of functionality SLA <=7days
Milestone
Taking a look at the reference document at https://learn.microsoft.com/en-us/graph/api/driveitem-get-content-format?view=graph-rest-1.0&tabs=http
The
/content
path supports taking a queryparameter of the nameformat
. As this is a structural property that returns a stream type, it is resolved to theMediaEntityOperationalHandler
https://github.com/microsoft/OpenAPI.NET.OData/blob/master/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityOperationalHandler.cs
Due to the path being a structural type, the annotations are not read during the conversion process as annotations are read if the path is a NavigationPropertyPath and not if its a structural path. (Only the description is read)
OpenAPI.NET.OData/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityOperationalHandler.cs
Line 47 in 2c1883e
Due to this, adding annotations makes is not possible to add query parameters to this path.
Related to microsoftgraph/msgraph-sdk-dotnet#1621
The text was updated successfully, but these errors were encountered: