Skip to content

Commit c9c9d9a

Browse files
committed
rebuilt
1 parent 2cec619 commit c9c9d9a

File tree

9 files changed

+224
-11
lines changed

9 files changed

+224
-11
lines changed

samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/PetApi.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
import io.swagger.annotations.Api;
1717
import io.swagger.annotations.ApiOperation;
18+
import io.swagger.jaxrs.PATCH;
19+
import javax.validation.constraints.*;
1820

1921
@Path("/")
2022
@Api(value = "/", description = "")
@@ -37,13 +39,13 @@ public interface PetApi {
3739
@Path("/pet/findByStatus")
3840
@Produces({ "application/xml", "application/json" })
3941
@ApiOperation(value = "Finds Pets by status", tags={ "pet", })
40-
public List<Pet> findPetsByStatus(@QueryParam("status")List<String> status);
42+
public List<Pet> findPetsByStatus(@QueryParam("status") @NotNull List<String> status);
4143

4244
@GET
4345
@Path("/pet/findByTags")
4446
@Produces({ "application/xml", "application/json" })
4547
@ApiOperation(value = "Finds Pets by tags", tags={ "pet", })
46-
public List<Pet> findPetsByTags(@QueryParam("tags")List<String> tags);
48+
public List<Pet> findPetsByTags(@QueryParam("tags") @NotNull List<String> tags);
4749

4850
@GET
4951
@Path("/pet/{petId}")

samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/StoreApi.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
import io.swagger.annotations.Api;
1616
import io.swagger.annotations.ApiOperation;
17+
import io.swagger.jaxrs.PATCH;
18+
import javax.validation.constraints.*;
1719

1820
@Path("/")
1921
@Api(value = "/", description = "")

samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/UserApi.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
import io.swagger.annotations.Api;
1616
import io.swagger.annotations.ApiOperation;
17+
import io.swagger.jaxrs.PATCH;
18+
import javax.validation.constraints.*;
1719

1820
@Path("/")
1921
@Api(value = "/", description = "")
@@ -53,7 +55,7 @@ public interface UserApi {
5355
@Path("/user/login")
5456
@Produces({ "application/xml", "application/json" })
5557
@ApiOperation(value = "Logs user into the system", tags={ "user", })
56-
public String loginUser(@QueryParam("username")String username, @QueryParam("password")String password);
58+
public String loginUser(@QueryParam("username") @NotNull String username, @QueryParam("password") @NotNull String password);
5759

5860
@GET
5961
@Path("/user/logout")

samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/Category.java

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package io.swagger.model;
22

33
import io.swagger.annotations.ApiModel;
4+
import javax.validation.constraints.*;
45

56
import io.swagger.annotations.ApiModelProperty;
67
import javax.xml.bind.annotation.XmlElement;
@@ -26,20 +27,34 @@ public class Category {
2627
public Long getId() {
2728
return id;
2829
}
30+
2931
public void setId(Long id) {
3032
this.id = id;
3133
}
34+
35+
public Category id(Long id) {
36+
this.id = id;
37+
return this;
38+
}
39+
3240
/**
3341
* Get name
3442
* @return name
3543
**/
3644
public String getName() {
3745
return name;
3846
}
47+
3948
public void setName(String name) {
4049
this.name = name;
4150
}
4251

52+
public Category name(String name) {
53+
this.name = name;
54+
return this;
55+
}
56+
57+
4358
@Override
4459
public String toString() {
4560
StringBuilder sb = new StringBuilder();
@@ -55,7 +70,7 @@ public String toString() {
5570
* Convert the given object to string with each line indented by 4 spaces
5671
* (except the first line).
5772
*/
58-
private static String toIndentedString(Object o) {
73+
private static String toIndentedString(java.lang.Object o) {
5974
if (o == null) {
6075
return "null";
6176
}

samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/ModelApiResponse.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package io.swagger.model;
22

33
import io.swagger.annotations.ApiModel;
4+
import javax.validation.constraints.*;
45

56
import io.swagger.annotations.ApiModelProperty;
67
import javax.xml.bind.annotation.XmlElement;
@@ -28,30 +29,51 @@ public class ModelApiResponse {
2829
public Integer getCode() {
2930
return code;
3031
}
32+
3133
public void setCode(Integer code) {
3234
this.code = code;
3335
}
36+
37+
public ModelApiResponse code(Integer code) {
38+
this.code = code;
39+
return this;
40+
}
41+
3442
/**
3543
* Get type
3644
* @return type
3745
**/
3846
public String getType() {
3947
return type;
4048
}
49+
4150
public void setType(String type) {
4251
this.type = type;
4352
}
53+
54+
public ModelApiResponse type(String type) {
55+
this.type = type;
56+
return this;
57+
}
58+
4459
/**
4560
* Get message
4661
* @return message
4762
**/
4863
public String getMessage() {
4964
return message;
5065
}
66+
5167
public void setMessage(String message) {
5268
this.message = message;
5369
}
5470

71+
public ModelApiResponse message(String message) {
72+
this.message = message;
73+
return this;
74+
}
75+
76+
5577
@Override
5678
public String toString() {
5779
StringBuilder sb = new StringBuilder();
@@ -68,7 +90,7 @@ public String toString() {
6890
* Convert the given object to string with each line indented by 4 spaces
6991
* (except the first line).
7092
*/
71-
private static String toIndentedString(Object o) {
93+
private static String toIndentedString(java.lang.Object o) {
7294
if (o == null) {
7395
return "null";
7496
}

samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/Order.java

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package io.swagger.model;
22

33
import io.swagger.annotations.ApiModel;
4+
import javax.validation.constraints.*;
45

56
import io.swagger.annotations.ApiModelProperty;
67
import javax.xml.bind.annotation.XmlElement;
@@ -27,7 +28,7 @@ public class Order {
2728
@XmlEnum(String.class)
2829
public enum StatusEnum {
2930

30-
@XmlEnumValue("placed") PLACED(String.valueOf("placed")), @XmlEnumValue("approved") APPROVED(String.valueOf("approved")), @XmlEnumValue("delivered") DELIVERED(String.valueOf("delivered"));
31+
@XmlEnumValue("placed") PLACED(String.valueOf("placed")), @XmlEnumValue("approved") APPROVED(String.valueOf("approved")), @XmlEnumValue("delivered") DELIVERED(String.valueOf("delivered"));
3132

3233

3334
private String value;
@@ -67,60 +68,102 @@ public static StatusEnum fromValue(String v) {
6768
public Long getId() {
6869
return id;
6970
}
71+
7072
public void setId(Long id) {
7173
this.id = id;
7274
}
75+
76+
public Order id(Long id) {
77+
this.id = id;
78+
return this;
79+
}
80+
7381
/**
7482
* Get petId
7583
* @return petId
7684
**/
7785
public Long getPetId() {
7886
return petId;
7987
}
88+
8089
public void setPetId(Long petId) {
8190
this.petId = petId;
8291
}
92+
93+
public Order petId(Long petId) {
94+
this.petId = petId;
95+
return this;
96+
}
97+
8398
/**
8499
* Get quantity
85100
* @return quantity
86101
**/
87102
public Integer getQuantity() {
88103
return quantity;
89104
}
105+
90106
public void setQuantity(Integer quantity) {
91107
this.quantity = quantity;
92108
}
109+
110+
public Order quantity(Integer quantity) {
111+
this.quantity = quantity;
112+
return this;
113+
}
114+
93115
/**
94116
* Get shipDate
95117
* @return shipDate
96118
**/
97119
public javax.xml.datatype.XMLGregorianCalendar getShipDate() {
98120
return shipDate;
99121
}
122+
100123
public void setShipDate(javax.xml.datatype.XMLGregorianCalendar shipDate) {
101124
this.shipDate = shipDate;
102125
}
126+
127+
public Order shipDate(javax.xml.datatype.XMLGregorianCalendar shipDate) {
128+
this.shipDate = shipDate;
129+
return this;
130+
}
131+
103132
/**
104133
* Order Status
105134
* @return status
106135
**/
107136
public StatusEnum getStatus() {
108137
return status;
109138
}
139+
110140
public void setStatus(StatusEnum status) {
111141
this.status = status;
112142
}
143+
144+
public Order status(StatusEnum status) {
145+
this.status = status;
146+
return this;
147+
}
148+
113149
/**
114150
* Get complete
115151
* @return complete
116152
**/
117153
public Boolean getComplete() {
118154
return complete;
119155
}
156+
120157
public void setComplete(Boolean complete) {
121158
this.complete = complete;
122159
}
123160

161+
public Order complete(Boolean complete) {
162+
this.complete = complete;
163+
return this;
164+
}
165+
166+
124167
@Override
125168
public String toString() {
126169
StringBuilder sb = new StringBuilder();
@@ -140,7 +183,7 @@ public String toString() {
140183
* Convert the given object to string with each line indented by 4 spaces
141184
* (except the first line).
142185
*/
143-
private static String toIndentedString(Object o) {
186+
private static String toIndentedString(java.lang.Object o) {
144187
if (o == null) {
145188
return "null";
146189
}

0 commit comments

Comments
 (0)