Minor improvement to Go client generator, move test case (#430)

* move test cases to under fake endpoint

* remove trailing spaces in the template

* update samples

* add new file

* minor fix to OAS3 spec
This commit is contained in:
William Cheng
2018-07-02 10:23:12 +08:00
committed by GitHub
parent 412923ab5f
commit 862fe79f32
140 changed files with 1199 additions and 916 deletions

View File

@@ -480,7 +480,7 @@ if (file != null)
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* uploads an image
* uploads an image (required)
*
* @param petId ID of pet to update (required)
* @param file file to upload (required)
@@ -493,7 +493,7 @@ if (file != null)
}
/**
* uploads an image
* uploads an image (required)
*
* @param petId ID of pet to update (required)
* @param file file to upload (required)
@@ -515,7 +515,7 @@ if (file != null)
}
// create path and map variables
String localVarPath = "/pet/{petId}/uploadImageWithRequiredFile"
String localVarPath = "/fake/{petId}/uploadImageWithRequiredFile"
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params