Skip to content
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

Duplicate operation Ids #553

Open
timayabi2020 opened this issue Jul 25, 2024 · 2 comments
Open

Duplicate operation Ids #553

timayabi2020 opened this issue Jul 25, 2024 · 2 comments
Assignees
Labels
powershell Issues affecting Graph Powershell SDK

Comments

@timayabi2020
Copy link
Contributor

As reported here microsoftgraph/msgraph-sdk-powershell#2843, some duplicate operation ids were detected. This violates a rule on operation ids as per the description in the Open Api spec. https://spec.openapis.org/oas/v3.0.3

@irvinesunday irvinesunday self-assigned this Aug 16, 2024
@irvinesunday irvinesunday added the status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close label Aug 16, 2024
@irvinesunday
Copy link
Collaborator

Feedback: microsoftgraph/msgraph-sdk-powershell#2843 (comment)

@timayabi2020
Copy link
Contributor Author

@irvinesunday I've responded on the main issue. However, we can continue with this thread over here since it's an internal issue.

On the latest metadata pull we have users.GetPhotos and users.GetPhoto as shown in the image below.
Image

Image

For PowerShell open Api referesh process, a singularizeOperationIds query parameter is passed to the DevX service used to slice the file based on tags and responds with a new open Api file. When that particular function is applied, we end up having the same operation Id assigned to two different paths. i.e. users.GetPhotos ends up being users.GetPhoto.
This is just an example of the call we make to Devx Api for slicing the open Api file.
https://devxapi-func-prod-eastus.azurewebsites.net/$openapi?tags=^deviceManagement.Functions$&title=DeviceManagement.Functions&openapiversion=3&style=Powershell&fileName=powershell_v2&graphVersion=v1.0&singularizeOperationIds=true

@timayabi2020 timayabi2020 added powershell Issues affecting Graph Powershell SDK and removed status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
powershell Issues affecting Graph Powershell SDK
Projects
None yet
Development

No branches or pull requests

2 participants