Fix Kotlin default value (#2513)

* fix kotlin default value

* fix test cases
This commit is contained in:
William Cheng
2019-03-27 14:04:52 +08:00
committed by GitHub
parent 2ce3574868
commit 1c1c1ef9c3
20 changed files with 123 additions and 96 deletions

View File

@@ -52,7 +52,7 @@ class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCli
* Deletes a pet
*
* @param petId Pet id to delete
* @param apiKey (optional, default to null)
* @param apiKey (optional)
* @return void
*/
fun deletePet(petId: kotlin.Long, apiKey: kotlin.String?) : Unit {
@@ -206,8 +206,8 @@ class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCli
* Updates a pet in the store with form data
*
* @param petId ID of pet that needs to be updated
* @param name Updated name of the pet (optional, default to null)
* @param status Updated status of the pet (optional, default to null)
* @param name Updated name of the pet (optional)
* @param status Updated status of the pet (optional)
* @return void
*/
fun updatePetWithForm(petId: kotlin.Long, name: kotlin.String?, status: kotlin.String?) : Unit {
@@ -238,8 +238,8 @@ class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCli
* uploads an image
*
* @param petId ID of pet to update
* @param additionalMetadata Additional data to pass to server (optional, default to null)
* @param file file to upload (optional, default to null)
* @param additionalMetadata Additional data to pass to server (optional)
* @param file file to upload (optional)
* @return ApiResponse
*/
@Suppress("UNCHECKED_CAST")