forked from loafle/openapi-generator-original
[KOTLIN] [SPRING] Minor bug fixes to generator (#1001)
This commit is contained in:
committed by
Jim Schubert
parent
2d99836e90
commit
1ae3403f6d
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user