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

     1  ---
     2  title: swagger expand
     3  date: 2023-01-01T01:01:01-08:00
     4  draft: true
     5  weight: 20
     6  ---
     7  # Expand a swagger spec
     8  
     9  The toolkit has a command to expand a swagger specification.
    10  
    11  Expanding a specification resolve all `$ref` (remote or local) and replace them by their expanded
    12  content in the main spec document.
    13  
    14  ### Usage
    15  
    16  To expand a specification:
    17  
    18  ```
    19  Usage:
    20    swagger [OPTIONS] expand [expand-OPTIONS]
    21  
    22  expands the $refs in a swagger document to inline schemas
    23  
    24  Application Options:
    25    -q, --quiet                     silence logs
    26        --log-output=LOG-FILE       redirect logs to file
    27  
    28  Help Options:
    29    -h, --help                      Show this help message
    30  
    31  [expand command options]
    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  ```