forked from loafle/openapi-generator-original
Fix filename generation due to camelize rework (#2744)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 4.0.0-SNAPSHOT.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
@@ -35,13 +35,13 @@ PetApi::~PetApi()
|
||||
{
|
||||
}
|
||||
|
||||
pplx::task<void> PetApi::addPet(std::shared_ptr<Pet> pet)
|
||||
pplx::task<void> PetApi::addPet(std::shared_ptr<Pet> body)
|
||||
{
|
||||
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == nullptr)
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == nullptr)
|
||||
{
|
||||
throw ApiException(400, utility::conversions::to_string_t("Missing required parameter 'pet' when calling PetApi->addPet"));
|
||||
throw ApiException(400, utility::conversions::to_string_t("Missing required parameter 'body' when calling PetApi->addPet"));
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ pplx::task<void> PetApi::addPet(std::shared_ptr<Pet> pet)
|
||||
localVarRequestHttpContentType = utility::conversions::to_string_t("application/json");
|
||||
web::json::value localVarJson;
|
||||
|
||||
localVarJson = ModelBase::toJson(pet);
|
||||
localVarJson = ModelBase::toJson(body);
|
||||
|
||||
|
||||
localVarHttpBody = std::shared_ptr<IHttpBody>( new JsonBody( localVarJson ) );
|
||||
@@ -104,9 +104,9 @@ pplx::task<void> PetApi::addPet(std::shared_ptr<Pet> pet)
|
||||
localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data");
|
||||
std::shared_ptr<MultipartFormData> localVarMultipart(new MultipartFormData);
|
||||
|
||||
if(pet.get())
|
||||
if(body.get())
|
||||
{
|
||||
pet->toMultipart(localVarMultipart, utility::conversions::to_string_t("pet"));
|
||||
body->toMultipart(localVarMultipart, utility::conversions::to_string_t("body"));
|
||||
}
|
||||
|
||||
localVarHttpBody = localVarMultipart;
|
||||
@@ -655,13 +655,13 @@ pplx::task<std::shared_ptr<Pet>> PetApi::getPetById(int64_t petId)
|
||||
return localVarResult;
|
||||
});
|
||||
}
|
||||
pplx::task<void> PetApi::updatePet(std::shared_ptr<Pet> pet)
|
||||
pplx::task<void> PetApi::updatePet(std::shared_ptr<Pet> body)
|
||||
{
|
||||
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == nullptr)
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == nullptr)
|
||||
{
|
||||
throw ApiException(400, utility::conversions::to_string_t("Missing required parameter 'pet' when calling PetApi->updatePet"));
|
||||
throw ApiException(400, utility::conversions::to_string_t("Missing required parameter 'body' when calling PetApi->updatePet"));
|
||||
}
|
||||
|
||||
|
||||
@@ -713,7 +713,7 @@ pplx::task<void> PetApi::updatePet(std::shared_ptr<Pet> pet)
|
||||
localVarRequestHttpContentType = utility::conversions::to_string_t("application/json");
|
||||
web::json::value localVarJson;
|
||||
|
||||
localVarJson = ModelBase::toJson(pet);
|
||||
localVarJson = ModelBase::toJson(body);
|
||||
|
||||
|
||||
localVarHttpBody = std::shared_ptr<IHttpBody>( new JsonBody( localVarJson ) );
|
||||
@@ -724,9 +724,9 @@ pplx::task<void> PetApi::updatePet(std::shared_ptr<Pet> pet)
|
||||
localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data");
|
||||
std::shared_ptr<MultipartFormData> localVarMultipart(new MultipartFormData);
|
||||
|
||||
if(pet.get())
|
||||
if(body.get())
|
||||
{
|
||||
pet->toMultipart(localVarMultipart, utility::conversions::to_string_t("pet"));
|
||||
body->toMultipart(localVarMultipart, utility::conversions::to_string_t("body"));
|
||||
}
|
||||
|
||||
localVarHttpBody = localVarMultipart;
|
||||
|
||||
Reference in New Issue
Block a user