github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/docs/usage/mixin.md (about) 1 # Mixin several swagger specs 2 3 The toolkit has a command to mixin swagger specification. 4 5 Mixin merges several specs into the first (primary) spec given, and issues warnings when conflicts are detected. 6 7 ### Usage 8 9 To mixin several specifications: 10 11 ``` 12 Usage: 13 swagger [OPTIONS] mixin [mixin-OPTIONS] 14 15 merge additional specs into first/primary spec by copying their paths and definitions 16 17 Application Options: 18 -q, --quiet silence logs 19 --log-output=LOG-FILE redirect logs to file 20 21 Help Options: 22 -h, --help Show this help message 23 24 [mixin command options] 25 -c= expected # of rejected mixin paths, defs, etc due to existing key. Non-zero exit if does not match actual. 26 --compact applies to JSON formatted specs. When present, doesn't prettify the json 27 -o, --output= the file to write to 28 --format=[yaml|json] the format for the spec document (default: json) 29 ```