go-swagger-merger

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 4 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL