Newline Proliferating Maniac

    @autorest/fixer

    1.1.0 • Public • Published

    Autorest Fixer

    Autorest fixer is a tool to help migrating old pattern previously allowed or automatically fixed JIT in autorest but are not allowed anymore.

    Usage

    # Install
    npm install -g @autorest/fixer
    
    # Run
    autorest-fixer path/to/specs/**/*.json
    
    # Run (Dry-run)
    autorest-fixer --dry-run path/to/specs/**/*.json

    Help

    autorest-fixer --help
    cli.js <include..>
    
    Start the server
    
    Positionals:
      include  List of wildcard pattern/folder to search for specs.
                                                              [string] [default: []]
    
    Options:
          --version  Show version number                                   [boolean]
          --help     Show help                                             [boolean]
      -v, --verbose  Run with verbose logging level.                       [boolean]
          --debug    Run with debug logging level.                         [boolean]
          --level    Run with given logging level.                          [string]
          --dry-run  Perform a dry run.                                    [boolean]
    

    List of fixes

    Code Description
    missing-type-object When defining a schema with properties many spec were missing the type property all together. Autorest used assume it was type: object. This fixer does go through and fix the issues.

    Keywords

    Install

    npm i @autorest/fixer

    DownloadsWeekly Downloads

    0

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    147 kB

    Total Files

    80

    Last publish

    Collaborators

    • azure-sdk