microsoft / OpenAPI.NET.OData

Generates OpenAPI document from OData CSDL
MIT License
205 stars 63 forks source link

Duplicate operation Ids if a type cast is defined between an entity and a navigation property for API paths with ``$count`` system query option #492

Closed timayabi2020 closed 7 months ago

timayabi2020 commented 7 months ago

For paths containing type casts as the last segment, the As keyword is appended to the operation id.

image

If a type cast is defined between an entity and a navigation property for paths containing $count system query option, then the As keyword is missing, causing duplicate operation ids.

image

References. /deviceAppManagement/mobileApps/{mobileApp-id}/microsoft.graph.androidLobApp/relationships/$count

/deviceAppManagement/mobileApps/{mobileApp-id}/microsoft.graph.androidManagedStoreApp/relationships/$count

/deviceAppManagement/mobileApps/{mobileApp-id}/microsoft.graph.androidStoreApp/relationships/$count