Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-generator into maciejcymanski132-master
  • Loading branch information
wing328 committed Jan 8, 2025
2 parents 3d65786 + 4e24cf5 commit 9a7f93a
Show file tree
Hide file tree
Showing 53 changed files with 282 additions and 282 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ namespace {{packageName}}.Client
{
foreach (var value in headerParam.Value)
{
request.AddHeader(headerParam.Key, value);
request.AddOrUpdateHeader(headerParam.Key, value);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ namespace {{packageName}}.{{apiPackage}}
{{/required}}
{{/formParams}}
{{#bodyParam}}
localVarRequestOptions.Data = {{paramName}};
localVarRequestOptions.Data = {{packageName}}.Client.ClientUtils.Serialize({{paramName}});
{{/bodyParam}}

localVarRequestOptions.Operation = "{{classname}}.{{operationId}}";
Expand Down Expand Up @@ -694,7 +694,7 @@ namespace {{packageName}}.{{apiPackage}}
{{/required}}
{{/formParams}}
{{#bodyParam}}
localVarRequestOptions.Data = {{paramName}};
localVarRequestOptions.Data = {{packageName}}.Client.ClientUtils.Serialize({{paramName}});
{{/bodyParam}}

localVarRequestOptions.Operation = "{{classname}}.{{operationId}}";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ public System.IO.Stream TestBinaryGif(int operationIndex = 0)
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = body;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(body);

localVarRequestOptions.Operation = "BodyApi.TestBodyApplicationOctetstreamBinary";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -873,7 +873,7 @@ public System.IO.Stream TestBinaryGif(int operationIndex = 0)
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = body;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(body);

localVarRequestOptions.Operation = "BodyApi.TestBodyApplicationOctetstreamBinary";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -1234,7 +1234,7 @@ public Org.OpenAPITools.Client.ApiResponse<string> TestBodyMultipartFormdataArra
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = pet;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(pet);

localVarRequestOptions.Operation = "BodyApi.TestEchoBodyAllOfPet";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -1302,7 +1302,7 @@ public Org.OpenAPITools.Client.ApiResponse<string> TestBodyMultipartFormdataArra
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = pet;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(pet);

localVarRequestOptions.Operation = "BodyApi.TestEchoBodyAllOfPet";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -1369,7 +1369,7 @@ public Org.OpenAPITools.Client.ApiResponse<string> TestBodyMultipartFormdataArra
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = body;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(body);

localVarRequestOptions.Operation = "BodyApi.TestEchoBodyFreeFormObjectResponseString";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -1437,7 +1437,7 @@ public Org.OpenAPITools.Client.ApiResponse<string> TestBodyMultipartFormdataArra
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = body;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(body);

localVarRequestOptions.Operation = "BodyApi.TestEchoBodyFreeFormObjectResponseString";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -1504,7 +1504,7 @@ public Org.OpenAPITools.Client.ApiResponse<string> TestBodyMultipartFormdataArra
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = pet;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(pet);

localVarRequestOptions.Operation = "BodyApi.TestEchoBodyPet";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -1572,7 +1572,7 @@ public Org.OpenAPITools.Client.ApiResponse<string> TestBodyMultipartFormdataArra
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = pet;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(pet);

localVarRequestOptions.Operation = "BodyApi.TestEchoBodyPet";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -1639,7 +1639,7 @@ public Org.OpenAPITools.Client.ApiResponse<string> TestBodyMultipartFormdataArra
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = pet;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(pet);

localVarRequestOptions.Operation = "BodyApi.TestEchoBodyPetResponseString";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -1707,7 +1707,7 @@ public Org.OpenAPITools.Client.ApiResponse<string> TestBodyMultipartFormdataArra
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = pet;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(pet);

localVarRequestOptions.Operation = "BodyApi.TestEchoBodyPetResponseString";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -1774,7 +1774,7 @@ public Org.OpenAPITools.Client.ApiResponse<string> TestBodyMultipartFormdataArra
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = body;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(body);

localVarRequestOptions.Operation = "BodyApi.TestEchoBodyStringEnum";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -1842,7 +1842,7 @@ public Org.OpenAPITools.Client.ApiResponse<string> TestBodyMultipartFormdataArra
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = body;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(body);

localVarRequestOptions.Operation = "BodyApi.TestEchoBodyStringEnum";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -1909,7 +1909,7 @@ public Org.OpenAPITools.Client.ApiResponse<string> TestBodyMultipartFormdataArra
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = tag;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(tag);

localVarRequestOptions.Operation = "BodyApi.TestEchoBodyTagResponseString";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -1977,7 +1977,7 @@ public Org.OpenAPITools.Client.ApiResponse<string> TestBodyMultipartFormdataArra
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = tag;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(tag);

localVarRequestOptions.Operation = "BodyApi.TestEchoBodyTagResponseString";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ private RestRequest NewRequest(
{
foreach (var value in headerParam.Value)
{
request.AddHeader(headerParam.Key, value);
request.AddOrUpdateHeader(headerParam.Key, value);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ private RestRequest NewRequest(
{
foreach (var value in headerParam.Value)
{
request.AddHeader(headerParam.Key, value);
request.AddOrUpdateHeader(headerParam.Key, value);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ public Org.OpenAPITools.Client.ApiResponse<Pet> AddPetWithHttpInfo(Pet pet, int
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = pet;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(pet);

localVarRequestOptions.Operation = "PetApi.AddPet";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -695,7 +695,7 @@ public Org.OpenAPITools.Client.ApiResponse<Pet> AddPetWithHttpInfo(Pet pet, int
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = pet;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(pet);

localVarRequestOptions.Operation = "PetApi.AddPet";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -1466,7 +1466,7 @@ public Org.OpenAPITools.Client.ApiResponse<Pet> UpdatePetWithHttpInfo(Pet pet, i
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = pet;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(pet);

localVarRequestOptions.Operation = "PetApi.UpdatePet";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -1558,7 +1558,7 @@ public Org.OpenAPITools.Client.ApiResponse<Pet> UpdatePetWithHttpInfo(Pet pet, i
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = pet;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(pet);

localVarRequestOptions.Operation = "PetApi.UpdatePet";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ public Org.OpenAPITools.Client.ApiResponse<Order> PlaceOrderWithHttpInfo(Order o
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = order;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(order);

localVarRequestOptions.Operation = "StoreApi.PlaceOrder";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -882,7 +882,7 @@ public Org.OpenAPITools.Client.ApiResponse<Order> PlaceOrderWithHttpInfo(Order o
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = order;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(order);

localVarRequestOptions.Operation = "StoreApi.PlaceOrder";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ public Org.OpenAPITools.Client.ApiResponse<Object> CreateUserWithHttpInfo(User u
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = user;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(user);

localVarRequestOptions.Operation = "UserApi.CreateUser";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -656,7 +656,7 @@ public Org.OpenAPITools.Client.ApiResponse<Object> CreateUserWithHttpInfo(User u
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = user;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(user);

localVarRequestOptions.Operation = "UserApi.CreateUser";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -732,7 +732,7 @@ public Org.OpenAPITools.Client.ApiResponse<Object> CreateUsersWithArrayInputWith
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = user;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(user);

localVarRequestOptions.Operation = "UserApi.CreateUsersWithArrayInput";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -809,7 +809,7 @@ public Org.OpenAPITools.Client.ApiResponse<Object> CreateUsersWithArrayInputWith
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = user;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(user);

localVarRequestOptions.Operation = "UserApi.CreateUsersWithArrayInput";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -885,7 +885,7 @@ public Org.OpenAPITools.Client.ApiResponse<Object> CreateUsersWithListInputWithH
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = user;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(user);

localVarRequestOptions.Operation = "UserApi.CreateUsersWithListInput";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -962,7 +962,7 @@ public Org.OpenAPITools.Client.ApiResponse<Object> CreateUsersWithListInputWithH
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = user;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(user);

localVarRequestOptions.Operation = "UserApi.CreateUsersWithListInput";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -1643,7 +1643,7 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdateUserWithHttpInfo(string
}

localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
localVarRequestOptions.Data = user;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(user);

localVarRequestOptions.Operation = "UserApi.UpdateUser";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -1729,7 +1729,7 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdateUserWithHttpInfo(string
}

localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
localVarRequestOptions.Data = user;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(user);

localVarRequestOptions.Operation = "UserApi.UpdateUser";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ private RestRequest NewRequest(
{
foreach (var value in headerParam.Value)
{
request.AddHeader(headerParam.Key, value);
request.AddOrUpdateHeader(headerParam.Key, value);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public Org.OpenAPITools.Client.ApiResponse<ModelClient> Call123TestSpecialTagsWi
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = modelClient;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(modelClient);

localVarRequestOptions.Operation = "AnotherFakeApi.Call123TestSpecialTags";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -330,7 +330,7 @@ public Org.OpenAPITools.Client.ApiResponse<ModelClient> Call123TestSpecialTagsWi
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}

localVarRequestOptions.Data = modelClient;
localVarRequestOptions.Data = Org.OpenAPITools.Client.ClientUtils.Serialize(modelClient);

localVarRequestOptions.Operation = "AnotherFakeApi.Call123TestSpecialTags";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down
Loading

0 comments on commit 9a7f93a

Please sign in to comment.