You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OData cast paths should follow the same naming convention for tags and operationIds as non-OData cast paths #324
To support accurate slicing of an OpenAPI document, OData cast paths should follow the same naming convention for tags and operationIds as their non-OData cast paths counterparts. An As<TypeName> should be added at the end of an operationId.
How about operation ids of $count segments appended to OData cast paths? Example:
/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 resourceoperationId: Get.Count.microsoft.graph.device-e712
Would the operation id: Get.Count.microsoft.graph.device-e712 also need to be updated as Get.Count.AsDevice-e712?
Currently, we don't generate tag names for $count and complex property paths.
What tag naming convention do you think will be most appropriate for:
$count paths. Example is the one mentioned above
Complex property paths. Example:
'/admin/serviceAnnouncement/issues/{serviceHealthIssue-id}/posts':
get:
summary: Get posts property valuedescription: Collection of historical posts for the service issue.operationId: posts.serviceHealthIssuePost.ListServiceHealthIssuePostparameters:
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.
Irvine Sunday (@irvinesunday), good question. We currently don't support /$count in PowerShell. However, we can use the following operationIds and tags for:
/$count paths:
/directoryRoles/{directoryRole-id}/members/$count':
description: Provides operations to count the resources in the collection.get:
tags:
- directoryRoles.directoryObjectsummary: Get the number of the resourceoperationId: directoryRoles.Members.GetCount
/$count on OData cast paths:
/directoryRoles/{directoryRole-id}/members/microsoft.graph.device/$count':
description: Provides operations to count the resources in the collection.get:
tags:
- directoryRoles.directoryObjectsummary: Get the number of the resourceoperationId: directoryRoles.Members.GetCount.AsDevice
Complex property paths (if supported):
'/admin/serviceAnnouncement/issues/{serviceHealthIssue-id}/posts':
get:
tags:
- admin.serviceAnnouncementsummary: Get posts property valuedescription: Collection of historical posts for the service issue.operationId: admin.serviceAnnouncement.issues.ListPosts
tags should ideally maintain the current naming convention of regular paths for consitency when slicing the API i.e., [EntitySet]/[Singleton].[EntityType/Actions/Functions].
Irvine Sunday (@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?
Irvine Sunday (@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.
Activity
irvinesunday commentedon Feb 1, 2023
How about operation ids of
$countsegments appended to OData cast paths? Example:Would the operation id:
Get.Count.microsoft.graph.device-e712also need to be updated asGet.Count.AsDevice-e712?irvinesunday commentedon Feb 1, 2023
Currently, we don't generate tag names for
$countand complex property paths.What tag naming convention do you think will be most appropriate for:
$countpaths. Example is the one mentioned abovePeter Ombwa (@peombwa) Vincent Biret (@baywet) Millicent Achieng (@millicentachieng)
baywet commentedon Feb 1, 2023
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.
peombwa commentedon Feb 6, 2023
Irvine Sunday (@irvinesunday), good question. We currently don't support
/$countin PowerShell. However, we can use the followingoperationIdsandtagsfor:/$countpaths:/$counton OData cast paths:Do we currently generate paths for collection of complex property types? I couldn't find
/admin/serviceAnnouncement/issues/{serviceHealthIssue-id}/postsin https://github.com/microsoftgraph/msgraph-metadata/tree/master/openapi/v1.0.tagsshould ideally maintain the current naming convention of regular paths for consitency when slicing the API i.e.,[EntitySet]/[Singleton].[EntityType/Actions/Functions].peombwa commentedon Feb 6, 2023
Irvine Sunday (@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?
irvinesunday commentedon Mar 14, 2023
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.