Skip to content

Duplicate OperationIds #887

Description

@spaceraccoon

Although GrapeSwagger::DocMethods::OperationId.build implements a mangling algorithm to generate an operation ID from a path and method, it can lead to duplicates such as /api/v4/projects/{id} and /api/v4/projects{id} both evaluating to the same operation ID, which is invalid. Although this may be an unusual path for an API, some organisations may have them as a legacy. There should be a check for duplicates to prevent this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions