Skip to content

Commit 9016e45

Browse files
committed
regen samples
1 parent f579bd1 commit 9016e45

File tree

90 files changed

+433
-215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+433
-215
lines changed

samples/client/petstore/jaxrs-cxf-client-jackson/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ for this project used jakarta.validation-api -->
183183
<java.version>1.8</java.version>
184184
<maven.compiler.source>${java.version}</maven.compiler.source>
185185
<maven.compiler.target>${java.version}</maven.compiler.target>
186-
<swagger-core-version>1.5.18</swagger-core-version>
186+
<swagger-core-version>1.6.6</swagger-core-version>
187187
<jetty-version>9.2.9.v20150224</jetty-version>
188188
<junit-version>4.13.2</junit-version>
189189
<logback-version>1.4.14</logback-version>

samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/api/PetApi.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@
44
import org.openapitools.model.ModelApiResponse;
55
import org.openapitools.model.Pet;
66

7-
import java.io.InputStream;
8-
import java.io.OutputStream;
97
import java.util.List;
108
import java.util.Map;
119
import javax.ws.rs.*;
12-
import javax.ws.rs.core.Response;
13-
import javax.ws.rs.core.MediaType;
1410
import org.apache.cxf.jaxrs.ext.multipart.*;
1511

1612
import io.swagger.annotations.Api;

samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/api/StoreApi.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22

33
import org.openapitools.model.Order;
44

5-
import java.io.InputStream;
6-
import java.io.OutputStream;
75
import java.util.List;
86
import java.util.Map;
97
import javax.ws.rs.*;
10-
import javax.ws.rs.core.Response;
11-
import javax.ws.rs.core.MediaType;
128
import org.apache.cxf.jaxrs.ext.multipart.*;
139

1410
import io.swagger.annotations.Api;

samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/api/UserApi.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@
33
import java.util.Date;
44
import org.openapitools.model.User;
55

6-
import java.io.InputStream;
7-
import java.io.OutputStream;
86
import java.util.List;
97
import java.util.Map;
108
import javax.ws.rs.*;
11-
import javax.ws.rs.core.Response;
12-
import javax.ws.rs.core.MediaType;
139
import org.apache.cxf.jaxrs.ext.multipart.*;
1410

1511
import io.swagger.annotations.Api;

samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Category.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
package org.openapitools.model;
22

3-
import io.swagger.annotations.ApiModel;
43

4+
import io.swagger.annotations.ApiModel;
55
import io.swagger.annotations.ApiModelProperty;
66
import java.util.Objects;
77
import com.fasterxml.jackson.annotation.JsonProperty;
88

99
/**
10-
* A category for a pet
11-
**/
10+
* A category for a pet
11+
*/
1212
@ApiModel(description="A category for a pet")
1313

1414
public class Category {
1515

1616
@ApiModelProperty(value = "")
17+
1718
private Long id;
1819

1920
@ApiModelProperty(value = "")
21+
2022
private String name;
2123
/**
2224
* Get id

samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/ModelApiResponse.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
package org.openapitools.model;
22

33
import com.fasterxml.jackson.annotation.JsonTypeName;
4-
import io.swagger.annotations.ApiModel;
54

5+
import io.swagger.annotations.ApiModel;
66
import io.swagger.annotations.ApiModelProperty;
77
import java.util.Objects;
88
import com.fasterxml.jackson.annotation.JsonProperty;
99

1010
/**
11-
* Describes the result of uploading an image resource
12-
**/
11+
* Describes the result of uploading an image resource
12+
*/
1313
@ApiModel(description="Describes the result of uploading an image resource")
1414

1515
public class ModelApiResponse {
1616

1717
@ApiModelProperty(value = "")
18+
1819
private Integer code;
1920

2021
@ApiModelProperty(value = "")
22+
2123
private String type;
2224

2325
@ApiModelProperty(value = "")
26+
2427
private String message;
2528
/**
2629
* Get code

samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Order.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,34 @@
22

33
import com.fasterxml.jackson.annotation.JsonCreator;
44
import com.fasterxml.jackson.annotation.JsonValue;
5-
import io.swagger.annotations.ApiModel;
65
import java.util.Date;
76

7+
import io.swagger.annotations.ApiModel;
88
import io.swagger.annotations.ApiModelProperty;
99
import java.util.Objects;
1010
import com.fasterxml.jackson.annotation.JsonProperty;
1111

1212
/**
13-
* An order for a pets from the pet store
14-
**/
13+
* An order for a pets from the pet store
14+
*/
1515
@ApiModel(description="An order for a pets from the pet store")
1616

1717
public class Order {
1818

1919
@ApiModelProperty(value = "")
20+
2021
private Long id;
2122

2223
@ApiModelProperty(value = "")
24+
2325
private Long petId;
2426

2527
@ApiModelProperty(value = "")
28+
2629
private Integer quantity;
2730

2831
@ApiModelProperty(value = "")
32+
2933
private Date shipDate;
3034

3135
public enum StatusEnum {
@@ -60,13 +64,15 @@ public static StatusEnum fromValue(String value) {
6064
}
6165
}
6266

63-
@ApiModelProperty(value = "Order Status")
6467
/**
65-
* Order Status
66-
**/
68+
* Order Status
69+
*/
70+
@ApiModelProperty(value = "Order Status")
71+
6772
private StatusEnum status;
6873

6974
@ApiModelProperty(value = "")
75+
7076
private Boolean complete = false;
7177
/**
7278
* Get id

samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Pet.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,42 @@
22

33
import com.fasterxml.jackson.annotation.JsonCreator;
44
import com.fasterxml.jackson.annotation.JsonValue;
5-
import io.swagger.annotations.ApiModel;
65
import java.util.ArrayList;
76
import java.util.Arrays;
87
import java.util.List;
98
import org.openapitools.model.Category;
109
import org.openapitools.model.Tag;
1110

11+
import io.swagger.annotations.ApiModel;
1212
import io.swagger.annotations.ApiModelProperty;
1313
import java.util.Objects;
1414
import com.fasterxml.jackson.annotation.JsonProperty;
1515

1616
/**
17-
* A pet for sale in the pet store
18-
**/
17+
* A pet for sale in the pet store
18+
*/
1919
@ApiModel(description="A pet for sale in the pet store")
2020

2121
public class Pet {
2222

2323
@ApiModelProperty(value = "")
24+
2425
private Long id;
2526

2627
@ApiModelProperty(value = "")
28+
2729
private Category category;
2830

2931
@ApiModelProperty(example = "doggie", required = true, value = "")
32+
3033
private String name;
3134

3235
@ApiModelProperty(required = true, value = "")
36+
3337
private List<String> photoUrls = new ArrayList<>();
3438

3539
@ApiModelProperty(value = "")
40+
3641
private List<Tag> tags;
3742

3843
public enum StatusEnum {
@@ -67,10 +72,11 @@ public static StatusEnum fromValue(String value) {
6772
}
6873
}
6974

70-
@ApiModelProperty(value = "pet status in the store")
7175
/**
72-
* pet status in the store
73-
**/
76+
* pet status in the store
77+
*/
78+
@ApiModelProperty(value = "pet status in the store")
79+
7480
private StatusEnum status;
7581
/**
7682
* Get id

samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Tag.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
package org.openapitools.model;
22

3-
import io.swagger.annotations.ApiModel;
43

4+
import io.swagger.annotations.ApiModel;
55
import io.swagger.annotations.ApiModelProperty;
66
import java.util.Objects;
77
import com.fasterxml.jackson.annotation.JsonProperty;
88

99
/**
10-
* A tag for a pet
11-
**/
10+
* A tag for a pet
11+
*/
1212
@ApiModel(description="A tag for a pet")
1313

1414
public class Tag {
1515

1616
@ApiModelProperty(value = "")
17+
1718
private Long id;
1819

1920
@ApiModelProperty(value = "")
21+
2022
private String name;
2123
/**
2224
* Get id

samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/User.java

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,51 @@
11
package org.openapitools.model;
22

3-
import io.swagger.annotations.ApiModel;
43

4+
import io.swagger.annotations.ApiModel;
55
import io.swagger.annotations.ApiModelProperty;
66
import java.util.Objects;
77
import com.fasterxml.jackson.annotation.JsonProperty;
88

99
/**
10-
* A User who is purchasing from the pet store
11-
**/
10+
* A User who is purchasing from the pet store
11+
*/
1212
@ApiModel(description="A User who is purchasing from the pet store")
1313

1414
public class User {
1515

1616
@ApiModelProperty(value = "")
17+
1718
private Long id;
1819

1920
@ApiModelProperty(value = "")
21+
2022
private String username;
2123

2224
@ApiModelProperty(value = "")
25+
2326
private String firstName;
2427

2528
@ApiModelProperty(value = "")
29+
2630
private String lastName;
2731

2832
@ApiModelProperty(value = "")
33+
2934
private String email;
3035

3136
@ApiModelProperty(value = "")
37+
3238
private String password;
3339

3440
@ApiModelProperty(value = "")
41+
3542
private String phone;
3643

37-
@ApiModelProperty(value = "User Status")
3844
/**
39-
* User Status
40-
**/
45+
* User Status
46+
*/
47+
@ApiModelProperty(value = "User Status")
48+
4149
private Integer userStatus;
4250
/**
4351
* Get id

0 commit comments

Comments
 (0)