[KOTLIN] [SPRING] Minor bug fixes to generator (#1001)

This commit is contained in:
Adam Drakeford
2018-09-12 02:41:12 +01:00
committed by Jim Schubert
parent 2d99836e90
commit 1ae3403f6d
20 changed files with 85 additions and 23 deletions

View File

@@ -1 +1 @@
3.2.3-SNAPSHOT
3.3.0-SNAPSHOT

View File

@@ -38,6 +38,7 @@ dependencies {
compile("io.swagger:swagger-annotations:1.5.21")
compile("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml")
compile("com.fasterxml.jackson.dataformat:jackson-dataformat-xml")
compile("com.fasterxml.jackson.module:jackson-module-kotlin")
testCompile("org.springframework.boot:spring-boot-starter-test") {
exclude(module = "junit")

View File

@@ -96,6 +96,10 @@
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-kotlin</artifactId>
</dependency>
<!-- Bean Validation API support -->
<dependency>
<groupId>javax.validation</groupId>

View File

@@ -28,7 +28,7 @@ import kotlin.collections.Map
@Controller
@Validated
@Api(value = "Pet", description = "The Pet API")
@RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}")
@RequestMapping("\${api.base-path:/v2}")
class PetApiController(@Autowired(required = true) val service: PetApiService) {
@ApiOperation(

View File

@@ -27,7 +27,7 @@ import kotlin.collections.Map
@Controller
@Validated
@Api(value = "Store", description = "The Store API")
@RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}")
@RequestMapping("\${api.base-path:/v2}")
class StoreApiController(@Autowired(required = true) val service: StoreApiService) {
@ApiOperation(

View File

@@ -27,7 +27,7 @@ import kotlin.collections.Map
@Controller
@Validated
@Api(value = "User", description = "The User API")
@RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}")
@RequestMapping("\${api.base-path:/v2}")
class UserApiController(@Autowired(required = true) val service: UserApiService) {
@ApiOperation(

View File

@@ -1,3 +1,10 @@
spring.application.name=openAPIPetstore
server.port=8080
spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS=false
spring:
application:
name: openAPIPetstore
jackson:
serialization:
WRITE_DATES_AS_TIMESTAMPS: false
server:
port: 8080