Replacing the input swagger file with the output swagger file (not merging)
See original GitHub issueIf 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:
- Created 5 years ago
- Reactions:6
- Comments:8 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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?
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.