Skip to content

Duplicate parameters on operation filter  #1833

@erwinkramer

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.

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