Skip to content

Tool for merging multiple JSON swagger files into one

License

Notifications You must be signed in to change notification settings

CheatXGO/go-swagger-merger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swagger merger

To merge a few swagger JSON files into one.

Install Go if you don't have one.

https://golang.org/doc/install

Install the command line tool first.

go get github.com/CheatXGO/go-swagger-merger

The command below will merge /data/swagger1.json /data/swagger2.json and save result file in the /data/swagger.json. The library supports more than two files to merge. You can add more paths to the list /data/swagger3.json, /data/swaggerN.json.

go-swagger-merger -o /data/swagger.json -t your_title -v your_version /data/swagger1.json /data/swagger2.json

Attention. The order of the files is essential, and the following file overwrites the same fields from the previous file.

About

Tool for merging multiple JSON swagger files into one

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%