All Projects → g3co → go-swagger-merger

g3co / go-swagger-merger

Licence: MIT license
Tool for merging multiple YAML swagger files into one

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to go-swagger-merger

swagger
Swagger contains a OpenAPI / Swagger universal documentation generator and HTTP server handler.
Stars: ✭ 36 (+140%)
Mutual labels:  swagger-generator
gin-swagger
DRY templates for go-swagger
Stars: ✭ 79 (+426.67%)
Mutual labels:  go-swagger
oas2
OpenAPI 2.0 (aka Swagger) utils for Golang.
Stars: ✭ 19 (+26.67%)
Mutual labels:  go-swagger
micro-swagger
Swagger generate and Swagger web server. It's redefined document for coder.
Stars: ✭ 34 (+126.67%)
Mutual labels:  go-swagger

Swagger merger

To merge a few swagger YAML 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/g3co/go-swagger-merger

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

go-swagger-merger -o /data/swagger.yaml /data/swagger1.yaml /data/swagger2.yaml

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].