Skip to content

Commit e58094f

Browse files
committed
updated spring samples with current version
1 parent efdde9b commit e58094f

File tree

382 files changed

+1141
-543
lines changed

Some content is hidden

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

382 files changed

+1141
-543
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.16
1+
3.0.17-SNAPSHOT

samples/composed/client/petstore/spring-cloud-v2/src/main/java/io/swagger/api/DefaultApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* NOTE: This class is auto generated by the swagger code generator program (3.0.16).
2+
* NOTE: This class is auto generated by the swagger code generator program (3.0.17-SNAPSHOT).
33
* https://github.com/swagger-api/swagger-codegen
44
* Do not edit the class manually.
55
*/

samples/composed/client/petstore/spring-cloud-v2/src/main/java/io/swagger/api/PetApi.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* NOTE: This class is auto generated by the swagger code generator program (3.0.16).
2+
* NOTE: This class is auto generated by the swagger code generator program (3.0.17-SNAPSHOT).
33
* https://github.com/swagger-api/swagger-codegen
44
* Do not edit the class manually.
55
*/
@@ -83,6 +83,7 @@ com.netflix.hystrix.HystrixCommand<ResponseEntity<Void>> feedPet(@ApiParam(value
8383
,@NotNull @ApiParam(value = "type of food", required = true) @Valid @RequestParam(value = "petType", required = true) String petType
8484
,@NotNull @ApiParam(value = "status", required = true) @Valid @RequestParam(value = "status", required = true) String status
8585
,@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId
86+
,@ApiParam(value = "session id" ,required=true) @CookieValue(value="sessionId", required=true) String sessionId
8687
);
8788

8889

samples/composed/client/petstore/spring-cloud-v2/src/main/java/io/swagger/api/StoreApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* NOTE: This class is auto generated by the swagger code generator program (3.0.16).
2+
* NOTE: This class is auto generated by the swagger code generator program (3.0.17-SNAPSHOT).
33
* https://github.com/swagger-api/swagger-codegen
44
* Do not edit the class manually.
55
*/

samples/composed/client/petstore/spring-cloud-v2/src/main/java/io/swagger/api/UserApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* NOTE: This class is auto generated by the swagger code generator program (3.0.16).
2+
* NOTE: This class is auto generated by the swagger code generator program (3.0.17-SNAPSHOT).
33
* https://github.com/swagger-api/swagger-codegen
44
* Do not edit the class manually.
55
*/

samples/composed/client/petstore/spring-cloud-v2/src/main/java/io/swagger/model/AllPetsResponse.java

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

33
import java.util.Objects;
4-
import io.swagger.model.OneOfAllPetsResponseItems;
54
import java.util.ArrayList;
65
import java.util.List;
76
import org.springframework.validation.annotation.Validated;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package io.swagger.model;
2+
3+
4+
/**
5+
* AnyOfbody1ParrotsItems
6+
*/
7+
public interface AnyOfbody1ParrotsItems {
8+
9+
}

samples/composed/client/petstore/spring-cloud-v2/src/main/java/io/swagger/model/Body1.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
public class Body1 {
1919
@JsonProperty("parrots")
2020
@Valid
21-
private List<Object> parrots = null;
21+
private List<AnyOfbody1ParrotsItems> parrots = null;
2222

23-
public Body1 parrots(List<Object> parrots) {
23+
public Body1 parrots(List<AnyOfbody1ParrotsItems> parrots) {
2424
this.parrots = parrots;
2525
return this;
2626
}
2727

28-
public Body1 addParrotsItem(Object parrotsItem) {
28+
public Body1 addParrotsItem(AnyOfbody1ParrotsItems parrotsItem) {
2929
if (this.parrots == null) {
30-
this.parrots = new ArrayList<Object>();
30+
this.parrots = new ArrayList<AnyOfbody1ParrotsItems>();
3131
}
3232
this.parrots.add(parrotsItem);
3333
return this;
@@ -39,11 +39,11 @@ public Body1 addParrotsItem(Object parrotsItem) {
3939
**/
4040
@ApiModelProperty(value = "")
4141

42-
public List<Object> getParrots() {
42+
public List<AnyOfbody1ParrotsItems> getParrots() {
4343
return parrots;
4444
}
4545

46-
public void setParrots(List<Object> parrots) {
46+
public void setParrots(List<AnyOfbody1ParrotsItems> parrots) {
4747
this.parrots = parrots;
4848
}
4949

samples/composed/client/petstore/spring-cloud-v2/src/main/java/io/swagger/model/Body2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Body2
1010
*/
1111
@Validated
12-
public class Body2 implements AnyOfbody_2 {
12+
public class Body2 implements AnyOfbody2 {
1313

1414
@Override
1515
public boolean equals(java.lang.Object o) {

samples/composed/client/petstore/spring-cloud-v2/src/main/java/io/swagger/model/Cat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Cat
1717
*/
1818
@Validated
19-
public class Cat extends Pet implements OneOfPup, OneOfAllPetsResponseItems {
19+
public class Cat extends Pet implements OneOfAllPetsResponseItems, OneOfPetPartItems, OneOfPup {
2020
@JsonProperty("hunts")
2121
private Boolean hunts = null;
2222

0 commit comments

Comments
 (0)