Skip to content

Duplicate parameters on operation filter  #1833

Closed

Description

@erwinkramer

Describe the bug
Getting duplicate parameter definitions when filtering on 2 or more operations that have the same parameters. That's an invalid OpenAPI definition.

OpenApi File To Reproduce

hidi transform -d https://raw.githubusercontent.com/microsoftgraph/msgraph-metadata/refs/heads/master/openapi/v1.0/openapi.yaml -f yaml -o ".\test.yaml" -v OpenApi3_0 --op certificateBasedAuthConfiguration.certificateBasedAuthConfiguration.UpdateCertificateBasedAuthConfiguration,certificateBasedAuthConfiguration.certificateBasedAuthConfiguration.DeleteCertificateBasedAuthConfiguration --co

Check the certificateBasedAuthConfiguration-id parameter in this case.

Expected behavior
Should just have a single parameter if it's exactly the same.

Additional context
Also tested directly with method OpenApiFilterService.CreateFilteredDocument with the same behavior.

Activity

  1. MaggieKimani1 commented on Sep 30, 2024

    @MaggieKimani1
    Contributor

    Fixed by #1841

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions