github.com/kaisawind/go-swagger@v0.19.0/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  
    20  Help Options:
    21    -h, --help                      Show this help message
    22  
    23  [mixin command options]
    24        -c=                         expected # of rejected mixin paths, defs, etc due to existing key. Non-zero exit if does not match actual.
    25            --compact               applies to JSON formatted specs. When present, doesn't prettify the json
    26        -o, --output=               the file to write to
    27            --format=[yaml|json]    the format for the spec document (default: json)
    28  ```