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.
|
||||
*/
|
||||
@@ -386,13 +386,13 @@ pplx::task<std::shared_ptr<Order>> StoreApi::getOrderById(int64_t orderId)
|
||||
return localVarResult;
|
||||
});
|
||||
}
|
||||
pplx::task<std::shared_ptr<Order>> StoreApi::placeOrder(std::shared_ptr<Order> order)
|
||||
pplx::task<std::shared_ptr<Order>> StoreApi::placeOrder(std::shared_ptr<Order> body)
|
||||
{
|
||||
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == nullptr)
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == nullptr)
|
||||
{
|
||||
throw ApiException(400, utility::conversions::to_string_t("Missing required parameter 'order' when calling StoreApi->placeOrder"));
|
||||
throw ApiException(400, utility::conversions::to_string_t("Missing required parameter 'body' when calling StoreApi->placeOrder"));
|
||||
}
|
||||
|
||||
|
||||
@@ -444,7 +444,7 @@ pplx::task<std::shared_ptr<Order>> StoreApi::placeOrder(std::shared_ptr<Order> o
|
||||
localVarRequestHttpContentType = utility::conversions::to_string_t("application/json");
|
||||
web::json::value localVarJson;
|
||||
|
||||
localVarJson = ModelBase::toJson(order);
|
||||
localVarJson = ModelBase::toJson(body);
|
||||
|
||||
|
||||
localVarHttpBody = std::shared_ptr<IHttpBody>( new JsonBody( localVarJson ) );
|
||||
@@ -455,9 +455,9 @@ pplx::task<std::shared_ptr<Order>> StoreApi::placeOrder(std::shared_ptr<Order> o
|
||||
localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data");
|
||||
std::shared_ptr<MultipartFormData> localVarMultipart(new MultipartFormData);
|
||||
|
||||
if(order.get())
|
||||
if(body.get())
|
||||
{
|
||||
order->toMultipart(localVarMultipart, utility::conversions::to_string_t("order"));
|
||||
body->toMultipart(localVarMultipart, utility::conversions::to_string_t("body"));
|
||||
}
|
||||
|
||||
localVarHttpBody = localVarMultipart;
|
||||
|
||||
Reference in New Issue
Block a user