microsoftgraph / msgraph-metadata

Microsoft Graph metadata captured and used for generating client library code files.
https://graph.microsoft.com
MIT License
105 stars 33 forks source link

The `graph.Json` should be modeled as `Edm.Untyped` #596

Closed andrueastman closed 5 months ago

andrueastman commented 8 months ago

The graph.Json type is used to model untyped Json data that could be of any typed.

This leads it to being converted to an object type microsoft.graph.json which is not accurate at representi possible primitive and collection types when converted to the openApi description.

Once the conversion library(Hidi) supports handling of Edm.Untyped in csdl metadata, we should add a transform to replace the properties/parameters types from graph.Json to Edm.Untyped for openApi based scenarios.

This will enable the converter to correctly represent dynamic types in the open api metadata.

andrueastman commented 8 months ago

Depends on https://github.com/microsoft/OpenAPI.NET.OData/issues/511