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 OperationIds #887

Open
spaceraccoon opened this issue Nov 22, 2022 · 0 comments
Open

Duplicate OperationIds #887

spaceraccoon opened this issue Nov 22, 2022 · 0 comments

Comments

@spaceraccoon
Copy link
Contributor

spaceraccoon commented Nov 22, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant