question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Replacing the input swagger file with the output swagger file (not merging)

See original GitHub issue

If I run the command

swagger-merger -i petstore.json -o myswagger.json

Expected

The content of petstore.json gets merged/combined into content of myswagger.json, meaning myswagger.json should have both.

Issue

The content of petstore.json overwrites/replaces the content of myswagger.json, meaning the content of myswagger.json is lost!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
scaothanhsoncommented, Apr 4, 2019

Me too. Although I used “-i” option many time, it returned content of first file. Cannot merger many file, only replace. What does “merger” mean?

2reactions
ylacautecommented, Feb 28, 2019

I just discovered this tools and I read “Merge multiple swagger files into a swagger file” but I don’t undertstand how it works. I expected to use the “-i” option many time, otherwise I dont understand the interest of this tool : my generated output is exactly the same as my input.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OpenAPI Specification - Version 2.0
Version 2.0 specification defines a set of files required to describe an API. These files can then be used by the Swagger-UI project...
Read more >
Swagger Merge Multiple Specification - python
Each individual json file is complete with all it's reqd references. Is there any way using which I could combine them into a...
Read more >
Seven Tips For Using Swagger And AutoRest Together In ...
Also in tip 7), I added a "fix" for the dotnet publish bug which prevents publishing xml documentation files correctly.
Read more >
swagger-merger
Merge multiple swagger files into a swagger file, support JSON/YAML.. Latest version: 1.5.4, last published: a year ago.
Read more >
Customization
#User-defined Templates · Copy my_custom_templates/AUTHORS.md to the generated output directory without processing via the template engine (due to template file ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found