Fix for optional and default types (#1107)

This commit is contained in:
Adam Drakeford
2018-09-26 11:48:15 +01:00
committed by GitHub
parent 70e6e119d1
commit 5aad02ed90
7 changed files with 11 additions and 11 deletions

View File

@@ -17,7 +17,7 @@ interface PetApiService {
fun updatePet(pet: Pet): Unit
fun updatePetWithForm(petId: Long,name: String?,status: String?): Unit
fun updatePetWithForm(petId: Long,name: String,status: String): Unit
fun uploadFile(petId: Long,additionalMetadata: String?,file: org.springframework.web.multipart.MultipartFile): ModelApiResponse
fun uploadFile(petId: Long,additionalMetadata: String,file: org.springframework.web.multipart.MultipartFile): ModelApiResponse
}

View File

@@ -31,11 +31,11 @@ class PetApiServiceImpl : PetApiService {
TODO("Implement me")
}
override fun updatePetWithForm(petId: Long,name: String?,status: String?): Unit {
override fun updatePetWithForm(petId: Long,name: String,status: String): Unit {
TODO("Implement me")
}
override fun uploadFile(petId: Long,additionalMetadata: String?,file: org.springframework.web.multipart.MultipartFile): ModelApiResponse {
override fun uploadFile(petId: Long,additionalMetadata: String,file: org.springframework.web.multipart.MultipartFile): ModelApiResponse {
TODO("Implement me")
}
}