github.com/go-swagger/go-swagger@v0.31.0/docs/usage/mixin.md (about)

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