Skip to content

Commit ba03875

Browse files
committed
re-generate samples
1 parent cf5c668 commit ba03875

File tree

90 files changed

+126
-318
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+126
-318
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -2697,7 +2697,7 @@ public Org.OpenAPITools.Client.ApiResponse<Object> TestQueryParameterCollectionF
26972697
}
26982698
if (http != null)
26992699
{
2700-
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("space", "http", http));
2700+
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("ssv", "http", http));
27012701
}
27022702
if (url != null)
27032703
{
@@ -2795,7 +2795,7 @@ public async System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync
27952795
}
27962796
if (http != null)
27972797
{
2798-
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("space", "http", http));
2798+
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("ssv", "http", http));
27992799
}
28002800
if (url != null)
28012801
{

samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeApi.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2697,7 +2697,7 @@ public Org.OpenAPITools.Client.ApiResponse<Object> TestQueryParameterCollectionF
26972697
}
26982698
if (http != null)
26992699
{
2700-
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("space", "http", http));
2700+
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("ssv", "http", http));
27012701
}
27022702
if (url != null)
27032703
{
@@ -2795,7 +2795,7 @@ public async System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync
27952795
}
27962796
if (http != null)
27972797
{
2798-
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("space", "http", http));
2798+
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("ssv", "http", http));
27992799
}
28002800
if (url != null)
28012801
{

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -2949,7 +2949,7 @@ public ApiResponse<Object> TestQueryParameterCollectionFormatWithHttpInfo (List<
29492949

29502950
if (pipe != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("csv", "pipe", pipe)); // query parameter
29512951
if (ioutil != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("csv", "ioutil", ioutil)); // query parameter
2952-
if (http != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("space", "http", http)); // query parameter
2952+
if (http != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("ssv", "http", http)); // query parameter
29532953
if (url != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("csv", "url", url)); // query parameter
29542954
if (context != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "context", context)); // query parameter
29552955

@@ -3038,7 +3038,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Object>> TestQueryParameter
30383038

30393039
if (pipe != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("csv", "pipe", pipe)); // query parameter
30403040
if (ioutil != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("csv", "ioutil", ioutil)); // query parameter
3041-
if (http != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("space", "http", http)); // query parameter
3041+
if (http != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("ssv", "http", http)); // query parameter
30423042
if (url != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("csv", "url", url)); // query parameter
30433043
if (context != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "context", context)); // query parameter
30443044

samples/client/petstore/dart2/openapi/lib/api/pet_api.dart

+24-24
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ class PetApi {
2828

2929
List<String> contentTypes = ["application/json","application/xml"];
3030

31-
String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
31+
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
3232
List<String> authNames = ["petstore_auth"];
3333

34-
if(contentType.startsWith("multipart/form-data")) {
34+
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
3535
bool hasFields = false;
3636
MultipartRequest mp = MultipartRequest(null, null);
3737
if(hasFields)
@@ -46,7 +46,7 @@ class PetApi {
4646
postBody,
4747
headerParams,
4848
formParams,
49-
contentType,
49+
nullableContentType,
5050
authNames);
5151
return response;
5252
}
@@ -86,10 +86,10 @@ class PetApi {
8686

8787
List<String> contentTypes = [];
8888

89-
String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
89+
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
9090
List<String> authNames = ["petstore_auth"];
9191

92-
if(contentType.startsWith("multipart/form-data")) {
92+
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
9393
bool hasFields = false;
9494
MultipartRequest mp = MultipartRequest(null, null);
9595
if(hasFields)
@@ -104,7 +104,7 @@ class PetApi {
104104
postBody,
105105
headerParams,
106106
formParams,
107-
contentType,
107+
nullableContentType,
108108
authNames);
109109
return response;
110110
}
@@ -144,10 +144,10 @@ class PetApi {
144144

145145
List<String> contentTypes = [];
146146

147-
String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
147+
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
148148
List<String> authNames = ["petstore_auth"];
149149

150-
if(contentType.startsWith("multipart/form-data")) {
150+
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
151151
bool hasFields = false;
152152
MultipartRequest mp = MultipartRequest(null, null);
153153
if(hasFields)
@@ -162,7 +162,7 @@ class PetApi {
162162
postBody,
163163
headerParams,
164164
formParams,
165-
contentType,
165+
nullableContentType,
166166
authNames);
167167
return response;
168168
}
@@ -203,10 +203,10 @@ class PetApi {
203203

204204
List<String> contentTypes = [];
205205

206-
String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
206+
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
207207
List<String> authNames = ["petstore_auth"];
208208

209-
if(contentType.startsWith("multipart/form-data")) {
209+
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
210210
bool hasFields = false;
211211
MultipartRequest mp = MultipartRequest(null, null);
212212
if(hasFields)
@@ -221,7 +221,7 @@ class PetApi {
221221
postBody,
222222
headerParams,
223223
formParams,
224-
contentType,
224+
nullableContentType,
225225
authNames);
226226
return response;
227227
}
@@ -261,10 +261,10 @@ class PetApi {
261261

262262
List<String> contentTypes = [];
263263

264-
String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
264+
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
265265
List<String> authNames = ["api_key"];
266266

267-
if(contentType.startsWith("multipart/form-data")) {
267+
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
268268
bool hasFields = false;
269269
MultipartRequest mp = MultipartRequest(null, null);
270270
if(hasFields)
@@ -279,7 +279,7 @@ class PetApi {
279279
postBody,
280280
headerParams,
281281
formParams,
282-
contentType,
282+
nullableContentType,
283283
authNames);
284284
return response;
285285
}
@@ -319,10 +319,10 @@ class PetApi {
319319

320320
List<String> contentTypes = ["application/json","application/xml"];
321321

322-
String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
322+
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
323323
List<String> authNames = ["petstore_auth"];
324324

325-
if(contentType.startsWith("multipart/form-data")) {
325+
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
326326
bool hasFields = false;
327327
MultipartRequest mp = MultipartRequest(null, null);
328328
if(hasFields)
@@ -337,7 +337,7 @@ class PetApi {
337337
postBody,
338338
headerParams,
339339
formParams,
340-
contentType,
340+
nullableContentType,
341341
authNames);
342342
return response;
343343
}
@@ -376,10 +376,10 @@ class PetApi {
376376

377377
List<String> contentTypes = ["application/x-www-form-urlencoded"];
378378

379-
String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
379+
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
380380
List<String> authNames = ["petstore_auth"];
381381

382-
if(contentType.startsWith("multipart/form-data")) {
382+
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
383383
bool hasFields = false;
384384
MultipartRequest mp = MultipartRequest(null, null);
385385
if (name != null) {
@@ -406,7 +406,7 @@ class PetApi {
406406
postBody,
407407
headerParams,
408408
formParams,
409-
contentType,
409+
nullableContentType,
410410
authNames);
411411
return response;
412412
}
@@ -445,10 +445,10 @@ class PetApi {
445445

446446
List<String> contentTypes = ["multipart/form-data"];
447447

448-
String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
448+
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
449449
List<String> authNames = ["petstore_auth"];
450450

451-
if(contentType.startsWith("multipart/form-data")) {
451+
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
452452
bool hasFields = false;
453453
MultipartRequest mp = MultipartRequest(null, null);
454454
if (additionalMetadata != null) {
@@ -474,7 +474,7 @@ class PetApi {
474474
postBody,
475475
headerParams,
476476
formParams,
477-
contentType,
477+
nullableContentType,
478478
authNames);
479479
return response;
480480
}

samples/client/petstore/dart2/openapi/lib/api/store_api.dart

+12-12
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ class StoreApi {
2828

2929
List<String> contentTypes = [];
3030

31-
String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
31+
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
3232
List<String> authNames = [];
3333

34-
if(contentType.startsWith("multipart/form-data")) {
34+
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
3535
bool hasFields = false;
3636
MultipartRequest mp = MultipartRequest(null, null);
3737
if(hasFields)
@@ -46,7 +46,7 @@ class StoreApi {
4646
postBody,
4747
headerParams,
4848
formParams,
49-
contentType,
49+
nullableContentType,
5050
authNames);
5151
return response;
5252
}
@@ -82,10 +82,10 @@ class StoreApi {
8282

8383
List<String> contentTypes = [];
8484

85-
String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
85+
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
8686
List<String> authNames = ["api_key"];
8787

88-
if(contentType.startsWith("multipart/form-data")) {
88+
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
8989
bool hasFields = false;
9090
MultipartRequest mp = MultipartRequest(null, null);
9191
if(hasFields)
@@ -100,7 +100,7 @@ class StoreApi {
100100
postBody,
101101
headerParams,
102102
formParams,
103-
contentType,
103+
nullableContentType,
104104
authNames);
105105
return response;
106106
}
@@ -141,10 +141,10 @@ class StoreApi {
141141

142142
List<String> contentTypes = [];
143143

144-
String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
144+
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
145145
List<String> authNames = [];
146146

147-
if(contentType.startsWith("multipart/form-data")) {
147+
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
148148
bool hasFields = false;
149149
MultipartRequest mp = MultipartRequest(null, null);
150150
if(hasFields)
@@ -159,7 +159,7 @@ class StoreApi {
159159
postBody,
160160
headerParams,
161161
formParams,
162-
contentType,
162+
nullableContentType,
163163
authNames);
164164
return response;
165165
}
@@ -199,10 +199,10 @@ class StoreApi {
199199

200200
List<String> contentTypes = [];
201201

202-
String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
202+
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
203203
List<String> authNames = [];
204204

205-
if(contentType.startsWith("multipart/form-data")) {
205+
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
206206
bool hasFields = false;
207207
MultipartRequest mp = MultipartRequest(null, null);
208208
if(hasFields)
@@ -217,7 +217,7 @@ class StoreApi {
217217
postBody,
218218
headerParams,
219219
formParams,
220-
contentType,
220+
nullableContentType,
221221
authNames);
222222
return response;
223223
}

0 commit comments

Comments
 (0)