Skip to content

Commit c02c5b9

Browse files
committed
update csharp samples
1 parent 7286ec2 commit c02c5b9

File tree

6 files changed

+70
-70
lines changed

6 files changed

+70
-70
lines changed

samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClien
249249
}
250250

251251
return new ApiResponse<ModelClient>(localVarStatusCode,
252-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
252+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
253253
(ModelClient) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ModelClient)));
254254
}
255255

@@ -324,7 +324,7 @@ public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> Call123TestSp
324324
}
325325

326326
return new ApiResponse<ModelClient>(localVarStatusCode,
327-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
327+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
328328
(ModelClient) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ModelClient)));
329329
}
330330

samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ public void AddDefaultHeader(string key, string value)
815815
}
816816

817817
return new ApiResponse<bool?>(localVarStatusCode,
818-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
818+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
819819
(bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?)));
820820
}
821821

@@ -886,7 +886,7 @@ public void AddDefaultHeader(string key, string value)
886886
}
887887

888888
return new ApiResponse<bool?>(localVarStatusCode,
889-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
889+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
890890
(bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?)));
891891
}
892892

@@ -956,7 +956,7 @@ public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (Ou
956956
}
957957

958958
return new ApiResponse<OuterComposite>(localVarStatusCode,
959-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
959+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
960960
(OuterComposite) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(OuterComposite)));
961961
}
962962

@@ -1027,7 +1027,7 @@ public async System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterC
10271027
}
10281028

10291029
return new ApiResponse<OuterComposite>(localVarStatusCode,
1030-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
1030+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
10311031
(OuterComposite) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(OuterComposite)));
10321032
}
10331033

@@ -1097,7 +1097,7 @@ public async System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterC
10971097
}
10981098

10991099
return new ApiResponse<decimal?>(localVarStatusCode,
1100-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
1100+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
11011101
(decimal?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(decimal?)));
11021102
}
11031103

@@ -1168,7 +1168,7 @@ public async System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterC
11681168
}
11691169

11701170
return new ApiResponse<decimal?>(localVarStatusCode,
1171-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
1171+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
11721172
(decimal?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(decimal?)));
11731173
}
11741174

@@ -1238,7 +1238,7 @@ public ApiResponse< string > FakeOuterStringSerializeWithHttpInfo (string body =
12381238
}
12391239

12401240
return new ApiResponse<string>(localVarStatusCode,
1241-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
1241+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
12421242
(string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string)));
12431243
}
12441244

@@ -1309,7 +1309,7 @@ public async System.Threading.Tasks.Task<ApiResponse<string>> FakeOuterStringSer
13091309
}
13101310

13111311
return new ApiResponse<string>(localVarStatusCode,
1312-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
1312+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
13131313
(string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string)));
13141314
}
13151315

@@ -1381,7 +1381,7 @@ public ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestCla
13811381
}
13821382

13831383
return new ApiResponse<Object>(localVarStatusCode,
1384-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
1384+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
13851385
null);
13861386
}
13871387

@@ -1454,7 +1454,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithFileSc
14541454
}
14551455

14561456
return new ApiResponse<Object>(localVarStatusCode,
1457-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
1457+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
14581458
null);
14591459
}
14601460

@@ -1532,7 +1532,7 @@ public ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, Us
15321532
}
15331533

15341534
return new ApiResponse<Object>(localVarStatusCode,
1535-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
1535+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
15361536
null);
15371537
}
15381538

@@ -1611,7 +1611,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithQueryP
16111611
}
16121612

16131613
return new ApiResponse<Object>(localVarStatusCode,
1614-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
1614+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
16151615
null);
16161616
}
16171617

@@ -1685,7 +1685,7 @@ public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient body)
16851685
}
16861686

16871687
return new ApiResponse<ModelClient>(localVarStatusCode,
1688-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
1688+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
16891689
(ModelClient) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ModelClient)));
16901690
}
16911691

@@ -1760,7 +1760,7 @@ public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClientMod
17601760
}
17611761

17621762
return new ApiResponse<ModelClient>(localVarStatusCode,
1763-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
1763+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
17641764
(ModelClient) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ModelClient)));
17651765
}
17661766

@@ -1879,7 +1879,7 @@ public ApiResponse<Object> TestEndpointParametersWithHttpInfo (decimal? number,
18791879
}
18801880

18811881
return new ApiResponse<Object>(localVarStatusCode,
1882-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
1882+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
18831883
null);
18841884
}
18851885

@@ -1999,7 +1999,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParame
19991999
}
20002000

20012001
return new ApiResponse<Object>(localVarStatusCode,
2002-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
2002+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
20032003
null);
20042004
}
20052005

@@ -2082,7 +2082,7 @@ public ApiResponse<Object> TestEnumParametersWithHttpInfo (List<string> enumHead
20822082
}
20832083

20842084
return new ApiResponse<Object>(localVarStatusCode,
2085-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
2085+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
20862086
null);
20872087
}
20882088

@@ -2166,7 +2166,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEnumParameters
21662166
}
21672167

21682168
return new ApiResponse<Object>(localVarStatusCode,
2169-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
2169+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
21702170
null);
21712171
}
21722172

@@ -2251,7 +2251,7 @@ public ApiResponse<Object> TestGroupParametersWithHttpInfo (int? requiredStringG
22512251
}
22522252

22532253
return new ApiResponse<Object>(localVarStatusCode,
2254-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
2254+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
22552255
null);
22562256
}
22572257

@@ -2337,7 +2337,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Object>> TestGroupParameter
23372337
}
23382338

23392339
return new ApiResponse<Object>(localVarStatusCode,
2340-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
2340+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
23412341
null);
23422342
}
23432343

@@ -2409,7 +2409,7 @@ public ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionar
24092409
}
24102410

24112411
return new ApiResponse<Object>(localVarStatusCode,
2412-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
2412+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
24132413
null);
24142414
}
24152415

@@ -2482,7 +2482,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Object>> TestInlineAddition
24822482
}
24832483

24842484
return new ApiResponse<Object>(localVarStatusCode,
2485-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
2485+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
24862486
null);
24872487
}
24882488

@@ -2553,7 +2553,7 @@ public ApiResponse<Object> TestJsonFormDataWithHttpInfo (string param, string pa
25532553
}
25542554

25552555
return new ApiResponse<Object>(localVarStatusCode,
2556-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
2556+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
25572557
null);
25582558
}
25592559

@@ -2625,7 +2625,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Object>> TestJsonFormDataAs
26252625
}
26262626

26272627
return new ApiResponse<Object>(localVarStatusCode,
2628-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
2628+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
26292629
null);
26302630
}
26312631

samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient body)
254254
}
255255

256256
return new ApiResponse<ModelClient>(localVarStatusCode,
257-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
257+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
258258
(ModelClient) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ModelClient)));
259259
}
260260

@@ -334,7 +334,7 @@ public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClassname
334334
}
335335

336336
return new ApiResponse<ModelClient>(localVarStatusCode,
337-
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
337+
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
338338
(ModelClient) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ModelClient)));
339339
}
340340

0 commit comments

Comments
 (0)