Skip to content

Commit cc07172

Browse files
committed
updated spring samples
1 parent ea64861 commit cc07172

File tree

316 files changed

+1851
-77
lines changed

Some content is hidden

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

316 files changed

+1851
-77
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.13-SNAPSHOT
1+
2.4.19-SNAPSHOT

samples/client/petstore/spring-cloud/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 (2.4.3-SNAPSHOT).
2+
* NOTE: This class is auto generated by the swagger code generator program (2.4.19-SNAPSHOT).
33
* https://github.com/swagger-api/swagger-codegen
44
* Do not edit the class manually.
55
*/
@@ -24,6 +24,7 @@
2424
import javax.validation.constraints.*;
2525
import java.util.List;
2626

27+
@Validated
2728
@Api(value = "Pet", description = "the Pet API")
2829
@RequestMapping(value = "/v2")
2930
public interface PetApi {

samples/client/petstore/spring-cloud/src/main/java/io/swagger/api/PetApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
import org.springframework.cloud.netflix.feign.FeignClient;
44
import io.swagger.configuration.ClientConfiguration;
55

6-
@FeignClient(name="${swaggerPetstore.name:swaggerPetstore}", url="${swaggerPetstore.url:http://petstore.swagger.io}", configuration = ClientConfiguration.class)
6+
@FeignClient(name="${swaggerPetstore.name:swaggerPetstore}", url="${swaggerPetstore.url:https://petstore.swagger.io}", configuration = ClientConfiguration.class)
77
public interface PetApiClient extends PetApi {
88
}

samples/client/petstore/spring-cloud/src/main/java/io/swagger/api/StoreApi.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 (2.4.3-SNAPSHOT).
2+
* NOTE: This class is auto generated by the swagger code generator program (2.4.19-SNAPSHOT).
33
* https://github.com/swagger-api/swagger-codegen
44
* Do not edit the class manually.
55
*/
@@ -23,6 +23,7 @@
2323
import javax.validation.constraints.*;
2424
import java.util.List;
2525

26+
@Validated
2627
@Api(value = "Store", description = "the Store API")
2728
@RequestMapping(value = "/v2")
2829
public interface StoreApi {

samples/client/petstore/spring-cloud/src/main/java/io/swagger/api/StoreApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
import org.springframework.cloud.netflix.feign.FeignClient;
44
import io.swagger.configuration.ClientConfiguration;
55

6-
@FeignClient(name="${swaggerPetstore.name:swaggerPetstore}", url="${swaggerPetstore.url:http://petstore.swagger.io}", configuration = ClientConfiguration.class)
6+
@FeignClient(name="${swaggerPetstore.name:swaggerPetstore}", url="${swaggerPetstore.url:https://petstore.swagger.io}", configuration = ClientConfiguration.class)
77
public interface StoreApiClient extends StoreApi {
88
}

samples/client/petstore/spring-cloud/src/main/java/io/swagger/api/UserApi.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 (2.4.3-SNAPSHOT).
2+
* NOTE: This class is auto generated by the swagger code generator program (2.4.19-SNAPSHOT).
33
* https://github.com/swagger-api/swagger-codegen
44
* Do not edit the class manually.
55
*/
@@ -23,6 +23,7 @@
2323
import javax.validation.constraints.*;
2424
import java.util.List;
2525

26+
@Validated
2627
@Api(value = "User", description = "the User API")
2728
@RequestMapping(value = "/v2")
2829
public interface UserApi {

samples/client/petstore/spring-cloud/src/main/java/io/swagger/api/UserApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
import org.springframework.cloud.netflix.feign.FeignClient;
44
import io.swagger.configuration.ClientConfiguration;
55

6-
@FeignClient(name="${swaggerPetstore.name:swaggerPetstore}", url="${swaggerPetstore.url:http://petstore.swagger.io}", configuration = ClientConfiguration.class)
6+
@FeignClient(name="${swaggerPetstore.name:swaggerPetstore}", url="${swaggerPetstore.url:https://petstore.swagger.io}", configuration = ClientConfiguration.class)
77
public interface UserApiClient extends UserApi {
88
}

samples/client/petstore/spring-cloud/src/main/java/io/swagger/model/Amount.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
@ApiModel(description = "some description ")
1616
@Validated
1717

18+
1819
public class Amount {
1920
@JsonProperty("value")
2021
private Double value = null;

samples/client/petstore/spring-cloud/src/main/java/io/swagger/model/Category.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
@ApiModel(description = "A category for a pet")
1616
@Validated
1717

18+
1819
public class Category {
1920
@JsonProperty("id")
2021
private Long id = null;

samples/client/petstore/spring-cloud/src/main/java/io/swagger/model/ModelApiResponse.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
@ApiModel(description = "Describes the result of uploading an image resource")
1616
@Validated
1717

18+
1819
public class ModelApiResponse {
1920
@JsonProperty("code")
2021
private Integer code = null;

0 commit comments

Comments
 (0)