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

Merge is not working #1

Open
tayyab-elahi opened this issue Jan 17, 2023 · 1 comment
Open

Merge is not working #1

tayyab-elahi opened this issue Jan 17, 2023 · 1 comment

Comments

@tayyab-elahi
Copy link

tayyab-elahi commented Jan 17, 2023

I have 2 microservices, I want to merge the their swagger.yaml files and then serve with swagger-cli to use that final merged file.
Issue is that I run this command and It creates new yaml file only with content of input yaml from the last parameter of command.
go-swagger-merger -o final_swagger.yaml network-service/docs/swagger.yaml controller-service/docs/swagger.yaml

The final_swagger.yaml contains content only from controller-service/docs/swagger.yaml and nothing from network-service/docs/swagger.yaml

@tayyab-elahi tayyab-elahi changed the title Merge is working Merge is not working Jan 17, 2023
@SeaX
Copy link

SeaX commented Nov 7, 2023

I confirm that when we merge 2 files that have the same paths (endpoint url) but two different methods (get vs post), only the last file is considered, when the 2 paths are different it all goes smooth.

I have attached 2 files to show the glitch, updating the path of one of them would show the well functioning of the merge function

assets-1.oas3.json
assets.oas3.json

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

2 participants