Skip to content

Duplicate operation Ids #553

Open
Open

Description

@timayabi2020

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

Activity

  1. irvinesunday commented on Aug 16, 2024

    @irvinesunday
    Contributor
  2. timayabi2020 commented on Nov 13, 2024

    @timayabi2020
    ContributorAuthor

    Irvine Sunday (@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

  3. added
    powershellIssues affecting Graph Powershell SDK
    and removed on Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    powershellIssues affecting Graph Powershell SDK

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions