vacuum icon indicating copy to clipboard operation
vacuum copied to clipboard

Vacuum to warn of duplicate paths

Open nichwall opened this issue 1 year ago • 1 comments

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).

nichwall avatar Mar 31 '24 14:03 nichwall

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

LasneF avatar Apr 02 '24 08:04 LasneF