forked from loafle/openapi-generator-original
Fix UUID default value cast exception (swift5) (#16436)
This commit is contained in:
@@ -9,6 +9,7 @@ import org.openapitools.client.Pair;
|
||||
import javax.ws.rs.core.GenericType;
|
||||
|
||||
import org.openapitools.client.model.Client;
|
||||
import java.util.UUID;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
@@ -49,6 +50,7 @@ public class AnotherFakeApi {
|
||||
/**
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
* @param uuidTest to test uuid example value (required)
|
||||
* @param body client model (required)
|
||||
* @return Client
|
||||
* @throws ApiException if fails to make API call
|
||||
@@ -58,13 +60,14 @@ public class AnotherFakeApi {
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public Client call123testSpecialTags(Client body) throws ApiException {
|
||||
return call123testSpecialTagsWithHttpInfo(body).getData();
|
||||
public Client call123testSpecialTags(UUID uuidTest, Client body) throws ApiException {
|
||||
return call123testSpecialTagsWithHttpInfo(uuidTest, body).getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
* @param uuidTest to test uuid example value (required)
|
||||
* @param body client model (required)
|
||||
* @return ApiResponse<Client>
|
||||
* @throws ApiException if fails to make API call
|
||||
@@ -74,17 +77,24 @@ public class AnotherFakeApi {
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client body) throws ApiException {
|
||||
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(UUID uuidTest, Client body) throws ApiException {
|
||||
// Check required parameters
|
||||
if (uuidTest == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'uuidTest' when calling call123testSpecialTags");
|
||||
}
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling call123testSpecialTags");
|
||||
}
|
||||
|
||||
// Header parameters
|
||||
Map<String, String> localVarHeaderParams = new LinkedHashMap<>();
|
||||
localVarHeaderParams.put("uuid_test", apiClient.parameterToString(uuidTest));
|
||||
|
||||
String localVarAccept = apiClient.selectHeaderAccept("application/json");
|
||||
String localVarContentType = apiClient.selectHeaderContentType("application/json");
|
||||
GenericType<Client> localVarReturnType = new GenericType<Client>() {};
|
||||
return apiClient.invokeAPI("AnotherFakeApi.call123testSpecialTags", "/another-fake/dummy", "PATCH", new ArrayList<>(), body,
|
||||
new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
|
||||
localVarHeaderParams, new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
|
||||
null, localVarReturnType, false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user