autorest icon indicating copy to clipboard operation
autorest copied to clipboard

AutoRest should not include full version number in copyright notice

Open bitsforthought opened this issue 10 years ago • 4 comments

Every time the AutoRest version changes and we regenerate code, every file changes because of the version number in the copyright header. Normally this wouldn't be a big deal, but we hand-modify several generated files to workaround issues in AutoRest, so this causes us a lot of merge pain.

It would be great if there were a way to turn off the version number in the copyright header.

bitsforthought avatar Jan 09 '16 01:01 bitsforthought

You can overwrite header by either passing it in the console or specifying it in swagger:

{
  "swagger": "2.0",
  "info": {
    "x-ms-code-generation-settings": {
      "header": "Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information."
    }    
  },
...

stankovski avatar Jan 22 '16 18:01 stankovski

Thanks!

bitsforthought avatar Jan 23 '16 00:01 bitsforthought

@brjohnstmsft I changed my mind :)

stankovski avatar Feb 01 '16 19:02 stankovski

Less work for me. :)

bitsforthought avatar Feb 01 '16 20:02 bitsforthought