Merge pull request #4888 from swagger-api/remove-inflector-timestamp

Remove inflector timestamp
This commit is contained in:
Tony Tam 2017-03-01 14:16:12 -05:00 committed by GitHub
commit 021e6cdad2
36 changed files with 36 additions and 36 deletions

View File

@ -26,6 +26,6 @@ fi
# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/JavaInflector -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l inflector -o samples/server/petstore/java-inflector"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/JavaInflector -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l inflector -o samples/server/petstore/java-inflector -DhideGenerationTimestamp=true"
java $JAVA_OPTS -jar $executable $ags

View File

@ -1 +1 @@
@javax.annotation.Generated(value = "{{generatorClass}}", date = "{{generatedDate}}")
{{^hideGenerationTimestamp}}@javax.annotation.Generated(value = "{{generatorClass}}", date = "{{generatedDate}}"){{/hideGenerationTimestamp}}

View File

@ -1,6 +1,6 @@
package io.swagger.handler;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).

View File

@ -13,7 +13,7 @@ import java.util.Map;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class AdditionalPropertiesClass {
@JsonProperty("map_property")
private Map<String, String> mapProperty = new HashMap<String, String>();

View File

@ -12,7 +12,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Animal {
@JsonProperty("className")
private String className = null;

View File

@ -9,7 +9,7 @@ import java.util.List;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class AnimalFarm extends ArrayList<Animal> {
@Override

View File

@ -13,7 +13,7 @@ import java.util.List;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class ArrayOfArrayOfNumberOnly {
@JsonProperty("ArrayArrayNumber")
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();

View File

@ -13,7 +13,7 @@ import java.util.List;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class ArrayOfNumberOnly {
@JsonProperty("ArrayNumber")
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();

View File

@ -13,7 +13,7 @@ import java.util.List;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class ArrayTest {
@JsonProperty("array_of_string")
private List<String> arrayOfString = new ArrayList<String>();

View File

@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Capitalization {
@JsonProperty("smallCamel")
private String smallCamel = null;

View File

@ -11,7 +11,7 @@ import io.swagger.model.Animal;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Cat extends Animal {
@JsonProperty("declawed")
private Boolean declawed = null;

View File

@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Category {
@JsonProperty("id")
private Long id = null;

View File

@ -13,7 +13,7 @@ import io.swagger.annotations.ApiModelProperty;
**/
@ApiModel(description = "Model for testing model with \"_class\" property")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class ClassModel {
@JsonProperty("_class")
private String propertyClass = null;

View File

@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Client {
@JsonProperty("client")
private String client = null;

View File

@ -11,7 +11,7 @@ import io.swagger.model.Animal;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Dog extends Animal {
@JsonProperty("breed")
private String breed = null;

View File

@ -13,7 +13,7 @@ import java.util.List;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class EnumArrays {
/**
* Gets or Sets justSymbol

View File

@ -12,7 +12,7 @@ import io.swagger.model.OuterEnum;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class EnumTest {
/**
* Gets or Sets enumString

View File

@ -13,7 +13,7 @@ import java.util.UUID;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class FormatTest {
@JsonProperty("integer")
private Integer integer = null;

View File

@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class HasOnlyReadOnly {
@JsonProperty("bar")
private String bar = null;

View File

@ -14,7 +14,7 @@ import java.util.Map;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class MapTest {
@JsonProperty("map_map_of_string")
private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>();

View File

@ -16,7 +16,7 @@ import java.util.UUID;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class MixedPropertiesAndAdditionalPropertiesClass {
@JsonProperty("uuid")
private UUID uuid = null;

View File

@ -13,7 +13,7 @@ import io.swagger.annotations.ApiModelProperty;
**/
@ApiModel(description = "Model for testing model name starting with number")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Model200Response {
@JsonProperty("name")
private Integer name = null;

View File

@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class ModelApiResponse {
@JsonProperty("code")
private Integer code = null;

View File

@ -13,7 +13,7 @@ import io.swagger.annotations.ApiModelProperty;
**/
@ApiModel(description = "Model for testing reserved words")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class ModelReturn {
@JsonProperty("return")
private Integer _return = null;

View File

@ -13,7 +13,7 @@ import io.swagger.annotations.ApiModelProperty;
**/
@ApiModel(description = "Model for testing model name same as property name")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Name {
@JsonProperty("name")
private Integer name = null;

View File

@ -11,7 +11,7 @@ import java.math.BigDecimal;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class NumberOnly {
@JsonProperty("JustNumber")
private BigDecimal justNumber = null;

View File

@ -12,7 +12,7 @@ import java.util.Date;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Order {
@JsonProperty("id")
private Long id = null;

View File

@ -15,7 +15,7 @@ import java.util.List;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Pet {
@JsonProperty("id")
private Long id = null;

View File

@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class ReadOnlyFirst {
@JsonProperty("bar")
private String bar = null;

View File

@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class SpecialModelName {
@JsonProperty("$special[property.name]")
private Long specialPropertyName = null;

View File

@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Tag {
@JsonProperty("id")
private Long id = null;

View File

@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class User {
@JsonProperty("id")
private Long id = null;

View File

@ -14,7 +14,7 @@ import java.math.BigDecimal;
import io.swagger.model.Client;
import java.util.Date;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class FakeController {
/**
* Uncomment and implement as you see fit. These operations will map

View File

@ -14,7 +14,7 @@ import java.io.File;
import io.swagger.model.ModelApiResponse;
import io.swagger.model.Pet;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class PetController {
/**
* Uncomment and implement as you see fit. These operations will map

View File

@ -13,7 +13,7 @@ import io.swagger.model.*;
import java.util.Map;
import io.swagger.model.Order;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class StoreController {
/**
* Uncomment and implement as you see fit. These operations will map

View File

@ -13,7 +13,7 @@ import io.swagger.model.*;
import java.util.List;
import io.swagger.model.User;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class UserController {
/**
* Uncomment and implement as you see fit. These operations will map