-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OData cast paths should follow the same naming convention for tags
and operationIds
as non-OData cast paths
#324
Comments
How about operation ids of /directoryRoles/{directoryRole-id}/members/microsoft.graph.device/$count':
description: Provides operations to count the resources in the collection.
get:
summary: Get the number of the resource
operationId: Get.Count.microsoft.graph.device-e712 Would the operation id: |
Currently, we don't generate tag names for
'/admin/serviceAnnouncement/issues/{serviceHealthIssue-id}/posts':
get:
summary: Get posts property value
description: Collection of historical posts for the service issue.
operationId: posts.serviceHealthIssuePost.ListServiceHealthIssuePost
parameters: |
I don't have an opinion on the matter either way, kiota doesn't make use of tags or operation IDs. I think Peter's opinion is probably the most relevant here. |
@irvinesunday, good question. We currently don't support
/directoryRoles/{directoryRole-id}/members/$count':
description: Provides operations to count the resources in the collection.
get:
tags:
- directoryRoles.directoryObject
summary: Get the number of the resource
operationId: directoryRoles.Members.GetCount
/directoryRoles/{directoryRole-id}/members/microsoft.graph.device/$count':
description: Provides operations to count the resources in the collection.
get:
tags:
- directoryRoles.directoryObject
summary: Get the number of the resource
operationId: directoryRoles.Members.GetCount.AsDevice
'/admin/serviceAnnouncement/issues/{serviceHealthIssue-id}/posts':
get:
tags:
- admin.serviceAnnouncement
summary: Get posts property value
description: Collection of historical posts for the service issue.
operationId: admin.serviceAnnouncement.issues.ListPosts Do we currently generate paths for collection of complex property types? I couldn't find
|
@irvinesunday , since OperationIds are not used by Kiota, can we standardize the naming of operationIds at the OData -> OpenAPI conversion layer instead of modifying them in DevX API at PowershellFormatter.cs? |
There are other clients who rely on the operation ids. See this issue for example: It is better to have them standardized as they currently in the conversion layer. |
To support accurate slicing of an OpenAPI document, OData cast paths should follow the same naming convention for
tags
andoperationIds
as their non-OData cast paths counterparts. AnAs<TypeName>
should be added at the end of an operationId.Assemblies affected
v1.1.0
Actual result
GET /directoryRoles/{directoryRole-id}/members
directoryRoles.directoryObject
directoryRoles.ListMembers
GET /directoryRoles/{directoryRole-id}/members/microsoft.graph.application
directoryObject.application
Get.microsoft.graph.directoryObject.Items.As.microsoft.graph.application-ced0
Expected result
GET /directoryRoles/{directoryRole-id}/members
directoryRoles.directoryObject
directoryRoles.ListMembers
GET /directoryRoles/{directoryRole-id}/members/microsoft.graph.application
directoryObject.application
Get.microsoft.graph.directoryObject.Items.As.microsoft.graph.application-ced0
GET /directoryRoles/{directoryRole-id}/members/microsoft.graph.application
directoryRoles.directoryObject
directoryRoles.ListMembers.AsApplication
The text was updated successfully, but these errors were encountered: