swagger-api/swagger-codegen

[Suggestion] Remove timestamp from auto-generated code/documentation

Open

#3,084 建立於 2016年6月8日

在 GitHub 查看
 (18 留言) (13 反應) (0 負責人)HTML (5,474 fork)batch import
Enhancement: Featurehelp wanted

倉庫指標

Star
 (12,701 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

In the coming major release 2.2.0, we want to remove {{generatedDate}} from the mustache template as this will introduce a lot of noise when it comes to reviewing the auto-generated code/documentation. Here is an example:

 package io.swagger.client;

 -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-06-04T21:04:39.523+08:00")
 +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-06-08T18:45:27.896+02:00")
  public class StringUtil {
    /**
     * Check if the given array contains the given value (with case-insensitive comparison).

If anyone has a good reason to keep it in the auto-generated timestamp, please reply to let us know.

貢獻者指南