Skip to content

Paths not generated for apis that return entity types with no navigation property but have base types with navigation properties #268

@timayabi2020

Description

@timayabi2020

A path is not generated for an api that returns an entity type with no navigation property but its base type has a navigation property.
To avoid such a translation error Odata-Openapi library should consider navigation properties of the base type. We have such an example on /users/{user-id}/insights/trending path being generated only on v1.0 but not beta.
v1.0 metadata
image

image

Here the path be generated because the entity type has a navigation property

beta metadata
image
Here, the entity type has no navigation property but the base type as shown below has navigation properties
image
However, the path won't be generated.

Using powershell Find-MgGraphCommand, we will have the below output when we try to find out if the paths have been generated for both v1.0 and beta version. i.e path was only generated for v1.0
image

Metadata

Metadata

Assignees

Labels

status:needs-discussionAn issue that requires more discussion internally before resolving

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions