Skip to content

Commit 58f28ff

Browse files
author
Olivier Leonard
committed
Generate samples
1 parent 112639e commit 58f28ff

File tree

930 files changed

+19971
-11286
lines changed

Some content is hidden

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

930 files changed

+19971
-11286
lines changed

samples/client/echo_api/csharp-restsharp/.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ src/Org.OpenAPITools/Client/IReadableConfiguration.cs
4343
src/Org.OpenAPITools/Client/ISynchronousClient.cs
4444
src/Org.OpenAPITools/Client/Multimap.cs
4545
src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs
46+
src/Org.OpenAPITools/Client/Option.cs
4647
src/Org.OpenAPITools/Client/RequestOptions.cs
4748
src/Org.OpenAPITools/Client/RetryConfiguration.cs
4849
src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs

samples/client/echo_api/csharp-restsharp/docs/BodyApi.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ No authorization required
103103

104104
<a id="testbodyapplicationoctetstreambinary"></a>
105105
# **TestBodyApplicationOctetstreamBinary**
106-
> string TestBodyApplicationOctetstreamBinary (System.IO.Stream? body = null)
106+
> string TestBodyApplicationOctetstreamBinary (System.IO.Stream body = null)
107107
108108
Test body parameter(s)
109109

@@ -126,7 +126,7 @@ namespace Example
126126
Configuration config = new Configuration();
127127
config.BasePath = "http://localhost:3000";
128128
var apiInstance = new BodyApi(config);
129-
var body = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream? | (optional)
129+
var body = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | (optional)
130130
131131
try
132132
{
@@ -169,7 +169,7 @@ catch (ApiException e)
169169

170170
| Name | Type | Description | Notes |
171171
|------|------|-------------|-------|
172-
| **body** | **System.IO.Stream?****System.IO.Stream?** | | [optional] |
172+
| **body** | **System.IO.Stream****System.IO.Stream** | | [optional] |
173173

174174
### Return type
175175

@@ -285,7 +285,7 @@ No authorization required
285285

286286
<a id="testbodymultipartformdatasinglebinary"></a>
287287
# **TestBodyMultipartFormdataSingleBinary**
288-
> string TestBodyMultipartFormdataSingleBinary (System.IO.Stream? myFile = null)
288+
> string TestBodyMultipartFormdataSingleBinary (System.IO.Stream myFile = null)
289289
290290
Test single binary in multipart mime
291291

@@ -308,7 +308,7 @@ namespace Example
308308
Configuration config = new Configuration();
309309
config.BasePath = "http://localhost:3000";
310310
var apiInstance = new BodyApi(config);
311-
var myFile = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream? | (optional)
311+
var myFile = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | (optional)
312312
313313
try
314314
{
@@ -351,7 +351,7 @@ catch (ApiException e)
351351

352352
| Name | Type | Description | Notes |
353353
|------|------|-------------|-------|
354-
| **myFile** | **System.IO.Stream?****System.IO.Stream?** | | [optional] |
354+
| **myFile** | **System.IO.Stream****System.IO.Stream** | | [optional] |
355355

356356
### Return type
357357

@@ -376,7 +376,7 @@ No authorization required
376376

377377
<a id="testechobodyallofpet"></a>
378378
# **TestEchoBodyAllOfPet**
379-
> Pet TestEchoBodyAllOfPet (Pet? pet = null)
379+
> Pet TestEchoBodyAllOfPet (Pet pet = null)
380380
381381
Test body parameter(s)
382382

@@ -399,7 +399,7 @@ namespace Example
399399
Configuration config = new Configuration();
400400
config.BasePath = "http://localhost:3000";
401401
var apiInstance = new BodyApi(config);
402-
var pet = new Pet?(); // Pet? | Pet object that needs to be added to the store (optional)
402+
var pet = new Pet(); // Pet | Pet object that needs to be added to the store (optional)
403403
404404
try
405405
{
@@ -442,7 +442,7 @@ catch (ApiException e)
442442

443443
| Name | Type | Description | Notes |
444444
|------|------|-------------|-------|
445-
| **pet** | [**Pet?**](Pet?.md) | Pet object that needs to be added to the store | [optional] |
445+
| **pet** | [**Pet**](Pet.md) | Pet object that needs to be added to the store | [optional] |
446446

447447
### Return type
448448

@@ -467,7 +467,7 @@ No authorization required
467467

468468
<a id="testechobodyfreeformobjectresponsestring"></a>
469469
# **TestEchoBodyFreeFormObjectResponseString**
470-
> string TestEchoBodyFreeFormObjectResponseString (Object? body = null)
470+
> string TestEchoBodyFreeFormObjectResponseString (Object body = null)
471471
472472
Test free form object
473473

@@ -490,7 +490,7 @@ namespace Example
490490
Configuration config = new Configuration();
491491
config.BasePath = "http://localhost:3000";
492492
var apiInstance = new BodyApi(config);
493-
var body = null; // Object? | Free form object (optional)
493+
var body = null; // Object | Free form object (optional)
494494
495495
try
496496
{
@@ -533,7 +533,7 @@ catch (ApiException e)
533533

534534
| Name | Type | Description | Notes |
535535
|------|------|-------------|-------|
536-
| **body** | **Object?** | Free form object | [optional] |
536+
| **body** | **Object** | Free form object | [optional] |
537537

538538
### Return type
539539

@@ -558,7 +558,7 @@ No authorization required
558558

559559
<a id="testechobodypet"></a>
560560
# **TestEchoBodyPet**
561-
> Pet TestEchoBodyPet (Pet? pet = null)
561+
> Pet TestEchoBodyPet (Pet pet = null)
562562
563563
Test body parameter(s)
564564

@@ -581,7 +581,7 @@ namespace Example
581581
Configuration config = new Configuration();
582582
config.BasePath = "http://localhost:3000";
583583
var apiInstance = new BodyApi(config);
584-
var pet = new Pet?(); // Pet? | Pet object that needs to be added to the store (optional)
584+
var pet = new Pet(); // Pet | Pet object that needs to be added to the store (optional)
585585
586586
try
587587
{
@@ -624,7 +624,7 @@ catch (ApiException e)
624624

625625
| Name | Type | Description | Notes |
626626
|------|------|-------------|-------|
627-
| **pet** | [**Pet?**](Pet?.md) | Pet object that needs to be added to the store | [optional] |
627+
| **pet** | [**Pet**](Pet.md) | Pet object that needs to be added to the store | [optional] |
628628

629629
### Return type
630630

@@ -649,7 +649,7 @@ No authorization required
649649

650650
<a id="testechobodypetresponsestring"></a>
651651
# **TestEchoBodyPetResponseString**
652-
> string TestEchoBodyPetResponseString (Pet? pet = null)
652+
> string TestEchoBodyPetResponseString (Pet pet = null)
653653
654654
Test empty response body
655655

@@ -672,7 +672,7 @@ namespace Example
672672
Configuration config = new Configuration();
673673
config.BasePath = "http://localhost:3000";
674674
var apiInstance = new BodyApi(config);
675-
var pet = new Pet?(); // Pet? | Pet object that needs to be added to the store (optional)
675+
var pet = new Pet(); // Pet | Pet object that needs to be added to the store (optional)
676676
677677
try
678678
{
@@ -715,7 +715,7 @@ catch (ApiException e)
715715

716716
| Name | Type | Description | Notes |
717717
|------|------|-------------|-------|
718-
| **pet** | [**Pet?**](Pet?.md) | Pet object that needs to be added to the store | [optional] |
718+
| **pet** | [**Pet**](Pet.md) | Pet object that needs to be added to the store | [optional] |
719719

720720
### Return type
721721

@@ -740,7 +740,7 @@ No authorization required
740740

741741
<a id="testechobodystringenum"></a>
742742
# **TestEchoBodyStringEnum**
743-
> StringEnumRef TestEchoBodyStringEnum (string? body = null)
743+
> StringEnumRef TestEchoBodyStringEnum (string body = null)
744744
745745
Test string enum response body
746746

@@ -763,7 +763,7 @@ namespace Example
763763
Configuration config = new Configuration();
764764
config.BasePath = "http://localhost:3000";
765765
var apiInstance = new BodyApi(config);
766-
var body = null; // string? | String enum (optional)
766+
var body = null; // string | String enum (optional)
767767
768768
try
769769
{
@@ -806,7 +806,7 @@ catch (ApiException e)
806806

807807
| Name | Type | Description | Notes |
808808
|------|------|-------------|-------|
809-
| **body** | **string?** | String enum | [optional] |
809+
| **body** | **string** | String enum | [optional] |
810810

811811
### Return type
812812

@@ -831,7 +831,7 @@ No authorization required
831831

832832
<a id="testechobodytagresponsestring"></a>
833833
# **TestEchoBodyTagResponseString**
834-
> string TestEchoBodyTagResponseString (Tag? tag = null)
834+
> string TestEchoBodyTagResponseString (Tag tag = null)
835835
836836
Test empty json (request body)
837837

@@ -854,7 +854,7 @@ namespace Example
854854
Configuration config = new Configuration();
855855
config.BasePath = "http://localhost:3000";
856856
var apiInstance = new BodyApi(config);
857-
var tag = new Tag?(); // Tag? | Tag object (optional)
857+
var tag = new Tag(); // Tag | Tag object (optional)
858858
859859
try
860860
{
@@ -897,7 +897,7 @@ catch (ApiException e)
897897

898898
| Name | Type | Description | Notes |
899899
|------|------|-------------|-------|
900-
| **tag** | [**Tag?**](Tag?.md) | Tag object | [optional] |
900+
| **tag** | [**Tag**](Tag.md) | Tag object | [optional] |
901901

902902
### Return type
903903

samples/client/echo_api/csharp-restsharp/docs/DefaultValue.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Name | Type | Description | Notes
1010
**ArrayStringDefault** | **List&lt;string&gt;** | | [optional]
1111
**ArrayIntegerDefault** | **List&lt;int&gt;** | | [optional]
1212
**ArrayString** | **List&lt;string&gt;** | | [optional]
13-
**ArrayStringNullable** | **List&lt;string&gt;** | | [optional]
14-
**ArrayStringExtensionNullable** | **List&lt;string&gt;** | | [optional]
15-
**StringNullable** | **string** | | [optional]
13+
**ArrayStringNullable** | **List&lt;string&gt;?** | | [optional]
14+
**ArrayStringExtensionNullable** | **List&lt;string&gt;?** | | [optional]
15+
**StringNullable** | **string?** | | [optional]
1616

1717
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1818

samples/client/echo_api/csharp-restsharp/docs/FormApi.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ All URIs are relative to *http://localhost:3000*
1010

1111
<a id="testformintegerbooleanstring"></a>
1212
# **TestFormIntegerBooleanString**
13-
> string TestFormIntegerBooleanString (int? integerForm = null, bool? booleanForm = null, string? stringForm = null)
13+
> string TestFormIntegerBooleanString (int integerForm = null, bool booleanForm = null, string stringForm = null)
1414
1515
Test form parameter(s)
1616

@@ -33,9 +33,9 @@ namespace Example
3333
Configuration config = new Configuration();
3434
config.BasePath = "http://localhost:3000";
3535
var apiInstance = new FormApi(config);
36-
var integerForm = 56; // int? | (optional)
37-
var booleanForm = true; // bool? | (optional)
38-
var stringForm = "stringForm_example"; // string? | (optional)
36+
var integerForm = 56; // int | (optional)
37+
var booleanForm = true; // bool | (optional)
38+
var stringForm = "stringForm_example"; // string | (optional)
3939
4040
try
4141
{
@@ -78,9 +78,9 @@ catch (ApiException e)
7878

7979
| Name | Type | Description | Notes |
8080
|------|------|-------------|-------|
81-
| **integerForm** | **int?** | | [optional] |
82-
| **booleanForm** | **bool?** | | [optional] |
83-
| **stringForm** | **string?** | | [optional] |
81+
| **integerForm** | **int** | | [optional] |
82+
| **booleanForm** | **bool** | | [optional] |
83+
| **stringForm** | **string** | | [optional] |
8484

8585
### Return type
8686

@@ -196,7 +196,7 @@ No authorization required
196196

197197
<a id="testformoneof"></a>
198198
# **TestFormOneof**
199-
> string TestFormOneof (string? form1 = null, int? form2 = null, string? form3 = null, bool? form4 = null, long? id = null, string? name = null)
199+
> string TestFormOneof (string form1 = null, int form2 = null, string form3 = null, bool form4 = null, long id = null, string name = null)
200200
201201
Test form parameter(s) for oneOf schema
202202

@@ -219,12 +219,12 @@ namespace Example
219219
Configuration config = new Configuration();
220220
config.BasePath = "http://localhost:3000";
221221
var apiInstance = new FormApi(config);
222-
var form1 = "form1_example"; // string? | (optional)
223-
var form2 = 56; // int? | (optional)
224-
var form3 = "form3_example"; // string? | (optional)
225-
var form4 = true; // bool? | (optional)
226-
var id = 789L; // long? | (optional)
227-
var name = "name_example"; // string? | (optional)
222+
var form1 = "form1_example"; // string | (optional)
223+
var form2 = 56; // int | (optional)
224+
var form3 = "form3_example"; // string | (optional)
225+
var form4 = true; // bool | (optional)
226+
var id = 789L; // long | (optional)
227+
var name = "name_example"; // string | (optional)
228228
229229
try
230230
{
@@ -267,12 +267,12 @@ catch (ApiException e)
267267

268268
| Name | Type | Description | Notes |
269269
|------|------|-------------|-------|
270-
| **form1** | **string?** | | [optional] |
271-
| **form2** | **int?** | | [optional] |
272-
| **form3** | **string?** | | [optional] |
273-
| **form4** | **bool?** | | [optional] |
274-
| **id** | **long?** | | [optional] |
275-
| **name** | **string?** | | [optional] |
270+
| **form1** | **string** | | [optional] |
271+
| **form2** | **int** | | [optional] |
272+
| **form3** | **string** | | [optional] |
273+
| **form4** | **bool** | | [optional] |
274+
| **id** | **long** | | [optional] |
275+
| **name** | **string** | | [optional] |
276276

277277
### Return type
278278

samples/client/echo_api/csharp-restsharp/docs/HeaderApi.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ All URIs are relative to *http://localhost:3000*
88

99
<a id="testheaderintegerbooleanstringenums"></a>
1010
# **TestHeaderIntegerBooleanStringEnums**
11-
> string TestHeaderIntegerBooleanStringEnums (int? integerHeader = null, bool? booleanHeader = null, string? stringHeader = null, string? enumNonrefStringHeader = null, StringEnumRef? enumRefStringHeader = null)
11+
> string TestHeaderIntegerBooleanStringEnums (int integerHeader = null, bool booleanHeader = null, string stringHeader = null, string enumNonrefStringHeader = null, StringEnumRef enumRefStringHeader = null)
1212
1313
Test header parameter(s)
1414

@@ -31,11 +31,11 @@ namespace Example
3131
Configuration config = new Configuration();
3232
config.BasePath = "http://localhost:3000";
3333
var apiInstance = new HeaderApi(config);
34-
var integerHeader = 56; // int? | (optional)
35-
var booleanHeader = true; // bool? | (optional)
36-
var stringHeader = "stringHeader_example"; // string? | (optional)
37-
var enumNonrefStringHeader = "success"; // string? | (optional)
38-
var enumRefStringHeader = new StringEnumRef?(); // StringEnumRef? | (optional)
34+
var integerHeader = 56; // int | (optional)
35+
var booleanHeader = true; // bool | (optional)
36+
var stringHeader = "stringHeader_example"; // string | (optional)
37+
var enumNonrefStringHeader = "success"; // string | (optional)
38+
var enumRefStringHeader = (StringEnumRef) "success"; // StringEnumRef | (optional)
3939
4040
try
4141
{
@@ -78,11 +78,11 @@ catch (ApiException e)
7878

7979
| Name | Type | Description | Notes |
8080
|------|------|-------------|-------|
81-
| **integerHeader** | **int?** | | [optional] |
82-
| **booleanHeader** | **bool?** | | [optional] |
83-
| **stringHeader** | **string?** | | [optional] |
84-
| **enumNonrefStringHeader** | **string?** | | [optional] |
85-
| **enumRefStringHeader** | [**StringEnumRef?**](StringEnumRef?.md) | | [optional] |
81+
| **integerHeader** | **int** | | [optional] |
82+
| **booleanHeader** | **bool** | | [optional] |
83+
| **stringHeader** | **string** | | [optional] |
84+
| **enumNonrefStringHeader** | **string** | | [optional] |
85+
| **enumRefStringHeader** | **StringEnumRef** | | [optional] |
8686

8787
### Return type
8888

0 commit comments

Comments
 (0)