diff --git a/modules/swagger-codegen/src/main/resources/Java/libraries/okhttp-gson/model.mustache b/modules/swagger-codegen/src/main/resources/Java/libraries/okhttp-gson/model.mustache index e8e74cc815a..f469a1346ae 100644 --- a/modules/swagger-codegen/src/main/resources/Java/libraries/okhttp-gson/model.mustache +++ b/modules/swagger-codegen/src/main/resources/Java/libraries/okhttp-gson/model.mustache @@ -33,10 +33,10 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#seriali @ApiModelProperty({{#required}}required = {{required}}, {{/required}}value = "{{{description}}}") public {{{datatypeWithEnum}}} {{getter}}() { return {{name}}; - } + }{{^isReadOnly}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { this.{{name}} = {{name}}; - } + }{{/isReadOnly}} {{/vars}} diff --git a/modules/swagger-codegen/src/main/resources/Java/pojo.mustache b/modules/swagger-codegen/src/main/resources/Java/pojo.mustache index 4ca33302ee7..1a1f455ed31 100644 --- a/modules/swagger-codegen/src/main/resources/Java/pojo.mustache +++ b/modules/swagger-codegen/src/main/resources/Java/pojo.mustache @@ -8,7 +8,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#seriali {{>enumClass}}{{/items}}{{/items.isEnum}} private {{{datatypeWithEnum}}} {{name}} = {{{defaultValue}}};{{/vars}} - {{#vars}} + {{#vars}}{{^isReadOnly}} /**{{#description}} * {{{description}}}{{/description}}{{#minimum}} * minimum: {{minimum}}{{/minimum}}{{#maximum}} @@ -18,16 +18,16 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#seriali this.{{name}} = {{name}}; return this; } - - {{#vendorExtensions.extraAnnotation}}{{vendorExtensions.extraAnnotation}}{{/vendorExtensions.extraAnnotation}} + {{/isReadOnly}}{{#vendorExtensions.extraAnnotation}} + {{vendorExtensions.extraAnnotation}}{{/vendorExtensions.extraAnnotation}} @ApiModelProperty({{#example}}example = "{{example}}", {{/example}}{{#required}}required = {{required}}, {{/required}}value = "{{{description}}}") @JsonProperty("{{baseName}}") public {{{datatypeWithEnum}}} {{getter}}() { return {{name}}; - } + }{{^isReadOnly}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { this.{{name}} = {{name}}; - } + }{{/isReadOnly}} {{/vars}} diff --git a/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Category.java b/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Category.java index fd2d25a1bb5..a2c1e6dfbc9 100644 --- a/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Category.java +++ b/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Category.java @@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-17T17:16:20.498+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-22T14:59:49.052+08:00") public class Category { private Long id = null; @@ -22,7 +22,6 @@ public class Category { this.id = id; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("id") @@ -40,7 +39,6 @@ public class Category { this.name = name; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("name") diff --git a/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Order.java b/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Order.java index 959b5c03711..b571d5d9580 100644 --- a/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Order.java +++ b/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Order.java @@ -11,7 +11,7 @@ import java.util.Date; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-17T17:16:20.498+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-22T14:59:49.052+08:00") public class Order { private Long id = null; @@ -42,22 +42,11 @@ public class Order { private Boolean complete = null; - /** - **/ - public Order id(Long id) { - this.id = id; - return this; - } - - @ApiModelProperty(example = "null", value = "") @JsonProperty("id") public Long getId() { return id; } - public void setId(Long id) { - this.id = id; - } /** @@ -66,7 +55,6 @@ public class Order { this.petId = petId; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("petId") @@ -84,7 +72,6 @@ public class Order { this.quantity = quantity; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("quantity") @@ -102,7 +89,6 @@ public class Order { this.shipDate = shipDate; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("shipDate") @@ -121,7 +107,6 @@ public class Order { this.status = status; return this; } - @ApiModelProperty(example = "null", value = "Order Status") @JsonProperty("status") @@ -139,7 +124,6 @@ public class Order { this.complete = complete; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("complete") diff --git a/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Pet.java b/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Pet.java index 92f0d0e032d..9d183a547a5 100644 --- a/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Pet.java +++ b/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Pet.java @@ -14,7 +14,7 @@ import java.util.List; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-17T17:16:20.498+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-22T14:59:49.052+08:00") public class Pet { private Long id = null; @@ -51,7 +51,6 @@ public class Pet { this.id = id; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("id") @@ -69,7 +68,6 @@ public class Pet { this.category = category; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("category") @@ -87,7 +85,6 @@ public class Pet { this.name = name; return this; } - @ApiModelProperty(example = "doggie", required = true, value = "") @JsonProperty("name") @@ -105,7 +102,6 @@ public class Pet { this.photoUrls = photoUrls; return this; } - @ApiModelProperty(example = "null", required = true, value = "") @JsonProperty("photoUrls") @@ -123,7 +119,6 @@ public class Pet { this.tags = tags; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("tags") @@ -142,7 +137,6 @@ public class Pet { this.status = status; return this; } - @ApiModelProperty(example = "null", value = "pet status in the store") @JsonProperty("status") diff --git a/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Tag.java b/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Tag.java index 47560e0133b..070136e0718 100644 --- a/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Tag.java +++ b/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Tag.java @@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-17T17:16:20.498+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-22T14:59:49.052+08:00") public class Tag { private Long id = null; @@ -22,7 +22,6 @@ public class Tag { this.id = id; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("id") @@ -40,7 +39,6 @@ public class Tag { this.name = name; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("name") diff --git a/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/User.java b/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/User.java index 0af0d48a56d..fe65e0dfe9e 100644 --- a/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/User.java +++ b/samples/client/petstore/java/default/src/main/java/io/swagger/client/model/User.java @@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-17T17:16:20.498+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-22T14:59:49.052+08:00") public class User { private Long id = null; @@ -28,7 +28,6 @@ public class User { this.id = id; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("id") @@ -46,7 +45,6 @@ public class User { this.username = username; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("username") @@ -64,7 +62,6 @@ public class User { this.firstName = firstName; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("firstName") @@ -82,7 +79,6 @@ public class User { this.lastName = lastName; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("lastName") @@ -100,7 +96,6 @@ public class User { this.email = email; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("email") @@ -118,7 +113,6 @@ public class User { this.password = password; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("password") @@ -136,7 +130,6 @@ public class User { this.phone = phone; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("phone") @@ -155,7 +148,6 @@ public class User { this.userStatus = userStatus; return this; } - @ApiModelProperty(example = "null", value = "User Status") @JsonProperty("userStatus") diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Category.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Category.java index 2060d4f6624..05753abc4bf 100644 --- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Category.java +++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Category.java @@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-17T17:16:23.375+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-22T15:32:23.465+08:00") public class Category { private Long id = null; @@ -22,7 +22,6 @@ public class Category { this.id = id; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("id") @@ -40,7 +39,6 @@ public class Category { this.name = name; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("name") diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Order.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Order.java index 0086f0c61a7..a82b360d4fb 100644 --- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Order.java +++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Order.java @@ -11,7 +11,7 @@ import java.util.Date; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-17T17:16:23.375+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-22T15:32:23.465+08:00") public class Order { private Long id = null; @@ -42,22 +42,11 @@ public class Order { private Boolean complete = null; - /** - **/ - public Order id(Long id) { - this.id = id; - return this; - } - - @ApiModelProperty(example = "null", value = "") @JsonProperty("id") public Long getId() { return id; } - public void setId(Long id) { - this.id = id; - } /** @@ -66,7 +55,6 @@ public class Order { this.petId = petId; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("petId") @@ -84,7 +72,6 @@ public class Order { this.quantity = quantity; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("quantity") @@ -102,7 +89,6 @@ public class Order { this.shipDate = shipDate; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("shipDate") @@ -121,7 +107,6 @@ public class Order { this.status = status; return this; } - @ApiModelProperty(example = "null", value = "Order Status") @JsonProperty("status") @@ -139,7 +124,6 @@ public class Order { this.complete = complete; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("complete") diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Pet.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Pet.java index 30ecbe551c0..9cdfabd89dd 100644 --- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Pet.java +++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Pet.java @@ -14,7 +14,7 @@ import java.util.List; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-17T17:16:23.375+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-22T15:32:23.465+08:00") public class Pet { private Long id = null; @@ -51,7 +51,6 @@ public class Pet { this.id = id; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("id") @@ -69,7 +68,6 @@ public class Pet { this.category = category; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("category") @@ -87,7 +85,6 @@ public class Pet { this.name = name; return this; } - @ApiModelProperty(example = "doggie", required = true, value = "") @JsonProperty("name") @@ -105,7 +102,6 @@ public class Pet { this.photoUrls = photoUrls; return this; } - @ApiModelProperty(example = "null", required = true, value = "") @JsonProperty("photoUrls") @@ -123,7 +119,6 @@ public class Pet { this.tags = tags; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("tags") @@ -142,7 +137,6 @@ public class Pet { this.status = status; return this; } - @ApiModelProperty(example = "null", value = "pet status in the store") @JsonProperty("status") diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Tag.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Tag.java index 2a3678bc883..497f1c8424d 100644 --- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Tag.java +++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Tag.java @@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-17T17:16:23.375+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-22T15:32:23.465+08:00") public class Tag { private Long id = null; @@ -22,7 +22,6 @@ public class Tag { this.id = id; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("id") @@ -40,7 +39,6 @@ public class Tag { this.name = name; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("name") diff --git a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/User.java b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/User.java index 1f8cf539938..75039e3f237 100644 --- a/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/User.java +++ b/samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/User.java @@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-17T17:16:23.375+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-22T15:32:23.465+08:00") public class User { private Long id = null; @@ -28,7 +28,6 @@ public class User { this.id = id; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("id") @@ -46,7 +45,6 @@ public class User { this.username = username; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("username") @@ -64,7 +62,6 @@ public class User { this.firstName = firstName; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("firstName") @@ -82,7 +79,6 @@ public class User { this.lastName = lastName; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("lastName") @@ -100,7 +96,6 @@ public class User { this.email = email; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("email") @@ -118,7 +113,6 @@ public class User { this.password = password; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("password") @@ -136,7 +130,6 @@ public class User { this.phone = phone; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("phone") @@ -155,7 +148,6 @@ public class User { this.userStatus = userStatus; return this; } - @ApiModelProperty(example = "null", value = "User Status") @JsonProperty("userStatus") diff --git a/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Category.java b/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Category.java index fb8f0542c8d..cb9ca56b44f 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Category.java +++ b/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Category.java @@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-17T17:16:21.885+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-22T15:34:25.436+08:00") public class Category { private Long id = null; @@ -22,7 +22,6 @@ public class Category { this.id = id; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("id") @@ -40,7 +39,6 @@ public class Category { this.name = name; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("name") diff --git a/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Order.java b/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Order.java index 478483ef7af..3f29f00fab3 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Order.java +++ b/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Order.java @@ -11,7 +11,7 @@ import java.util.Date; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-17T17:16:21.885+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-22T15:34:25.436+08:00") public class Order { private Long id = null; @@ -42,22 +42,11 @@ public class Order { private Boolean complete = null; - /** - **/ - public Order id(Long id) { - this.id = id; - return this; - } - - @ApiModelProperty(example = "null", value = "") @JsonProperty("id") public Long getId() { return id; } - public void setId(Long id) { - this.id = id; - } /** @@ -66,7 +55,6 @@ public class Order { this.petId = petId; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("petId") @@ -84,7 +72,6 @@ public class Order { this.quantity = quantity; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("quantity") @@ -102,7 +89,6 @@ public class Order { this.shipDate = shipDate; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("shipDate") @@ -121,7 +107,6 @@ public class Order { this.status = status; return this; } - @ApiModelProperty(example = "null", value = "Order Status") @JsonProperty("status") @@ -139,7 +124,6 @@ public class Order { this.complete = complete; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("complete") diff --git a/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Pet.java b/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Pet.java index b34bf6347c5..7f3418d5bd9 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Pet.java +++ b/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Pet.java @@ -14,7 +14,7 @@ import java.util.List; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-17T17:16:21.885+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-22T15:34:25.436+08:00") public class Pet { private Long id = null; @@ -51,7 +51,6 @@ public class Pet { this.id = id; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("id") @@ -69,7 +68,6 @@ public class Pet { this.category = category; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("category") @@ -87,7 +85,6 @@ public class Pet { this.name = name; return this; } - @ApiModelProperty(example = "doggie", required = true, value = "") @JsonProperty("name") @@ -105,7 +102,6 @@ public class Pet { this.photoUrls = photoUrls; return this; } - @ApiModelProperty(example = "null", required = true, value = "") @JsonProperty("photoUrls") @@ -123,7 +119,6 @@ public class Pet { this.tags = tags; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("tags") @@ -142,7 +137,6 @@ public class Pet { this.status = status; return this; } - @ApiModelProperty(example = "null", value = "pet status in the store") @JsonProperty("status") diff --git a/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Tag.java b/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Tag.java index 62dc4226d30..76e9f52750a 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Tag.java +++ b/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Tag.java @@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-17T17:16:21.885+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-22T15:34:25.436+08:00") public class Tag { private Long id = null; @@ -22,7 +22,6 @@ public class Tag { this.id = id; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("id") @@ -40,7 +39,6 @@ public class Tag { this.name = name; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("name") diff --git a/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/User.java b/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/User.java index ba036559069..dd91724f652 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/User.java +++ b/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/User.java @@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-17T17:16:21.885+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-22T15:34:25.436+08:00") public class User { private Long id = null; @@ -28,7 +28,6 @@ public class User { this.id = id; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("id") @@ -46,7 +45,6 @@ public class User { this.username = username; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("username") @@ -64,7 +62,6 @@ public class User { this.firstName = firstName; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("firstName") @@ -82,7 +79,6 @@ public class User { this.lastName = lastName; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("lastName") @@ -100,7 +96,6 @@ public class User { this.email = email; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("email") @@ -118,7 +113,6 @@ public class User { this.password = password; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("password") @@ -136,7 +130,6 @@ public class User { this.phone = phone; return this; } - @ApiModelProperty(example = "null", value = "") @JsonProperty("phone") @@ -155,7 +148,6 @@ public class User { this.userStatus = userStatus; return this; } - @ApiModelProperty(example = "null", value = "User Status") @JsonProperty("userStatus") diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/model/Order.java b/samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/model/Order.java index 5b96b2a32b2..b0e4e246c11 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/model/Order.java @@ -62,9 +62,6 @@ public enum StatusEnum { public Long getId() { return id; } - public void setId(Long id) { - this.id = id; - } /**