Skip to content

Commit 2a8289e

Browse files
authored
Merge pull request #11902 from swagger-api/swos-618
updated csharp samples with security dependency issue fixed
2 parents 462fd37 + 6aee1f4 commit 2a8289e

File tree

340 files changed

+20309
-624
lines changed

Some content is hidden

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

340 files changed

+20309
-624
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.25-SNAPSHOT
1+
3.0.36-SNAPSHOT

samples/client/petstore/csharp/SwaggerClient/README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -147,26 +147,24 @@ Class | Method | HTTP request | Description
147147
- [Model.AllOfSubCategoryPetsItems](docs/AllOfSubCategoryPetsItems.md)
148148
- [Model.AllPetsResponse](docs/AllPetsResponse.md)
149149
- [Model.Animal](docs/Animal.md)
150+
- [Model.AnimalAnimalIdBody](docs/AnimalAnimalIdBody.md)
150151
- [Model.AnimalFarm](docs/AnimalFarm.md)
151152
- [Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
152153
- [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
153154
- [Model.ArrayTest](docs/ArrayTest.md)
154-
- [Model.Body](docs/Body.md)
155-
- [Model.Body1](docs/Body1.md)
156-
- [Model.Body2](docs/Body2.md)
157-
- [Model.Body3](docs/Body3.md)
158-
- [Model.Body4](docs/Body4.md)
159-
- [Model.Body5](docs/Body5.md)
160-
- [Model.Body6](docs/Body6.md)
161-
- [Model.Body7](docs/Body7.md)
162155
- [Model.Capitalization](docs/Capitalization.md)
163156
- [Model.Cat](docs/Cat.md)
164157
- [Model.Category](docs/Category.md)
165158
- [Model.ClassModel](docs/ClassModel.md)
166159
- [Model.Dog](docs/Dog.md)
160+
- [Model.DogDogIdBody](docs/DogDogIdBody.md)
167161
- [Model.EnumArrays](docs/EnumArrays.md)
168162
- [Model.EnumClass](docs/EnumClass.md)
163+
- [Model.EnumFormBody](docs/EnumFormBody.md)
169164
- [Model.EnumTest](docs/EnumTest.md)
165+
- [Model.FakeBody](docs/FakeBody.md)
166+
- [Model.FakeBody1](docs/FakeBody1.md)
167+
- [Model.FakeJsonFormDataBody](docs/FakeJsonFormDataBody.md)
170168
- [Model.FormatTest](docs/FormatTest.md)
171169
- [Model.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
172170
- [Model.MapTest](docs/MapTest.md)
@@ -185,6 +183,8 @@ Class | Method | HTTP request | Description
185183
- [Model.OuterComposite](docs/OuterComposite.md)
186184
- [Model.OuterEnum](docs/OuterEnum.md)
187185
- [Model.Pet](docs/Pet.md)
186+
- [Model.PetIdUploadImageBody](docs/PetIdUploadImageBody.md)
187+
- [Model.PetPetIdBody](docs/PetPetIdBody.md)
188188
- [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
189189
- [Model.SinglePetResponse](docs/SinglePetResponse.md)
190190
- [Model.SpecialModelName](docs/SpecialModelName.md)
@@ -221,5 +221,6 @@ Class | Method | HTTP request | Description
221221
- **Flow**: implicit
222222
- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog
223223
- **Scopes**:
224-
- :
224+
- write:pets: modify pets in your account
225+
- read:pets: read your pets
225226

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# IO.Swagger.Model.AnimalAnimalIdBody
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**Name** | **string** | Updated name of the animal | [optional]
7+
**Status** | **string** | Updated status of the animal | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# IO.Swagger.Model.DogDogIdBody
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**Name** | **string** | Updated name of the dog | [optional]
7+
**Status** | **string** | Updated status of the dog | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# IO.Swagger.Model.EnumFormBody
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**EnumFormStringArray** | **List<string>** | Form parameter enum test (string array) | [optional]
7+
**EnumFormString** | **string** | Form parameter enum test (string) | [optional] [default to EnumFormStringEnum.Efg]
8+
**EnumQueryDouble** | **double?** | Query parameter enum test (double) | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+

samples/client/petstore/csharp/SwaggerClient/docs/FakeApi.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ No authorization required
313313
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
314314
<a name="testendpointparameters"></a>
315315
# **TestEndpointParameters**
316-
> void TestEndpointParameters (Body2 body)
316+
> void TestEndpointParameters (FakeBody body)
317317
318318
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
319319

@@ -338,7 +338,7 @@ namespace Example
338338
Configuration.Default.Password = "YOUR_PASSWORD";
339339

340340
var apiInstance = new FakeApi();
341-
var body = new Body2(); // Body2 |
341+
var body = new FakeBody(); // FakeBody |
342342
343343
try
344344
{
@@ -358,7 +358,7 @@ namespace Example
358358

359359
Name | Type | Description | Notes
360360
------------- | ------------- | ------------- | -------------
361-
**body** | [**Body2**](Body2.md)| |
361+
**body** | [**FakeBody**](FakeBody.md)| |
362362

363363
### Return type
364364

@@ -443,7 +443,7 @@ No authorization required
443443
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
444444
<a name="testenumrequestbody"></a>
445445
# **TestEnumRequestBody**
446-
> void TestEnumRequestBody (Body4 body = null)
446+
> void TestEnumRequestBody (EnumFormBody body = null)
447447
448448
To test enum parameters
449449

@@ -464,7 +464,7 @@ namespace Example
464464
public void main()
465465
{
466466
var apiInstance = new FakeApi();
467-
var body = new Body4(); // Body4 | (optional)
467+
var body = new EnumFormBody(); // EnumFormBody | (optional)
468468
469469
try
470470
{
@@ -484,7 +484,7 @@ namespace Example
484484

485485
Name | Type | Description | Notes
486486
------------- | ------------- | ------------- | -------------
487-
**body** | [**Body4**](Body4.md)| | [optional]
487+
**body** | [**EnumFormBody**](EnumFormBody.md)| | [optional]
488488

489489
### Return type
490490

@@ -559,7 +559,7 @@ No authorization required
559559
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
560560
<a name="testjsonformdata"></a>
561561
# **TestJsonFormData**
562-
> void TestJsonFormData (Body5 body)
562+
> void TestJsonFormData (FakeJsonFormDataBody body)
563563
564564
test json serialization of form data
565565

@@ -578,7 +578,7 @@ namespace Example
578578
public void main()
579579
{
580580
var apiInstance = new FakeApi();
581-
var body = new Body5(); // Body5 |
581+
var body = new FakeJsonFormDataBody(); // FakeJsonFormDataBody |
582582
583583
try
584584
{
@@ -598,7 +598,7 @@ namespace Example
598598

599599
Name | Type | Description | Notes
600600
------------- | ------------- | ------------- | -------------
601-
**body** | [**Body5**](Body5.md)| |
601+
**body** | [**FakeJsonFormDataBody**](FakeJsonFormDataBody.md)| |
602602

603603
### Return type
604604

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# IO.Swagger.Model.FakeBody
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**Integer** | **int?** | None | [optional]
7+
**Int32** | **int?** | None | [optional]
8+
**Int64** | **long?** | None | [optional]
9+
**Number** | [**decimal?**](BigDecimal.md) | None |
10+
**_Float** | **float?** | None | [optional]
11+
**_Double** | **double?** | None |
12+
**_String** | **string** | None | [optional]
13+
**PatternWithoutDelimiter** | **string** | None |
14+
**_Byte** | **byte[]** | None |
15+
**Binary** | **byte[]** | None | [optional]
16+
**Date** | **DateTime?** | None | [optional]
17+
**DateTime** | **DateTime?** | None | [optional]
18+
**Password** | **string** | None | [optional]
19+
**Callback** | **string** | None | [optional]
20+
21+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
22+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# IO.Swagger.Model.FakeBody1
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**Integer** | **int?** | None | [optional]
7+
**Int32** | **int?** | None | [optional]
8+
**Int64** | **long?** | None | [optional]
9+
**Number** | [**decimal?**](BigDecimal.md) | None |
10+
**_Float** | **float?** | None | [optional]
11+
**_Double** | **double?** | None |
12+
**_String** | **string** | None | [optional]
13+
**PatternWithoutDelimiter** | **string** | None |
14+
**_Byte** | **byte[]** | None |
15+
**Binary** | **byte[]** | None | [optional]
16+
**Date** | **DateTime?** | None | [optional]
17+
**DateTime** | **DateTime?** | None | [optional]
18+
**Password** | **string** | None | [optional]
19+
**Callback** | **string** | None | [optional]
20+
21+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
22+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# IO.Swagger.Model.FakeJsonFormDataBody
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**Param** | **string** | field1 |
7+
**Param2** | **string** | field2 |
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# IO.Swagger.Model.PetIdUploadImageBody
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**AdditionalMetadata** | **string** | Additional data to pass to server | [optional]
7+
**File** | **byte[]** | file to upload | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+

0 commit comments

Comments
 (0)