Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Possible to skip duplicate paths? #71

Open
adsiddiqui-equinix opened this issue Apr 21, 2022 · 2 comments
Open

Possible to skip duplicate paths? #71

adsiddiqui-equinix opened this issue Apr 21, 2022 · 2 comments

Comments

@adsiddiqui-equinix
Copy link

Is it possible to add some flag in the config file openapi-merge.json which would skip duplicate paths instead of throwing this error?

Error merging files: Input 2: The path '/api/associations' maps to '/api/associations' and this has already been added by another input file (duplicate-paths)

I have a use case where multiple Swagger specification files could have the same path and i am unifying them into a single file.
Thanks!

@kekewong
Copy link

I am also facing the same issue. I have one path, but with two API operations get and patch , i can't split into two files.

@WaldemarEnns
Copy link

Same here, facing the issues that two different specifications actually define the same endpoints on different resources which results in a duplication.

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

No branches or pull requests

3 participants