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

Vacuum to warn of duplicate paths #473

Open
nichwall opened this issue Mar 31, 2024 · 1 comment
Open

Vacuum to warn of duplicate paths #473

nichwall opened this issue Mar 31, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@nichwall
Copy link

Vacuum does not warn of duplicate paths. When using the bundle option, if the path is defined multiple times only the first one is kept.

For example, if the spec had something like the following, no warning is given when linting that duplicate paths exist, and the bundle option just drops one of the paths.

path:
  /api/endpoint/{id}:
    get:
      ...
  /api/endpoint/{id}:
    post:
      ...

Adding the ability to recognize the duplicate paths during bundle would be great, but giving a warning would be sufficient (for both linting and bundling).

@LasneF
Copy link

LasneF commented Apr 2, 2024

Looks a nice feature ! will be usefull in combination of a merge tool

@daveshanley daveshanley added the enhancement New feature or request label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants