diff --git a/.github/workflows/samples-dotnet-petstore-net10.yml b/.github/workflows/samples-dotnet-petstore-net10.yml
new file mode 100644
index 000000000000..2ffa89f29c08
--- /dev/null
+++ b/.github/workflows/samples-dotnet-petstore-net10.yml
@@ -0,0 +1,37 @@
+name: Samples C# .Net 10 Client (Petstore)
+
+on:
+ push:
+ paths:
+ - samples/client/petstore/csharp/restsharp/net10/Petstore/**
+ pull_request:
+ paths:
+ - samples/client/petstore/csharp/restsharp/net10/Petstore/**
+jobs:
+ build:
+ name: Build clients
+ runs-on: ubuntu-latest
+ services:
+ petstore-api:
+ image: swaggerapi/petstore
+ ports:
+ - 80:8080
+ env:
+ SWAGGER_HOST: http://petstore.swagger.io
+ SWAGGER_BASE_PATH: /v2
+ strategy:
+ fail-fast: false
+ matrix:
+ sample:
+ - samples/client/petstore/csharp/restsharp/net10/Petstore/
+ steps:
+ - uses: actions/checkout@v5
+ - uses: actions/setup-dotnet@v5.2.0
+ with:
+ dotnet-version: '10.0.x'
+ - name: Build
+ working-directory: ${{ matrix.sample }}
+ run: dotnet build Org.OpenAPITools.sln
+ - name: Test
+ working-directory: ${{ matrix.sample }}
+ run: dotnet test Org.OpenAPITools.sln
diff --git a/bin/configs/csharp-restsharp-net10-enumNameMappings.yaml b/bin/configs/csharp-restsharp-net10-enumNameMappings.yaml
new file mode 100644
index 000000000000..9be5f635f68c
--- /dev/null
+++ b/bin/configs/csharp-restsharp-net10-enumNameMappings.yaml
@@ -0,0 +1,15 @@
+# for .net standard
+generatorName: csharp
+library: restsharp
+outputDir: samples/client/petstore/csharp/restsharp/net10/EnumMappings
+inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
+templateDir: modules/openapi-generator/src/main/resources/csharp
+additionalProperties:
+ packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
+ useCompareNetObjects: true
+ disallowAdditionalPropertiesIfNotPresent: false
+ useOneOfDiscriminatorLookup: true
+ targetFramework: net10.0
+ equatable: true
+enumNameMappings:
+ delivered: Shipped
diff --git a/bin/configs/csharp-restsharp-net10.yaml b/bin/configs/csharp-restsharp-net10.yaml
index 200b298088b7..a044b938546d 100644
--- a/bin/configs/csharp-restsharp-net10.yaml
+++ b/bin/configs/csharp-restsharp-net10.yaml
@@ -1,8 +1,8 @@
# for .net standard
generatorName: csharp
library: restsharp
-outputDir: samples/client/petstore/csharp/restsharp/net10/EnumMappings
-inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature-oneof-primitive-types.yaml
+outputDir: samples/client/petstore/csharp/restsharp/net10/Petstore
+inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature-oneof-primitive-types-localhost.yaml
templateDir: modules/openapi-generator/src/main/resources/csharp
additionalProperties:
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
@@ -11,5 +11,3 @@ additionalProperties:
useOneOfDiscriminatorLookup: true
targetFramework: net10.0
equatable: true
-enumNameMappings:
- delivered: Shipped
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/.openapi-generator/FILES b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/.openapi-generator/FILES
index c6424794961a..f05700009ef9 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/.openapi-generator/FILES
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/.openapi-generator/FILES
@@ -3,114 +3,17 @@ Org.OpenAPITools.sln
README.md
api/openapi.yaml
appveyor.yml
-docs/Activity.md
-docs/ActivityOutputElementRepresentation.md
-docs/AdditionalPropertiesClass.md
-docs/Animal.md
-docs/AnotherFakeApi.md
docs/ApiResponse.md
-docs/Apple.md
-docs/AppleReq.md
-docs/ArrayOfArrayOfNumberOnly.md
-docs/ArrayOfNumberOnly.md
-docs/ArrayTest.md
-docs/Banana.md
-docs/BananaReq.md
-docs/BasquePig.md
-docs/Capitalization.md
-docs/Cat.md
docs/Category.md
-docs/ChildCat.md
-docs/ClassModel.md
-docs/ComplexQuadrilateral.md
-docs/DanishPig.md
-docs/DateOnlyClass.md
-docs/DefaultApi.md
-docs/DeprecatedObject.md
-docs/Dog.md
-docs/Drawing.md
-docs/EnumArrays.md
-docs/EnumClass.md
-docs/EnumTest.md
-docs/EquilateralTriangle.md
-docs/FakeApi.md
-docs/FakeClassnameTags123Api.md
-docs/File.md
-docs/FileSchemaTestClass.md
-docs/Foo.md
-docs/FooGetDefaultResponse.md
-docs/FormatTest.md
-docs/Fruit.md
-docs/FruitReq.md
-docs/GmFruit.md
-docs/GrandparentAnimal.md
-docs/HasOnlyReadOnly.md
-docs/HealthCheckResult.md
-docs/IsoscelesTriangle.md
-docs/List.md
-docs/LiteralStringClass.md
-docs/Mammal.md
-docs/MapTest.md
-docs/MixedAnyOf.md
-docs/MixedAnyOfContent.md
-docs/MixedOneOf.md
-docs/MixedOneOfContent.md
-docs/MixedPropertiesAndAdditionalPropertiesClass.md
-docs/MixedSubId.md
-docs/Model200Response.md
-docs/ModelClient.md
-docs/Name.md
-docs/NotificationtestGetElementsV1ResponseMPayload.md
-docs/NullableClass.md
-docs/NullableGuidClass.md
-docs/NullableShape.md
-docs/NumberOnly.md
-docs/ObjectWithDeprecatedFields.md
-docs/OneOfString.md
docs/Order.md
-docs/OuterComposite.md
-docs/OuterEnum.md
-docs/OuterEnumDefaultValue.md
-docs/OuterEnumInteger.md
-docs/OuterEnumIntegerDefaultValue.md
-docs/OuterEnumTest.md
-docs/ParentPet.md
docs/Pet.md
docs/PetApi.md
-docs/Pig.md
-docs/PolymorphicProperty.md
-docs/Quadrilateral.md
-docs/QuadrilateralInterface.md
-docs/ReadOnlyFirst.md
-docs/RequiredClass.md
-docs/Return.md
-docs/RolesReportsHash.md
-docs/RolesReportsHashRole.md
-docs/ScaleneTriangle.md
-docs/Shape.md
-docs/ShapeInterface.md
-docs/ShapeOrNull.md
-docs/SimpleQuadrilateral.md
-docs/SpecialModelName.md
docs/StoreApi.md
docs/Tag.md
-docs/TestCollectionEndingWithWordList.md
-docs/TestCollectionEndingWithWordListObject.md
-docs/TestInlineFreeformAdditionalPropertiesRequest.md
-docs/Triangle.md
-docs/TriangleInterface.md
docs/User.md
docs/UserApi.md
-docs/Whale.md
-docs/Zebra.md
-docs/ZeroBasedEnum.md
-docs/ZeroBasedEnumClass.md
git_push.sh
src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj
-src/Org.OpenAPITools/Api/AnotherFakeApi.cs
-src/Org.OpenAPITools/Api/DefaultApi.cs
-src/Org.OpenAPITools/Api/FakeApi.cs
-src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs
src/Org.OpenAPITools/Api/PetApi.cs
src/Org.OpenAPITools/Api/StoreApi.cs
src/Org.OpenAPITools/Api/UserApi.cs
@@ -125,7 +28,6 @@ src/Org.OpenAPITools/Client/Configuration.cs
src/Org.OpenAPITools/Client/ExceptionFactory.cs
src/Org.OpenAPITools/Client/GlobalConfiguration.cs
src/Org.OpenAPITools/Client/HttpMethod.cs
-src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
src/Org.OpenAPITools/Client/IApiAccessor.cs
src/Org.OpenAPITools/Client/IAsynchronousClient.cs
src/Org.OpenAPITools/Client/IReadableConfiguration.cs
@@ -135,99 +37,10 @@ src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs
src/Org.OpenAPITools/Client/RequestOptions.cs
src/Org.OpenAPITools/Client/RetryConfiguration.cs
src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs
-src/Org.OpenAPITools/Model/Activity.cs
-src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
-src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
-src/Org.OpenAPITools/Model/Animal.cs
src/Org.OpenAPITools/Model/ApiResponse.cs
-src/Org.OpenAPITools/Model/Apple.cs
-src/Org.OpenAPITools/Model/AppleReq.cs
-src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs
-src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs
-src/Org.OpenAPITools/Model/ArrayTest.cs
-src/Org.OpenAPITools/Model/Banana.cs
-src/Org.OpenAPITools/Model/BananaReq.cs
-src/Org.OpenAPITools/Model/BasquePig.cs
-src/Org.OpenAPITools/Model/Capitalization.cs
-src/Org.OpenAPITools/Model/Cat.cs
src/Org.OpenAPITools/Model/Category.cs
-src/Org.OpenAPITools/Model/ChildCat.cs
-src/Org.OpenAPITools/Model/ClassModel.cs
-src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
-src/Org.OpenAPITools/Model/DanishPig.cs
-src/Org.OpenAPITools/Model/DateOnlyClass.cs
-src/Org.OpenAPITools/Model/DeprecatedObject.cs
-src/Org.OpenAPITools/Model/Dog.cs
-src/Org.OpenAPITools/Model/Drawing.cs
-src/Org.OpenAPITools/Model/EnumArrays.cs
-src/Org.OpenAPITools/Model/EnumClass.cs
-src/Org.OpenAPITools/Model/EnumTest.cs
-src/Org.OpenAPITools/Model/EquilateralTriangle.cs
-src/Org.OpenAPITools/Model/File.cs
-src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
-src/Org.OpenAPITools/Model/Foo.cs
-src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs
-src/Org.OpenAPITools/Model/FormatTest.cs
-src/Org.OpenAPITools/Model/Fruit.cs
-src/Org.OpenAPITools/Model/FruitReq.cs
-src/Org.OpenAPITools/Model/GmFruit.cs
-src/Org.OpenAPITools/Model/GrandparentAnimal.cs
-src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
-src/Org.OpenAPITools/Model/HealthCheckResult.cs
-src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
-src/Org.OpenAPITools/Model/List.cs
-src/Org.OpenAPITools/Model/LiteralStringClass.cs
-src/Org.OpenAPITools/Model/Mammal.cs
-src/Org.OpenAPITools/Model/MapTest.cs
-src/Org.OpenAPITools/Model/MixedAnyOf.cs
-src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
-src/Org.OpenAPITools/Model/MixedOneOf.cs
-src/Org.OpenAPITools/Model/MixedOneOfContent.cs
-src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
-src/Org.OpenAPITools/Model/MixedSubId.cs
-src/Org.OpenAPITools/Model/Model200Response.cs
-src/Org.OpenAPITools/Model/ModelClient.cs
-src/Org.OpenAPITools/Model/Name.cs
-src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
-src/Org.OpenAPITools/Model/NullableClass.cs
-src/Org.OpenAPITools/Model/NullableGuidClass.cs
-src/Org.OpenAPITools/Model/NullableShape.cs
-src/Org.OpenAPITools/Model/NumberOnly.cs
-src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
-src/Org.OpenAPITools/Model/OneOfString.cs
src/Org.OpenAPITools/Model/Order.cs
-src/Org.OpenAPITools/Model/OuterComposite.cs
-src/Org.OpenAPITools/Model/OuterEnum.cs
-src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs
-src/Org.OpenAPITools/Model/OuterEnumInteger.cs
-src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs
-src/Org.OpenAPITools/Model/OuterEnumTest.cs
-src/Org.OpenAPITools/Model/ParentPet.cs
src/Org.OpenAPITools/Model/Pet.cs
-src/Org.OpenAPITools/Model/Pig.cs
-src/Org.OpenAPITools/Model/PolymorphicProperty.cs
-src/Org.OpenAPITools/Model/Quadrilateral.cs
-src/Org.OpenAPITools/Model/QuadrilateralInterface.cs
-src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
-src/Org.OpenAPITools/Model/RequiredClass.cs
-src/Org.OpenAPITools/Model/Return.cs
-src/Org.OpenAPITools/Model/RolesReportsHash.cs
-src/Org.OpenAPITools/Model/RolesReportsHashRole.cs
-src/Org.OpenAPITools/Model/ScaleneTriangle.cs
-src/Org.OpenAPITools/Model/Shape.cs
-src/Org.OpenAPITools/Model/ShapeInterface.cs
-src/Org.OpenAPITools/Model/ShapeOrNull.cs
-src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
-src/Org.OpenAPITools/Model/SpecialModelName.cs
src/Org.OpenAPITools/Model/Tag.cs
-src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
-src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs
-src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs
-src/Org.OpenAPITools/Model/Triangle.cs
-src/Org.OpenAPITools/Model/TriangleInterface.cs
src/Org.OpenAPITools/Model/User.cs
-src/Org.OpenAPITools/Model/Whale.cs
-src/Org.OpenAPITools/Model/Zebra.cs
-src/Org.OpenAPITools/Model/ZeroBasedEnum.cs
-src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs
src/Org.OpenAPITools/Org.OpenAPITools.csproj
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/README.md b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/README.md
index 76b00ca47bc2..db31d76cd4f5 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/README.md
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/README.md
@@ -1,6 +1,6 @@
# Org.OpenAPITools - the C# library for the OpenAPI Petstore
-This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
@@ -87,19 +87,22 @@ namespace Example
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
- var apiInstance = new AnotherFakeApi(config);
- var modelClient = new ModelClient(); // ModelClient | client model
+ config.BasePath = "http://petstore.swagger.io/v2";
+ // Configure OAuth2 access token for authorization: petstore_auth
+ config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var apiInstance = new PetApi(config);
+ var pet = new Pet(); // Pet | Pet object that needs to be added to the store
try
{
- // To test special tags
- ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
+ // Add a new pet to the store
+ Pet result = apiInstance.AddPet(pet);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling AnotherFakeApi.Call123TestSpecialTags: " + e.Message );
+ Debug.Print("Exception when calling PetApi.AddPet: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -112,37 +115,10 @@ namespace Example
## Documentation for API Endpoints
-All URIs are relative to *http://petstore.swagger.io:80/v2*
+All URIs are relative to *http://petstore.swagger.io/v2*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
-*AnotherFakeApi* | [**Call123TestSpecialTags**](docs/AnotherFakeApi.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
-*DefaultApi* | [**FooGet**](docs/DefaultApi.md#fooget) | **GET** /foo |
-*DefaultApi* | [**GetCountry**](docs/DefaultApi.md#getcountry) | **POST** /country |
-*DefaultApi* | [**Hello**](docs/DefaultApi.md#hello) | **GET** /hello | Hello
-*DefaultApi* | [**RolesReportGet**](docs/DefaultApi.md#rolesreportget) | **GET** /roles/report |
-*DefaultApi* | [**Test**](docs/DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements
-*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
-*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
-*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
-*FakeApi* | [**FakeOuterNumberSerialize**](docs/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
-*FakeApi* | [**FakeOuterStringSerialize**](docs/FakeApi.md#fakeouterstringserialize) | **POST** /fake/outer/string |
-*FakeApi* | [**GetArrayOfEnums**](docs/FakeApi.md#getarrayofenums) | **GET** /fake/array-of-enums | Array of Enums
-*FakeApi* | [**GetMixedAnyOf**](docs/FakeApi.md#getmixedanyof) | **GET** /fake/mixed/anyOf | Test mixed type anyOf deserialization
-*FakeApi* | [**GetMixedOneOf**](docs/FakeApi.md#getmixedoneof) | **GET** /fake/mixed/oneOf | Test mixed type oneOf deserialization
-*FakeApi* | [**TestAdditionalPropertiesReference**](docs/FakeApi.md#testadditionalpropertiesreference) | **POST** /fake/additionalProperties-reference | test referenced additionalProperties
-*FakeApi* | [**TestBodyWithFileSchema**](docs/FakeApi.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
-*FakeApi* | [**TestBodyWithQueryParams**](docs/FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
-*FakeApi* | [**TestClientModel**](docs/FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
-*FakeApi* | [**TestEndpointParameters**](docs/FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-*FakeApi* | [**TestEnumParameters**](docs/FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
-*FakeApi* | [**TestGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
-*FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
-*FakeApi* | [**TestInlineFreeformAdditionalProperties**](docs/FakeApi.md#testinlinefreeformadditionalproperties) | **POST** /fake/inline-freeform-additionalProperties | test inline free-form additionalProperties
-*FakeApi* | [**TestJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data
-*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters |
-*FakeApi* | [**TestStringMapReference**](docs/FakeApi.md#teststringmapreference) | **POST** /fake/stringMap-reference | test referenced string map
-*FakeClassnameTags123Api* | [**TestClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case
*PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
*PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
*PetApi* | [**FindPetsByStatus**](docs/PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
@@ -151,10 +127,9 @@ Class | Method | HTTP request | Description
*PetApi* | [**UpdatePet**](docs/PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
*PetApi* | [**UpdatePetWithForm**](docs/PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
*PetApi* | [**UploadFile**](docs/PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
-*PetApi* | [**UploadFileWithRequiredFile**](docs/PetApi.md#uploadfilewithrequiredfile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
-*StoreApi* | [**DeleteOrder**](docs/StoreApi.md#deleteorder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
+*StoreApi* | [**DeleteOrder**](docs/StoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
*StoreApi* | [**GetInventory**](docs/StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
-*StoreApi* | [**GetOrderById**](docs/StoreApi.md#getorderbyid) | **GET** /store/order/{order_id} | Find purchase order by ID
+*StoreApi* | [**GetOrderById**](docs/StoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID
*StoreApi* | [**PlaceOrder**](docs/StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
*UserApi* | [**CreateUser**](docs/UserApi.md#createuser) | **POST** /user | Create user
*UserApi* | [**CreateUsersWithArrayInput**](docs/UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
@@ -169,101 +144,12 @@ Class | Method | HTTP request | Description
## Documentation for Models
- - [Model.Activity](docs/Activity.md)
- - [Model.ActivityOutputElementRepresentation](docs/ActivityOutputElementRepresentation.md)
- - [Model.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
- - [Model.Animal](docs/Animal.md)
- [Model.ApiResponse](docs/ApiResponse.md)
- - [Model.Apple](docs/Apple.md)
- - [Model.AppleReq](docs/AppleReq.md)
- - [Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
- - [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
- - [Model.ArrayTest](docs/ArrayTest.md)
- - [Model.Banana](docs/Banana.md)
- - [Model.BananaReq](docs/BananaReq.md)
- - [Model.BasquePig](docs/BasquePig.md)
- - [Model.Capitalization](docs/Capitalization.md)
- - [Model.Cat](docs/Cat.md)
- [Model.Category](docs/Category.md)
- - [Model.ChildCat](docs/ChildCat.md)
- - [Model.ClassModel](docs/ClassModel.md)
- - [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
- - [Model.DanishPig](docs/DanishPig.md)
- - [Model.DateOnlyClass](docs/DateOnlyClass.md)
- - [Model.DeprecatedObject](docs/DeprecatedObject.md)
- - [Model.Dog](docs/Dog.md)
- - [Model.Drawing](docs/Drawing.md)
- - [Model.EnumArrays](docs/EnumArrays.md)
- - [Model.EnumClass](docs/EnumClass.md)
- - [Model.EnumTest](docs/EnumTest.md)
- - [Model.EquilateralTriangle](docs/EquilateralTriangle.md)
- - [Model.File](docs/File.md)
- - [Model.FileSchemaTestClass](docs/FileSchemaTestClass.md)
- - [Model.Foo](docs/Foo.md)
- - [Model.FooGetDefaultResponse](docs/FooGetDefaultResponse.md)
- - [Model.FormatTest](docs/FormatTest.md)
- - [Model.Fruit](docs/Fruit.md)
- - [Model.FruitReq](docs/FruitReq.md)
- - [Model.GmFruit](docs/GmFruit.md)
- - [Model.GrandparentAnimal](docs/GrandparentAnimal.md)
- - [Model.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
- - [Model.HealthCheckResult](docs/HealthCheckResult.md)
- - [Model.IsoscelesTriangle](docs/IsoscelesTriangle.md)
- - [Model.List](docs/List.md)
- - [Model.LiteralStringClass](docs/LiteralStringClass.md)
- - [Model.Mammal](docs/Mammal.md)
- - [Model.MapTest](docs/MapTest.md)
- - [Model.MixedAnyOf](docs/MixedAnyOf.md)
- - [Model.MixedAnyOfContent](docs/MixedAnyOfContent.md)
- - [Model.MixedOneOf](docs/MixedOneOf.md)
- - [Model.MixedOneOfContent](docs/MixedOneOfContent.md)
- - [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
- - [Model.MixedSubId](docs/MixedSubId.md)
- - [Model.Model200Response](docs/Model200Response.md)
- - [Model.ModelClient](docs/ModelClient.md)
- - [Model.Name](docs/Name.md)
- - [Model.NotificationtestGetElementsV1ResponseMPayload](docs/NotificationtestGetElementsV1ResponseMPayload.md)
- - [Model.NullableClass](docs/NullableClass.md)
- - [Model.NullableGuidClass](docs/NullableGuidClass.md)
- - [Model.NullableShape](docs/NullableShape.md)
- - [Model.NumberOnly](docs/NumberOnly.md)
- - [Model.ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
- - [Model.OneOfString](docs/OneOfString.md)
- [Model.Order](docs/Order.md)
- - [Model.OuterComposite](docs/OuterComposite.md)
- - [Model.OuterEnum](docs/OuterEnum.md)
- - [Model.OuterEnumDefaultValue](docs/OuterEnumDefaultValue.md)
- - [Model.OuterEnumInteger](docs/OuterEnumInteger.md)
- - [Model.OuterEnumIntegerDefaultValue](docs/OuterEnumIntegerDefaultValue.md)
- - [Model.OuterEnumTest](docs/OuterEnumTest.md)
- - [Model.ParentPet](docs/ParentPet.md)
- [Model.Pet](docs/Pet.md)
- - [Model.Pig](docs/Pig.md)
- - [Model.PolymorphicProperty](docs/PolymorphicProperty.md)
- - [Model.Quadrilateral](docs/Quadrilateral.md)
- - [Model.QuadrilateralInterface](docs/QuadrilateralInterface.md)
- - [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
- - [Model.RequiredClass](docs/RequiredClass.md)
- - [Model.Return](docs/Return.md)
- - [Model.RolesReportsHash](docs/RolesReportsHash.md)
- - [Model.RolesReportsHashRole](docs/RolesReportsHashRole.md)
- - [Model.ScaleneTriangle](docs/ScaleneTriangle.md)
- - [Model.Shape](docs/Shape.md)
- - [Model.ShapeInterface](docs/ShapeInterface.md)
- - [Model.ShapeOrNull](docs/ShapeOrNull.md)
- - [Model.SimpleQuadrilateral](docs/SimpleQuadrilateral.md)
- - [Model.SpecialModelName](docs/SpecialModelName.md)
- [Model.Tag](docs/Tag.md)
- - [Model.TestCollectionEndingWithWordList](docs/TestCollectionEndingWithWordList.md)
- - [Model.TestCollectionEndingWithWordListObject](docs/TestCollectionEndingWithWordListObject.md)
- - [Model.TestInlineFreeformAdditionalPropertiesRequest](docs/TestInlineFreeformAdditionalPropertiesRequest.md)
- - [Model.Triangle](docs/Triangle.md)
- - [Model.TriangleInterface](docs/TriangleInterface.md)
- [Model.User](docs/User.md)
- - [Model.Whale](docs/Whale.md)
- - [Model.Zebra](docs/Zebra.md)
- - [Model.ZeroBasedEnum](docs/ZeroBasedEnum.md)
- - [Model.ZeroBasedEnumClass](docs/ZeroBasedEnumClass.md)
@@ -288,25 +174,3 @@ Authentication schemes defined for the API:
- **API key parameter name**: api_key
- **Location**: HTTP header
-
-### api_key_query
-
-- **Type**: API key
-- **API key parameter name**: api_key_query
-- **Location**: URL query string
-
-
-### http_basic_test
-
-- **Type**: HTTP basic authentication
-
-
-### bearer_test
-
-- **Type**: Bearer Authentication
-
-
-### http_signature_test
-
-- **Type**: HTTP signature authentication
-
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/api/openapi.yaml b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/api/openapi.yaml
index 886c93019332..b9edae059aa9 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/api/openapi.yaml
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/api/openapi.yaml
@@ -1,38 +1,17 @@
openapi: 3.0.0
info:
- description: "This spec is mainly for testing Petstore server and contains fake\
- \ endpoints, models. Please do not use this for any other purpose. Special characters:\
- \ \" \\"
+ description: "This is a sample server Petstore server. For this sample, you can\
+ \ use the api key `special-key` to test the authorization filters."
license:
name: Apache-2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
title: OpenAPI Petstore
version: 1.0.0
+externalDocs:
+ description: Find out more about Swagger
+ url: http://swagger.io
servers:
-- description: petstore server
- url: "http://{server}.swagger.io:{port}/v2"
- variables:
- server:
- default: petstore
- enum:
- - petstore
- - qa-petstore
- - dev-petstore
- port:
- default: "80"
- enum:
- - "80"
- - "8080"
-- description: The local server
- url: "https://localhost:8080/{version}"
- variables:
- version:
- default: v2
- enum:
- - v1
- - v2
-- description: The local server without variables
- url: https://127.0.0.1/no_variable
+- url: http://petstore.swagger.io/v2
tags:
- description: Everything about your Pets
name: pet
@@ -41,41 +20,6 @@ tags:
- description: Operations about user
name: user
paths:
- /roles/report:
- get:
- responses:
- "200":
- content:
- application/json:
- schema:
- items:
- $ref: "#/components/schemas/RolesReport"
- type: array
- description: returns report
- /hello:
- get:
- description: Hello
- operationId: Hello
- responses:
- "200":
- content:
- application/json:
- schema:
- items:
- format: uuid
- type: string
- type: array
- description: UUIDs
- summary: Hello
- /foo:
- get:
- responses:
- default:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/_foo_get_default_response"
- description: response
/pet:
post:
description: ""
@@ -83,10 +27,18 @@ paths:
requestBody:
$ref: "#/components/requestBodies/Pet"
responses:
+ "200":
+ content:
+ application/xml:
+ schema:
+ $ref: "#/components/schemas/Pet"
+ application/json:
+ schema:
+ $ref: "#/components/schemas/Pet"
+ description: successful operation
"405":
description: Invalid input
security:
- - http_signature_test: []
- petstore_auth:
- write:pets
- read:pets
@@ -95,10 +47,22 @@ paths:
- pet
put:
description: ""
+ externalDocs:
+ description: API documentation for the updatePet operation
+ url: http://petstore.swagger.io/v2/doc/updatePet
operationId: updatePet
requestBody:
$ref: "#/components/requestBodies/Pet"
responses:
+ "200":
+ content:
+ application/xml:
+ schema:
+ $ref: "#/components/schemas/Pet"
+ application/json:
+ schema:
+ $ref: "#/components/schemas/Pet"
+ description: successful operation
"400":
description: Invalid ID supplied
"404":
@@ -106,16 +70,12 @@ paths:
"405":
description: Validation exception
security:
- - http_signature_test: []
- petstore_auth:
- write:pets
- read:pets
summary: Update an existing pet
tags:
- pet
- servers:
- - url: http://petstore.swagger.io/v2
- - url: http://path-server-test.petstore.local/v2
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -154,9 +114,7 @@ paths:
"400":
description: Invalid status value
security:
- - http_signature_test: []
- petstore_auth:
- - write:pets
- read:pets
summary: Finds Pets by status
tags:
@@ -195,9 +153,7 @@ paths:
"400":
description: Invalid tag value
security:
- - http_signature_test: []
- petstore_auth:
- - write:pets
- read:pets
summary: Finds Pets by tags
tags:
@@ -262,7 +218,6 @@ paths:
description: Pet not found
security:
- api_key: []
- - api_key_query: []
summary: Find pet by ID
tags:
- pet
@@ -372,7 +327,7 @@ paths:
summary: Place an order for a pet
tags:
- store
- /store/order/{order_id}:
+ /store/order/{orderId}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
above 1000 or nonintegers will generate API errors
@@ -381,7 +336,7 @@ paths:
- description: ID of the order that needs to be deleted
explode: false
in: path
- name: order_id
+ name: orderId
required: true
schema:
type: string
@@ -402,7 +357,7 @@ paths:
- description: ID of pet that needs to be fetched
explode: false
in: path
- name: order_id
+ name: orderId
required: true
schema:
format: int64
@@ -441,6 +396,8 @@ paths:
responses:
default:
description: successful operation
+ security:
+ - api_key: []
summary: Create user
tags:
- user
@@ -453,6 +410,8 @@ paths:
responses:
default:
description: successful operation
+ security:
+ - api_key: []
summary: Creates list of users with given input array
tags:
- user
@@ -465,6 +424,8 @@ paths:
responses:
default:
description: successful operation
+ security:
+ - api_key: []
summary: Creates list of users with given input array
tags:
- user
@@ -479,6 +440,7 @@ paths:
name: username
required: true
schema:
+ pattern: "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$"
type: string
style: form
- description: The password for login in clear text
@@ -534,6 +496,8 @@ paths:
responses:
default:
description: successful operation
+ security:
+ - api_key: []
summary: Logs out current logged in user session
tags:
- user
@@ -555,6 +519,8 @@ paths:
description: Invalid username supplied
"404":
description: User not found
+ security:
+ - api_key: []
summary: Delete user
tags:
- user
@@ -584,14 +550,6 @@ paths:
description: Invalid username supplied
"404":
description: User not found
- "598":
- description: Not a real HTTP status code
- "599":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/User"
- description: Not a real HTTP status code with a return object
summary: Get user by user name
tags:
- user
@@ -619,2132 +577,205 @@ paths:
description: Invalid user supplied
"404":
description: User not found
+ security:
+ - api_key: []
summary: Updated user
tags:
- user
- /fake_classname_test:
- patch:
- description: To test class name in snake case
- operationId: testClassname
- requestBody:
- $ref: "#/components/requestBodies/Client"
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Client"
- description: successful operation
- security:
- - api_key_query: []
- summary: To test class name in snake case
- tags:
- - fake_classname_tags 123#$%^
- /fake:
- delete:
- description: Fake endpoint to test group parameters (optional)
- operationId: testGroupParameters
- parameters:
- - description: Required String in group parameters
- explode: true
- in: query
- name: required_string_group
- required: true
- schema:
+components:
+ requestBodies:
+ UserArray:
+ content:
+ application/json:
+ schema:
+ items:
+ $ref: "#/components/schemas/User"
+ type: array
+ description: List of user object
+ required: true
+ Pet:
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/Pet"
+ application/xml:
+ schema:
+ $ref: "#/components/schemas/Pet"
+ description: Pet object that needs to be added to the store
+ required: true
+ schemas:
+ Order:
+ description: An order for a pets from the pet store
+ example:
+ petId: 6
+ quantity: 1
+ id: 0
+ shipDate: 2000-01-23T04:56:07.000+00:00
+ complete: false
+ status: placed
+ properties:
+ id:
+ format: int64
type: integer
- style: form
- - description: Required Boolean in group parameters
- explode: false
- in: header
- name: required_boolean_group
- required: true
- schema:
- type: boolean
- style: simple
- - description: Required Integer in group parameters
- explode: true
- in: query
- name: required_int64_group
- required: true
- schema:
+ petId:
format: int64
type: integer
- style: form
- - description: String in group parameters
- explode: true
- in: query
- name: string_group
- required: false
- schema:
+ quantity:
+ format: int32
type: integer
- style: form
- - description: Boolean in group parameters
- explode: false
- in: header
- name: boolean_group
- required: false
- schema:
+ shipDate:
+ format: date-time
+ type: string
+ status:
+ description: Order Status
+ enum:
+ - placed
+ - approved
+ - delivered
+ type: string
+ complete:
+ default: false
type: boolean
- style: simple
- - description: Integer in group parameters
- explode: true
- in: query
- name: int64_group
- required: false
- schema:
+ title: Pet Order
+ type: object
+ xml:
+ name: Order
+ Category:
+ description: A category for a pet
+ example:
+ name: name
+ id: 6
+ properties:
+ id:
format: int64
type: integer
- style: form
- responses:
- "400":
- description: Something wrong
- security:
- - bearer_test: []
- summary: Fake endpoint to test group parameters (optional)
- tags:
- - fake
- x-group-parameters: true
- get:
- description: To test enum parameters
- operationId: testEnumParameters
- parameters:
- - description: Header parameter enum test (string array)
- explode: false
- in: header
- name: enum_header_string_array
- required: false
- schema:
- items:
- default: $
- enum:
- - '>'
- - $
- type: string
- type: array
- style: simple
- - description: Header parameter enum test (string)
- explode: false
- in: header
- name: enum_header_string
- required: false
- schema:
- default: -efg
- enum:
- - _abc
- - -efg
- - (xyz)
+ name:
+ pattern: "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$"
type: string
- style: simple
- - description: Query parameter enum test (string array)
- explode: true
- in: query
- name: enum_query_string_array
- required: false
- schema:
- items:
- default: $
- enum:
- - '>'
- - $
- type: string
- type: array
- style: form
- - description: Query parameter enum test (string)
- explode: true
- in: query
- name: enum_query_string
- required: false
- schema:
- default: -efg
- enum:
- - _abc
- - -efg
- - (xyz)
+ title: Pet category
+ type: object
+ xml:
+ name: Category
+ User:
+ description: A User who is purchasing from the pet store
+ example:
+ firstName: firstName
+ lastName: lastName
+ password: password
+ userStatus: 6
+ phone: phone
+ id: 0
+ email: email
+ username: username
+ properties:
+ id:
+ format: int64
+ type: integer
+ username:
type: string
- style: form
- - description: Query parameter enum test (double)
- explode: true
- in: query
- name: enum_query_integer
- required: false
- schema:
- enum:
- - 1
- - -2
+ firstName:
+ type: string
+ lastName:
+ type: string
+ email:
+ type: string
+ password:
+ type: string
+ phone:
+ type: string
+ userStatus:
+ description: User Status
format: int32
type: integer
- style: form
- - description: Query parameter enum test (double)
- explode: true
- in: query
- name: enum_query_double
- required: false
- schema:
- enum:
- - 1.1
- - -1.2
- format: double
- type: number
- style: form
- requestBody:
- content:
- application/x-www-form-urlencoded:
- schema:
- $ref: "#/components/schemas/testEnumParameters_request"
- responses:
- "400":
- description: Invalid request
- "404":
- description: Not found
- summary: To test enum parameters
- tags:
- - fake
- patch:
- description: To test "client" model
- operationId: testClientModel
- requestBody:
- $ref: "#/components/requestBodies/Client"
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Client"
- description: successful operation
- summary: To test "client" model
- tags:
- - fake
- post:
- description: |
- Fake endpoint for testing various parameters
- 假端點
- 偽のエンドポイント
- 가짜 엔드 포인트
- operationId: testEndpointParameters
- requestBody:
- content:
- application/x-www-form-urlencoded:
- schema:
- $ref: "#/components/schemas/testEndpointParameters_request"
- responses:
- "400":
- description: Invalid username supplied
- "404":
- description: User not found
- security:
- - http_basic_test: []
- summary: |
- Fake endpoint for testing various parameters
- 假端點
- 偽のエンドポイント
- 가짜 엔드 포인트
- tags:
- - fake
- /fake/outer/number:
- post:
- description: Test serialization of outer number types
- operationId: fakeOuterNumberSerialize
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/OuterNumber"
- description: Input number as post body
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: "#/components/schemas/OuterNumber"
- description: Output number
- tags:
- - fake
- /fake/outer/string:
- post:
- description: Test serialization of outer string types
- operationId: fakeOuterStringSerialize
- parameters:
- - description: Required UUID String
- explode: true
- in: query
- name: required_string_uuid
- required: true
- schema:
- format: uuid
- type: string
- style: form
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/OuterString"
- description: Input string as post body
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: "#/components/schemas/OuterString"
- description: Output string
- tags:
- - fake
- /fake/outer/boolean:
- post:
- description: Test serialization of outer boolean types
- operationId: fakeOuterBooleanSerialize
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/OuterBoolean"
- description: Input boolean as post body
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: "#/components/schemas/OuterBoolean"
- description: Output boolean
- tags:
- - fake
- /fake/outer/composite:
- post:
- description: Test serialization of object with outer number type
- operationId: fakeOuterCompositeSerialize
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/OuterComposite"
- description: Input composite as post body
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: "#/components/schemas/OuterComposite"
- description: Output composite
- tags:
- - fake
- /fake/jsonFormData:
- get:
- description: ""
- operationId: testJsonFormData
- requestBody:
- content:
- application/x-www-form-urlencoded:
- schema:
- $ref: "#/components/schemas/testJsonFormData_request"
- responses:
- "200":
- description: successful operation
- summary: test json serialization of form data
- tags:
- - fake
- /fake/additionalProperties-reference:
- post:
- description: ""
- operationId: testAdditionalPropertiesReference
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/FreeFormObject"
- description: request body
- required: true
- responses:
- "200":
- description: successful operation
- summary: test referenced additionalProperties
- tags:
- - fake
- /fake/stringMap-reference:
- post:
- description: ""
- operationId: testStringMapReference
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/MapOfString"
- description: request body
- required: true
- responses:
- "200":
- description: successful operation
- summary: test referenced string map
- tags:
- - fake
- /fake/inline-additionalProperties:
- post:
- description: ""
- operationId: testInlineAdditionalProperties
- requestBody:
- content:
- application/json:
- schema:
- additionalProperties:
- type: string
- type: object
- description: request body
- required: true
- responses:
- "200":
- description: successful operation
- summary: test inline additionalProperties
- tags:
- - fake
- /fake/inline-freeform-additionalProperties:
- post:
- description: ""
- operationId: testInlineFreeformAdditionalProperties
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/testInlineFreeformAdditionalProperties_request"
- description: request body
- required: true
- responses:
- "200":
- description: successful operation
- summary: test inline free-form additionalProperties
- tags:
- - fake
- /fake/body-with-query-params:
- put:
- operationId: testBodyWithQueryParams
- parameters:
- - explode: true
- in: query
- name: query
- required: true
- schema:
- type: string
- style: form
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/User"
- required: true
- responses:
- "200":
- description: Success
- tags:
- - fake
- /another-fake/dummy:
- patch:
- description: To test special tags and operation ID starting with number
- operationId: 123_test_@#$%_special_tags
- requestBody:
- $ref: "#/components/requestBodies/Client"
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Client"
- description: successful operation
- summary: To test special tags
- tags:
- - $another-fake?
- /fake/body-with-file-schema:
- put:
- description: "For this test, the body for this request much reference a schema\
- \ named `File`."
- operationId: testBodyWithFileSchema
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/FileSchemaTestClass"
- required: true
- responses:
- "200":
- description: Success
- tags:
- - fake
- /fake/test-query-parameters:
- put:
- description: To test the collection format in query parameters
- operationId: testQueryParameterCollectionFormat
- parameters:
- - explode: true
- in: query
- name: pipe
- required: true
- schema:
- items:
- type: string
- type: array
- style: form
- - explode: false
- in: query
- name: ioutil
- required: true
- schema:
- items:
- type: string
- type: array
- style: form
- - explode: false
- in: query
- name: http
- required: true
- schema:
- items:
- type: string
- type: array
- style: spaceDelimited
- - explode: false
- in: query
- name: url
- required: true
- schema:
- items:
- type: string
- type: array
- style: form
- - explode: true
- in: query
- name: context
- required: true
- schema:
- items:
- type: string
- type: array
- style: form
- - explode: true
- in: query
- name: requiredNotNullable
- required: true
- schema:
- nullable: false
- type: string
- style: form
- - explode: true
- in: query
- name: requiredNullable
- required: true
- schema:
- nullable: true
- type: string
- style: form
- - explode: true
- in: query
- name: notRequiredNotNullable
- required: false
- schema:
- nullable: false
- type: string
- style: form
- - explode: true
- in: query
- name: notRequiredNullable
- required: false
- schema:
- nullable: true
- type: string
- style: form
- responses:
- "200":
- description: Success
- tags:
- - fake
- /fake/{petId}/uploadImageWithRequiredFile:
- post:
- description: ""
- operationId: uploadFileWithRequiredFile
- parameters:
- - description: ID of pet to update
- explode: false
- in: path
- name: petId
- required: true
- schema:
- format: int64
- type: integer
- style: simple
- requestBody:
- content:
- multipart/form-data:
- schema:
- $ref: "#/components/schemas/uploadFileWithRequiredFile_request"
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/ApiResponse"
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
- schema:
- $ref: "#/components/schemas/ApiResponse"
- description: successful operation
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: uploads an image (required)
- tags:
- - pet
- /fake/health:
- get:
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/HealthCheckResult"
- description: The instance started successfully
- summary: Health check endpoint
- tags:
- - fake
- /fake/array-of-enums:
- get:
- operationId: getArrayOfEnums
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/ArrayOfEnums"
- description: Got named array of enums
- summary: Array of Enums
- tags:
- - fake
- /fake/mixed/anyOf:
- get:
- operationId: getMixedAnyOf
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/MixedAnyOf"
- description: Got mixed anyOf
- summary: Test mixed type anyOf deserialization
- tags:
- - fake
- /fake/mixed/oneOf:
- get:
- operationId: getMixedOneOf
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/MixedOneOf"
- description: Got mixed oneOf
- summary: Test mixed type oneOf deserialization
- tags:
- - fake
- /country:
- post:
- operationId: getCountry
- requestBody:
- content:
- application/x-www-form-urlencoded:
- schema:
- $ref: "#/components/schemas/getCountry_request"
- responses:
- "200":
- description: OK
- /test:
- get:
- operationId: Test
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/notificationtest-getElements-v1-Response-mPayload"
- description: Successful response
- summary: Retrieve an existing Notificationtest's Elements
-components:
- requestBodies:
- UserArray:
- content:
- application/json:
- examples:
- simple-list:
- description: Should not get into code examples
- summary: Simple list example
- value:
- - username: foo
- - username: bar
- schema:
- items:
- $ref: "#/components/schemas/User"
- type: array
- description: List of user object
- required: true
- Client:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Client"
- description: client model
- required: true
- Pet:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Pet"
- application/xml:
- schema:
- $ref: "#/components/schemas/Pet"
- description: Pet object that needs to be added to the store
- required: true
- schemas:
- RolesReport:
- description: Roles report
- items:
- $ref: "#/components/schemas/RolesReportsHash"
- type: array
- RolesReportsHash:
- description: Role report Hash
- example:
- role:
- name: name
- role_uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- properties:
- role_uuid:
- format: uuid
- type: string
- role:
- $ref: "#/components/schemas/RolesReportsHash_role"
- type: object
- Foo:
- example:
- bar: bar
- properties:
- bar:
- default: bar
- type: string
- type: object
- Bar:
- default: bar
- type: string
- Order:
- example:
- petId: 6
- quantity: 1
- id: 0
- shipDate: 2020-02-02T20:20:20.000222Z
- complete: false
- status: placed
- properties:
- id:
- format: int64
- type: integer
- petId:
- format: int64
- type: integer
- quantity:
- format: int32
- type: integer
- shipDate:
- example: 2020-02-02T20:20:20.000222Z
- format: date-time
- type: string
- status:
- description: Order Status
- enum:
- - placed
- - approved
- - delivered
- type: string
- complete:
- default: false
- type: boolean
- type: object
- xml:
- name: Order
- Category:
- example:
- name: default-name
- id: 6
- properties:
- id:
- format: int64
- type: integer
- name:
- default: default-name
- type: string
- required:
- - name
- type: object
- xml:
- name: Category
- User:
- example:
- firstName: firstName
- lastName: lastName
- password: password
- userStatus: 6
- objectWithNoDeclaredPropsNullable: "{}"
- phone: phone
- objectWithNoDeclaredProps: "{}"
- id: 0
- anyTypePropNullable: ""
- email: email
- anyTypeProp: ""
- username: username
- properties:
- id:
- format: int64
- type: integer
- x-is-unique: true
- username:
- type: string
- firstName:
- type: string
- lastName:
- type: string
- email:
- type: string
- password:
- type: string
- phone:
- type: string
- userStatus:
- description: User Status
- format: int32
- type: integer
- objectWithNoDeclaredProps:
- description: test code generation for objects Value must be a map of strings
- to values. It cannot be the 'null' value.
- type: object
- objectWithNoDeclaredPropsNullable:
- description: test code generation for nullable objects. Value must be a
- map of strings to values or the 'null' value.
- nullable: true
- type: object
- anyTypeProp:
- description: "test code generation for any type Here the 'type' attribute\
- \ is not specified, which means the value can be anything, including the\
- \ null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389"
- anyTypePropNullable:
- description: "test code generation for any type Here the 'type' attribute\
- \ is not specified, which means the value can be anything, including the\
- \ null value, string, number, boolean, array or object. The 'nullable'\
- \ attribute does not change the allowed values."
- nullable: true
- type: object
- xml:
- name: User
- Tag:
- example:
- name: name
- id: 1
- properties:
- id:
- format: int64
- type: integer
- name:
- type: string
- type: object
- xml:
- name: Tag
- Pet:
- example:
- photoUrls:
- - photoUrls
- - photoUrls
- name: doggie
- id: 0
- category:
- name: default-name
- id: 6
- tags:
- - name: name
- id: 1
- - name: name
- id: 1
- status: available
- properties:
- id:
- format: int64
- type: integer
- x-is-unique: true
- category:
- $ref: "#/components/schemas/Category"
- name:
- example: doggie
- type: string
- photoUrls:
- items:
- type: string
- type: array
- xml:
- name: photoUrl
- wrapped: true
- tags:
- items:
- $ref: "#/components/schemas/Tag"
- type: array
- xml:
- name: tag
- wrapped: true
- status:
- description: pet status in the store
- enum:
- - available
- - pending
- - sold
- type: string
- required:
- - name
- - photoUrls
- type: object
- xml:
- name: Pet
- ApiResponse:
- example:
- code: 0
- type: type
- message: message
- properties:
- code:
- format: int32
- type: integer
- type:
- type: string
- message:
- type: string
- type: object
- Return:
- description: Model for testing reserved words
- properties:
- return:
- format: int32
- type: integer
- xml:
- name: Return
- Name:
- description: Model for testing model name same as property name
- properties:
- name:
- format: int32
- type: integer
- snake_case:
- format: int32
- readOnly: true
- type: integer
- property:
- type: string
- "123Number":
- readOnly: true
- type: integer
- required:
- - name
- xml:
- name: Name
- "200_response":
- description: Model for testing model name starting with number
- properties:
- name:
- format: int32
- type: integer
- class:
- type: string
- xml:
- name: Name
- ClassModel:
- description: Model for testing model with "_class" property
- properties:
- _class:
- type: string
- Dog:
- allOf:
- - $ref: "#/components/schemas/Animal"
- - properties:
- breed:
- type: string
- type: object
- Cat:
- allOf:
- - $ref: "#/components/schemas/Animal"
- - $ref: "#/components/schemas/Address"
- - properties:
- declawed:
- type: boolean
- type: object
- Address:
- additionalProperties:
- type: integer
- type: object
- Animal:
- discriminator:
- propertyName: className
- properties:
- className:
- type: string
- color:
- default: red
- type: string
- required:
- - className
- type: object
- AnimalFarm:
- items:
- $ref: "#/components/schemas/Animal"
- type: array
- format_test:
- properties:
- integer:
- maximum: 100
- minimum: 10
- multipleOf: 2
- type: integer
- int32:
- format: int32
- maximum: 200
- minimum: 20
- type: integer
- unsigned_integer:
- format: int32
- maximum: 200
- minimum: 20
- type: integer
- x-unsigned: true
- int64:
- format: int64
- type: integer
- unsigned_long:
- format: int64
- type: integer
- x-unsigned: true
- number:
- maximum: 543.2
- minimum: 32.1
- multipleOf: 32.5
- type: number
- float:
- format: float
- maximum: 987.6
- minimum: 54.3
- type: number
- double:
- format: double
- maximum: 123.4
- minimum: 67.8
- type: number
- decimal:
- format: number
- type: string
- string:
- pattern: "/[a-z]/i"
- type: string
- byte:
- format: byte
- type: string
- binary:
- format: binary
- type: string
- date:
- example: 2020-02-02
- format: date
- type: string
- dateTime:
- example: 2007-12-03T10:15:30+01:00
- format: date-time
- type: string
- uuid:
- example: 72f98069-206d-4f12-9f12-3d1e525a8e84
- format: uuid
- type: string
- password:
- format: password
- maxLength: 64
- minLength: 10
- type: string
- pattern_with_digits:
- description: A string that is a 10 digit number. Can have leading zeros.
- pattern: "^\\d{10}$"
- type: string
- pattern_with_digits_and_delimiter:
- description: A string starting with 'image_' (case insensitive) and one
- to three digits following i.e. Image_01.
- pattern: "/^image_\\d{1,3}$/i"
- type: string
- pattern_with_backslash:
- description: None
- pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
- /([0-9]|[1-2][0-9]|3[0-2]))$"
- type: string
- required:
- - byte
- - date
- - number
- - password
- type: object
- EnumClass:
- default: -efg
- enum:
- - _abc
- - -efg
- - (xyz)
- type: string
- Outer_Enum_Test:
- enum:
- - UPPER
- - lower
- - ""
- - "Value\twith tab"
- - Value with " quote
- - Value with escaped \" quote
- - |-
- Duplicate
- value
- - "Duplicate\r\nvalue"
- type: string
- Enum_Test:
- properties:
- enum_string:
- enum:
- - UPPER
- - lower
- - ""
- - "Value\twith tab"
- - Value with " quote
- - Value with escaped \" quote
- - |-
- Duplicate
- value
- - "Duplicate\r\nvalue"
- type: string
- enum_string_required:
- enum:
- - UPPER
- - lower
- - ""
- - "Value\twith tab"
- - Value with " quote
- - Value with escaped \" quote
- - |-
- Duplicate
- value
- - "Duplicate\r\nvalue"
- type: string
- enum_integer:
- enum:
- - 1
- - -1
- format: int32
- type: integer
- enum_integer_only:
- enum:
- - 2
- - -2
- type: integer
- enum_number:
- enum:
- - 1.1
- - -1.2
- format: double
- type: number
- outerEnum:
- $ref: "#/components/schemas/OuterEnum"
- outerEnumInteger:
- $ref: "#/components/schemas/OuterEnumInteger"
- outerEnumDefaultValue:
- $ref: "#/components/schemas/OuterEnumDefaultValue"
- outerEnumIntegerDefaultValue:
- $ref: "#/components/schemas/OuterEnumIntegerDefaultValue"
- required:
- - enum_string_required
- type: object
- AdditionalPropertiesClass:
- properties:
- map_property:
- additionalProperties:
- type: string
- type: object
- map_of_map_property:
- additionalProperties:
- additionalProperties:
- type: string
- type: object
- type: object
- anytype_1: {}
- map_with_undeclared_properties_anytype_1:
- type: object
- map_with_undeclared_properties_anytype_2:
- properties: {}
- type: object
- map_with_undeclared_properties_anytype_3:
- additionalProperties: true
- type: object
- empty_map:
- additionalProperties: false
- description: "an object with no declared properties and no undeclared properties,\
- \ hence it's an empty map."
- type: object
- map_with_undeclared_properties_string:
- additionalProperties:
- type: string
- type: object
- type: object
- MixedPropertiesAndAdditionalPropertiesClass:
- properties:
- uuid_with_pattern:
- format: uuid
- pattern: "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"
- type: string
- uuid:
- format: uuid
- type: string
- dateTime:
- format: date-time
- type: string
- map:
- additionalProperties:
- $ref: "#/components/schemas/Animal"
- type: object
- type: object
- List:
- properties:
- "123-list":
- type: string
- type: object
- Client:
- example:
- client: client
- properties:
- client:
- type: string
- type: object
- ReadOnlyFirst:
- properties:
- bar:
- readOnly: true
- type: string
- baz:
- type: string
- type: object
- hasOnlyReadOnly:
- properties:
- bar:
- readOnly: true
- type: string
- foo:
- readOnly: true
- type: string
- type: object
- Capitalization:
- properties:
- smallCamel:
- type: string
- CapitalCamel:
- type: string
- small_Snake:
- type: string
- Capital_Snake:
- type: string
- SCA_ETH_Flow_Points:
- type: string
- ATT_NAME:
- description: |
- Name of the pet
- type: string
- type: object
- MapTest:
- properties:
- map_map_of_string:
- additionalProperties:
- additionalProperties:
- type: string
- type: object
- type: object
- map_of_enum_string:
- additionalProperties:
- enum:
- - UPPER
- - lower
- type: string
- type: object
- direct_map:
- additionalProperties:
- type: boolean
- type: object
- indirect_map:
- additionalProperties:
- type: boolean
- type: object
- type: object
- ArrayTest:
- properties:
- array_of_string:
- items:
- type: string
- type: array
- array_array_of_integer:
- items:
- items:
- format: int64
- type: integer
- type: array
- type: array
- array_array_of_model:
- items:
- items:
- $ref: "#/components/schemas/ReadOnlyFirst"
- type: array
- type: array
- type: object
- NumberOnly:
- properties:
- JustNumber:
- type: number
- type: object
- x-cls-compliant: true
- x-com-visible: true
- ArrayOfNumberOnly:
- properties:
- ArrayNumber:
- items:
- type: number
- type: array
- type: object
- ArrayOfArrayOfNumberOnly:
- properties:
- ArrayArrayNumber:
- items:
- items:
- type: number
- type: array
- type: array
- type: object
- EnumArrays:
- properties:
- just_symbol:
- enum:
- - '>='
- - $
- type: string
- array_enum:
- items:
- enum:
- - fish
- - crab
- type: string
- type: array
- type: object
- FreeFormObject:
- additionalProperties: true
- description: A schema consisting only of additional properties
- type: object
- MapOfString:
- additionalProperties:
- type: string
- description: A schema consisting only of additional properties of type string
- type: object
- OuterEnum:
- enum:
- - placed
- - approved
- - delivered
- nullable: true
- type: string
- OuterEnumInteger:
- enum:
- - 0
- - 1
- - 2
- type: integer
- OuterEnumDefaultValue:
- default: placed
- enum:
- - placed
- - approved
- - delivered
- type: string
- OuterEnumIntegerDefaultValue:
- default: 0
- enum:
- - 0
- - 1
- - 2
- type: integer
- OuterComposite:
- example:
- my_string: my_string
- my_number: 0.8008281904610115
- my_boolean: true
- properties:
- my_number:
- type: number
- my_string:
- type: string
- my_boolean:
- type: boolean
- x-codegen-body-parameter-name: boolean_post_body
- type: object
- OuterNumber:
- type: number
- OuterString:
- type: string
- OuterBoolean:
- type: boolean
- x-codegen-body-parameter-name: boolean_post_body
- StringBooleanMap:
- additionalProperties:
- type: boolean
- type: object
- FileSchemaTestClass:
- example:
- file:
- sourceURI: sourceURI
- files:
- - sourceURI: sourceURI
- - sourceURI: sourceURI
- properties:
- file:
- $ref: "#/components/schemas/File"
- files:
- items:
- $ref: "#/components/schemas/File"
- type: array
- type: object
- File:
- description: Must be named `File` for test.
- example:
- sourceURI: sourceURI
- properties:
- sourceURI:
- description: Test capitalization
- type: string
- type: object
- _special_model.name_:
- properties:
- $special[property.name]:
- format: int64
- type: integer
- _special_model.name_:
- type: string
- xml:
- name: "$special[model.name]"
- HealthCheckResult:
- description: Just a string to inform instance is up and running. Make it nullable
- in hope to get it as pointer in generated model.
- example:
- NullableMessage: NullableMessage
- properties:
- NullableMessage:
- nullable: true
- type: string
- type: object
- RequiredClass:
- properties:
- required_nullable_integer_prop:
- nullable: true
- type: integer
- required_notnullableinteger_prop:
- nullable: false
- type: integer
- not_required_nullable_integer_prop:
- nullable: true
- type: integer
- not_required_notnullableinteger_prop:
- nullable: false
- type: integer
- required_nullable_string_prop:
- nullable: true
- type: string
- required_notnullable_string_prop:
- nullable: false
- type: string
- notrequired_nullable_string_prop:
- nullable: true
- type: string
- notrequired_notnullable_string_prop:
- nullable: false
- type: string
- required_nullable_boolean_prop:
- nullable: true
- type: boolean
- required_notnullable_boolean_prop:
- nullable: false
- type: boolean
- notrequired_nullable_boolean_prop:
- nullable: true
- type: boolean
- notrequired_notnullable_boolean_prop:
- nullable: false
- type: boolean
- required_nullable_date_prop:
- format: date
- nullable: true
- type: string
- required_not_nullable_date_prop:
- format: date
- nullable: false
- type: string
- not_required_nullable_date_prop:
- format: date
- nullable: true
- type: string
- not_required_notnullable_date_prop:
- format: date
- nullable: false
- type: string
- required_notnullable_datetime_prop:
- format: date-time
- nullable: false
- type: string
- required_nullable_datetime_prop:
- format: date-time
- nullable: true
- type: string
- notrequired_nullable_datetime_prop:
- format: date-time
- nullable: true
- type: string
- notrequired_notnullable_datetime_prop:
- format: date-time
- nullable: false
- type: string
- required_nullable_enum_integer:
- enum:
- - 1
- - -1
- format: int32
- nullable: true
- type: integer
- required_notnullable_enum_integer:
- enum:
- - 1
- - -1
- format: int32
- nullable: false
- type: integer
- notrequired_nullable_enum_integer:
- enum:
- - 1
- - -1
- format: int32
- nullable: true
- type: integer
- notrequired_notnullable_enum_integer:
- enum:
- - 1
- - -1
- format: int32
- nullable: false
- type: integer
- required_nullable_enum_integer_only:
- enum:
- - 2
- - -2
- nullable: true
- type: integer
- required_notnullable_enum_integer_only:
- enum:
- - 2
- - -2
- nullable: false
- type: integer
- notrequired_nullable_enum_integer_only:
- enum:
- - 2
- - -2
- nullable: true
- type: integer
- notrequired_notnullable_enum_integer_only:
- enum:
- - 2
- - -2
- nullable: false
- type: integer
- required_notnullable_enum_string:
- enum:
- - UPPER
- - lower
- - ""
- - "Value\twith tab"
- - Value with " quote
- - Value with escaped \" quote
- - |-
- Duplicate
- value
- - "Duplicate\r\nvalue"
- nullable: false
- type: string
- required_nullable_enum_string:
- enum:
- - UPPER
- - lower
- - ""
- - "Value\twith tab"
- - Value with " quote
- - Value with escaped \" quote
- - |-
- Duplicate
- value
- - "Duplicate\r\nvalue"
- nullable: true
- type: string
- notrequired_nullable_enum_string:
- enum:
- - UPPER
- - lower
- - ""
- - "Value\twith tab"
- - Value with " quote
- - Value with escaped \" quote
- - |-
- Duplicate
- value
- - "Duplicate\r\nvalue"
- nullable: true
- type: string
- notrequired_notnullable_enum_string:
- enum:
- - UPPER
- - lower
- - ""
- - "Value\twith tab"
- - Value with " quote
- - Value with escaped \" quote
- - |-
- Duplicate
- value
- - "Duplicate\r\nvalue"
- nullable: false
- type: string
- required_nullable_outerEnumDefaultValue:
- allOf:
- - $ref: "#/components/schemas/OuterEnumDefaultValue"
- nullable: true
- required_notnullable_outerEnumDefaultValue:
- allOf:
- - $ref: "#/components/schemas/OuterEnumDefaultValue"
- nullable: false
- notrequired_nullable_outerEnumDefaultValue:
- allOf:
- - $ref: "#/components/schemas/OuterEnumDefaultValue"
- nullable: true
- notrequired_notnullable_outerEnumDefaultValue:
- allOf:
- - $ref: "#/components/schemas/OuterEnumDefaultValue"
- nullable: false
- required_nullable_uuid:
- example: 72f98069-206d-4f12-9f12-3d1e525a8e84
- format: uuid
- nullable: true
- type: string
- required_notnullable_uuid:
- example: 72f98069-206d-4f12-9f12-3d1e525a8e84
- format: uuid
- nullable: false
- type: string
- notrequired_nullable_uuid:
- example: 72f98069-206d-4f12-9f12-3d1e525a8e84
- format: uuid
- nullable: true
- type: string
- notrequired_notnullable_uuid:
- example: 72f98069-206d-4f12-9f12-3d1e525a8e84
- format: uuid
- nullable: false
- type: string
- required_nullable_array_of_string:
- items:
- type: string
- nullable: true
- type: array
- required_notnullable_array_of_string:
- items:
- type: string
- nullable: false
- type: array
- notrequired_nullable_array_of_string:
- items:
- type: string
- nullable: true
- type: array
- notrequired_notnullable_array_of_string:
- items:
- type: string
- nullable: false
- type: array
- required:
- - required_not_nullable_date_prop
- - required_notnullable_array_of_string
- - required_notnullable_boolean_prop
- - required_notnullable_datetime_prop
- - required_notnullable_enum_integer
- - required_notnullable_enum_integer_only
- - required_notnullable_enum_string
- - required_notnullable_outerEnumDefaultValue
- - required_notnullable_string_prop
- - required_notnullable_uuid
- - required_notnullableinteger_prop
- - required_nullable_array_of_string
- - required_nullable_boolean_prop
- - required_nullable_date_prop
- - required_nullable_datetime_prop
- - required_nullable_enum_integer
- - required_nullable_enum_integer_only
- - required_nullable_enum_string
- - required_nullable_integer_prop
- - required_nullable_outerEnumDefaultValue
- - required_nullable_string_prop
- - required_nullable_uuid
+ title: a User
type: object
- NullableClass:
- additionalProperties:
- nullable: true
- type: object
+ xml:
+ name: User
+ Tag:
+ description: A tag for a pet
+ example:
+ name: name
+ id: 1
properties:
- integer_prop:
- nullable: true
+ id:
+ format: int64
type: integer
- number_prop:
- nullable: true
- type: number
- boolean_prop:
- nullable: true
- type: boolean
- string_prop:
- nullable: true
- type: string
- date_prop:
- format: date
- nullable: true
- type: string
- datetime_prop:
- format: date-time
- nullable: true
- type: string
- array_nullable_prop:
- items:
- type: object
- nullable: true
- type: array
- array_and_items_nullable_prop:
- items:
- nullable: true
- type: object
- nullable: true
- type: array
- array_items_nullable:
- items:
- nullable: true
- type: object
- type: array
- object_nullable_prop:
- additionalProperties:
- type: object
- nullable: true
- type: object
- object_and_items_nullable_prop:
- additionalProperties:
- nullable: true
- type: object
- nullable: true
- type: object
- object_items_nullable:
- additionalProperties:
- nullable: true
- type: object
- type: object
- type: object
- fruit:
- additionalProperties: false
- oneOf:
- - $ref: "#/components/schemas/apple"
- - $ref: "#/components/schemas/banana"
- properties:
- color:
- type: string
- apple:
- nullable: true
- properties:
- cultivar:
- pattern: "^[a-zA-Z\\s]*$"
- type: string
- origin:
- pattern: "/^[A-Z\\s]*$/i"
- type: string
- color_code:
- pattern: "^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$"
- type: string
- type: object
- banana:
- properties:
- lengthCm:
- type: number
- type: object
- mammal:
- discriminator:
- propertyName: className
- oneOf:
- - $ref: "#/components/schemas/whale"
- - $ref: "#/components/schemas/zebra"
- - $ref: "#/components/schemas/Pig"
- whale:
- properties:
- hasBaleen:
- type: boolean
- hasTeeth:
- type: boolean
- className:
- type: string
- required:
- - className
- type: object
- zebra:
- additionalProperties: true
- properties:
- type:
- enum:
- - plains
- - mountain
- - grevys
- type: string
- className:
- type: string
- required:
- - className
- type: object
- Pig:
- discriminator:
- propertyName: className
- oneOf:
- - $ref: "#/components/schemas/BasquePig"
- - $ref: "#/components/schemas/DanishPig"
- BasquePig:
- properties:
- className:
- type: string
- required:
- - className
- type: object
- DanishPig:
- properties:
- className:
- type: string
- required:
- - className
- type: object
- gmFruit:
- additionalProperties: false
- anyOf:
- - $ref: "#/components/schemas/apple"
- - $ref: "#/components/schemas/banana"
- properties:
- color:
- type: string
- fruitReq:
- additionalProperties: false
- nullable: true
- oneOf:
- - $ref: "#/components/schemas/appleReq"
- - $ref: "#/components/schemas/bananaReq"
- appleReq:
- additionalProperties: false
- properties:
- cultivar:
- type: string
- mealy:
- type: boolean
- required:
- - cultivar
- type: object
- bananaReq:
- additionalProperties: false
- properties:
- lengthCm:
- type: number
- sweet:
- type: boolean
- required:
- - lengthCm
- type: object
- Drawing:
- additionalProperties:
- $ref: "#/components/schemas/fruit"
- properties:
- mainShape:
- $ref: "#/components/schemas/Shape"
- shapeOrNull:
- $ref: "#/components/schemas/ShapeOrNull"
- nullableShape:
- $ref: "#/components/schemas/NullableShape"
- shapes:
- items:
- $ref: "#/components/schemas/Shape"
- type: array
- type: object
- Shape:
- discriminator:
- propertyName: shapeType
- oneOf:
- - $ref: "#/components/schemas/Triangle"
- - $ref: "#/components/schemas/Quadrilateral"
- ShapeOrNull:
- description: The value may be a shape or the 'null' value. This is introduced
- in OAS schema >= 3.1.
- discriminator:
- propertyName: shapeType
- nullable: true
- oneOf:
- - $ref: "#/components/schemas/Triangle"
- - $ref: "#/components/schemas/Quadrilateral"
- NullableShape:
- description: The value may be a shape or the 'null' value. The 'nullable' attribute
- was introduced in OAS schema >= 3.0 and has been deprecated in OAS schema
- >= 3.1.
- discriminator:
- propertyName: shapeType
- nullable: true
- oneOf:
- - $ref: "#/components/schemas/Triangle"
- - $ref: "#/components/schemas/Quadrilateral"
- ShapeInterface:
- properties:
- shapeType:
- type: string
- required:
- - shapeType
- TriangleInterface:
- properties:
- triangleType:
- type: string
- required:
- - triangleType
- Triangle:
- discriminator:
- propertyName: triangleType
- oneOf:
- - $ref: "#/components/schemas/EquilateralTriangle"
- - $ref: "#/components/schemas/IsoscelesTriangle"
- - $ref: "#/components/schemas/ScaleneTriangle"
- EquilateralTriangle:
- allOf:
- - $ref: "#/components/schemas/ShapeInterface"
- - $ref: "#/components/schemas/TriangleInterface"
- IsoscelesTriangle:
- additionalProperties: false
- allOf:
- - $ref: "#/components/schemas/ShapeInterface"
- - $ref: "#/components/schemas/TriangleInterface"
- ScaleneTriangle:
- allOf:
- - $ref: "#/components/schemas/ShapeInterface"
- - $ref: "#/components/schemas/TriangleInterface"
- QuadrilateralInterface:
- properties:
- quadrilateralType:
- type: string
- required:
- - quadrilateralType
- Quadrilateral:
- discriminator:
- propertyName: quadrilateralType
- oneOf:
- - $ref: "#/components/schemas/SimpleQuadrilateral"
- - $ref: "#/components/schemas/ComplexQuadrilateral"
- SimpleQuadrilateral:
- allOf:
- - $ref: "#/components/schemas/ShapeInterface"
- - $ref: "#/components/schemas/QuadrilateralInterface"
- ComplexQuadrilateral:
- allOf:
- - $ref: "#/components/schemas/ShapeInterface"
- - $ref: "#/components/schemas/QuadrilateralInterface"
- GrandparentAnimal:
- discriminator:
- propertyName: pet_type
- properties:
- pet_type:
- type: string
- required:
- - pet_type
- type: object
- ParentPet:
- allOf:
- - $ref: "#/components/schemas/GrandparentAnimal"
- type: object
- ChildCat:
- allOf:
- - $ref: "#/components/schemas/ParentPet"
- - properties:
- name:
- type: string
- pet_type:
- default: ChildCat
- enum:
- - ChildCat
- type: string
- x-enum-as-string: true
- required:
- - pet_type
- type: object
- ArrayOfEnums:
- items:
- $ref: "#/components/schemas/OuterEnum"
- type: array
- DateTimeTest:
- default: 2010-01-01T10:10:10.000111+01:00
- example: 2010-01-01T10:10:10.000111+01:00
- format: date-time
- type: string
- DeprecatedObject:
- deprecated: true
- properties:
name:
type: string
+ title: Pet Tag
type: object
- ObjectWithDeprecatedFields:
+ xml:
+ name: Tag
+ Pet:
+ description: A pet for sale in the pet store
+ example:
+ photoUrls:
+ - photoUrls
+ - photoUrls
+ name: doggie
+ id: 0
+ category:
+ name: name
+ id: 6
+ tags:
+ - name: name
+ id: 1
+ - name: name
+ id: 1
+ status: available
properties:
- uuid:
- type: string
id:
- deprecated: true
- type: number
- deprecatedRef:
- $ref: "#/components/schemas/DeprecatedObject"
- bars:
- deprecated: true
+ format: int64
+ type: integer
+ category:
+ $ref: "#/components/schemas/Category"
+ name:
+ example: doggie
+ type: string
+ photoUrls:
items:
- $ref: "#/components/schemas/Bar"
+ type: string
type: array
- type: object
- PolymorphicProperty:
- oneOf:
- - type: boolean
- - type: string
- - type: object
- - items:
- $ref: "#/components/schemas/StringArrayItem"
- type: array
- StringArrayItem:
- format: string
- type: string
- Activity:
- description: test map of maps
- properties:
- activity_outputs:
- additionalProperties:
- $ref: "#/components/schemas/ActivityOutputRepresentation"
- type: object
- type: object
- ActivityOutputRepresentation:
- items:
- $ref: "#/components/schemas/ActivityOutputElementRepresentation"
- type: array
- ActivityOutputElementRepresentation:
- properties:
- prop1:
- type: string
- prop2:
- type: object
- type: object
- NullableGuidClass:
- properties:
- uuid:
- example: 72f98069-206d-4f12-9f12-3d1e525a8e84
- format: uuid
- nullable: true
- type: string
- type: object
- DateOnlyClass:
- properties:
- dateOnlyProperty:
- example: 2017-07-21
- format: date
- type: string
- type: object
- TestCollectionEndingWithWordListObject:
- properties:
- TestCollectionEndingWithWordList:
+ xml:
+ name: photoUrl
+ wrapped: true
+ tags:
items:
- $ref: "#/components/schemas/TestCollectionEndingWithWordList"
+ $ref: "#/components/schemas/Tag"
type: array
- type: object
- TestCollectionEndingWithWordList:
- properties:
- value:
- type: string
- type: object
- LiteralStringClass:
- properties:
- escapedLiteralString:
- default: C:\\Users\\username
- type: string
- unescapedLiteralString:
- default: C:\Users\username
- type: string
- type: object
- OneOfString:
- oneOf:
- - pattern: ^a
- type: string
- - pattern: ^b
- type: string
- ZeroBasedEnum:
- enum:
- - unknown
- - notUnknown
- type: string
- ZeroBasedEnumClass:
- properties:
- ZeroBasedEnum:
+ xml:
+ name: tag
+ wrapped: true
+ status:
+ deprecated: true
+ description: pet status in the store
enum:
- - unknown
- - notUnknown
+ - available
+ - pending
+ - sold
type: string
- type: object
- Custom-Variableobject-Response:
- additionalProperties: true
- description: A Variable object without predefined property names
- type: object
- Field-pkiNotificationtestID:
- type: integer
- notificationtest-getElements-v1-Response-mPayload:
- example:
- a_objVariableobject:
- - null
- - null
- pkiNotificationtestID: 0
- properties:
- pkiNotificationtestID:
- type: integer
- a_objVariableobject:
- items:
- $ref: "#/components/schemas/Custom-Variableobject-Response"
- type: array
required:
- - a_objVariableobject
- - pkiNotificationtestID
+ - name
+ - photoUrls
+ title: a Pet
type: object
- MixedOneOf:
- example:
- content: MixedOneOf_content
- properties:
- content:
- $ref: "#/components/schemas/MixedOneOf_content"
- MixedAnyOf:
+ xml:
+ name: Pet
+ ApiResponse:
+ description: Describes the result of uploading an image resource
example:
- content: MixedAnyOf_content
- properties:
- content:
- $ref: "#/components/schemas/MixedAnyOf_content"
- MixedSubId:
+ code: 0
+ type: type
+ message: message
properties:
- id:
+ code:
+ format: int32
+ type: integer
+ type:
type: string
- _foo_get_default_response:
- example:
- string:
- bar: bar
- properties:
- string:
- $ref: "#/components/schemas/Foo"
+ message:
+ type: string
+ title: An uploaded response
type: object
updatePetWithForm_request:
properties:
@@ -2765,165 +796,6 @@ components:
format: binary
type: string
type: object
- testEnumParameters_request:
- properties:
- enum_form_string_array:
- description: Form parameter enum test (string array)
- items:
- default: $
- enum:
- - '>'
- - $
- type: string
- type: array
- enum_form_string:
- default: -efg
- description: Form parameter enum test (string)
- enum:
- - _abc
- - -efg
- - (xyz)
- type: string
- type: object
- testEndpointParameters_request:
- properties:
- integer:
- description: None
- maximum: 100
- minimum: 10
- type: integer
- int32:
- description: None
- format: int32
- maximum: 200
- minimum: 20
- type: integer
- int64:
- description: None
- format: int64
- type: integer
- number:
- description: None
- maximum: 543.2
- minimum: 32.1
- type: number
- float:
- description: None
- format: float
- maximum: 987.6
- type: number
- double:
- description: None
- format: double
- maximum: 123.4
- minimum: 67.8
- type: number
- string:
- description: None
- pattern: "/[a-z]/i"
- type: string
- pattern_without_delimiter:
- description: None
- pattern: "^[A-Z].*"
- type: string
- byte:
- description: None
- format: byte
- type: string
- binary:
- description: None
- format: binary
- type: string
- date:
- description: None
- format: date
- type: string
- dateTime:
- default: 2010-02-01T10:20:10.11111+01:00
- description: None
- example: 2020-02-02T20:20:20.22222Z
- format: date-time
- type: string
- password:
- description: None
- format: password
- maxLength: 64
- minLength: 10
- type: string
- callback:
- description: None
- type: string
- required:
- - byte
- - double
- - number
- - pattern_without_delimiter
- type: object
- testJsonFormData_request:
- properties:
- param:
- description: field1
- type: string
- param2:
- description: field2
- type: string
- required:
- - param
- - param2
- type: object
- testInlineFreeformAdditionalProperties_request:
- additionalProperties: true
- properties:
- someProperty:
- type: string
- type: object
- uploadFileWithRequiredFile_request:
- properties:
- additionalMetadata:
- description: Additional data to pass to server
- type: string
- requiredFile:
- description: file to upload
- format: binary
- type: string
- required:
- - requiredFile
- type: object
- getCountry_request:
- allOf:
- - properties:
- country:
- type: string
- required:
- - country
- type: object
- RolesReportsHash_role:
- example:
- name: name
- properties:
- name:
- type: string
- type: object
- MixedOneOf_content:
- description: Mixed oneOf types for testing
- oneOf:
- - type: string
- - type: boolean
- - format: uint8
- type: integer
- - format: float32
- type: number
- - $ref: "#/components/schemas/MixedSubId"
- MixedAnyOf_content:
- anyOf:
- - type: string
- - type: boolean
- - format: uint8
- type: integer
- - format: float32
- type: number
- - $ref: "#/components/schemas/MixedSubId"
- description: Mixed anyOf types for testing
securitySchemes:
petstore_auth:
flows:
@@ -2937,18 +809,4 @@ components:
in: header
name: api_key
type: apiKey
- api_key_query:
- in: query
- name: api_key_query
- type: apiKey
- http_basic_test:
- scheme: basic
- type: http
- bearer_test:
- bearerFormat: JWT
- scheme: bearer
- type: http
- http_signature_test:
- scheme: signature
- type: http
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/ApiResponse.md
index bb723d2baa13..50869c0d913e 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/ApiResponse.md
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/ApiResponse.md
@@ -1,4 +1,5 @@
# Org.OpenAPITools.Model.ApiResponse
+Describes the result of uploading an image resource
## Properties
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/Category.md b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/Category.md
index 032a1faeb3ff..64e7948bbc7c 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/Category.md
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/Category.md
@@ -1,11 +1,12 @@
# Org.OpenAPITools.Model.Category
+A category for a pet
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **long** | | [optional]
-**Name** | **string** | | [default to "default-name"]
+**Name** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/Order.md b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/Order.md
index 66c55c3b4737..c28989a0b8cf 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/Order.md
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/Order.md
@@ -1,4 +1,5 @@
# Org.OpenAPITools.Model.Order
+An order for a pets from the pet store
## Properties
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/Pet.md b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/Pet.md
index c7224764e2d4..914a070b2200 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/Pet.md
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/Pet.md
@@ -1,4 +1,5 @@
# Org.OpenAPITools.Model.Pet
+A pet for sale in the pet store
## Properties
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/PetApi.md b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/PetApi.md
index 417e0ab80207..ae0c9d116fbb 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/PetApi.md
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/PetApi.md
@@ -1,6 +1,6 @@
# Org.OpenAPITools.Api.PetApi
-All URIs are relative to *http://petstore.swagger.io:80/v2*
+All URIs are relative to *http://petstore.swagger.io/v2*
| Method | HTTP request | Description |
|--------|--------------|-------------|
@@ -12,11 +12,10 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**UpdatePet**](PetApi.md#updatepet) | **PUT** /pet | Update an existing pet |
| [**UpdatePetWithForm**](PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data |
| [**UploadFile**](PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image |
-| [**UploadFileWithRequiredFile**](PetApi.md#uploadfilewithrequiredfile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) |
# **AddPet**
-> void AddPet (Pet pet)
+> Pet AddPet (Pet pet)
Add a new pet to the store
@@ -35,7 +34,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
// Configure OAuth2 access token for authorization: petstore_auth
config.AccessToken = "YOUR_ACCESS_TOKEN";
@@ -45,7 +44,8 @@ namespace Example
try
{
// Add a new pet to the store
- apiInstance.AddPet(pet);
+ Pet result = apiInstance.AddPet(pet);
+ Debug.WriteLine(result);
}
catch (ApiException e)
{
@@ -65,7 +65,10 @@ This returns an ApiResponse object which contains the response data, status code
try
{
// Add a new pet to the store
- apiInstance.AddPetWithHttpInfo(pet);
+ ApiResponse response = apiInstance.AddPetWithHttpInfo(pet);
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
@@ -83,21 +86,22 @@ catch (ApiException e)
### Return type
-void (empty response body)
+[**Pet**](Pet.md)
### Authorization
-[petstore_auth](../README.md#petstore_auth), [http_signature_test](../README.md#http_signature_test)
+[petstore_auth](../README.md#petstore_auth)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- - **Accept**: Not defined
+ - **Accept**: application/xml, application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
+| **200** | successful operation | - |
| **405** | Invalid input | - |
[[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)
@@ -123,7 +127,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
// Configure OAuth2 access token for authorization: petstore_auth
config.AccessToken = "YOUR_ACCESS_TOKEN";
@@ -215,7 +219,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
// Configure OAuth2 access token for authorization: petstore_auth
config.AccessToken = "YOUR_ACCESS_TOKEN";
@@ -271,7 +275,7 @@ catch (ApiException e)
### Authorization
-[petstore_auth](../README.md#petstore_auth), [http_signature_test](../README.md#http_signature_test)
+[petstore_auth](../README.md#petstore_auth)
### HTTP request headers
@@ -310,7 +314,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
// Configure OAuth2 access token for authorization: petstore_auth
config.AccessToken = "YOUR_ACCESS_TOKEN";
@@ -366,7 +370,7 @@ catch (ApiException e)
### Authorization
-[petstore_auth](../README.md#petstore_auth), [http_signature_test](../README.md#http_signature_test)
+[petstore_auth](../README.md#petstore_auth)
### HTTP request headers
@@ -405,15 +409,11 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
// Configure API key authorization: api_key
config.AddApiKey("api_key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("api_key", "Bearer");
- // Configure API key authorization: api_key_query
- config.AddApiKey("api_key_query", "YOUR_API_KEY");
- // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
- // config.AddApiKeyPrefix("api_key_query", "Bearer");
var apiInstance = new PetApi(config);
var petId = 789L; // long | ID of pet to return
@@ -467,7 +467,7 @@ catch (ApiException e)
### Authorization
-[api_key](../README.md#api_key), [api_key_query](../README.md#api_key_query)
+[api_key](../README.md#api_key)
### HTTP request headers
@@ -486,7 +486,7 @@ catch (ApiException e)
# **UpdatePet**
-> void UpdatePet (Pet pet)
+> Pet UpdatePet (Pet pet)
Update an existing pet
@@ -505,7 +505,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
// Configure OAuth2 access token for authorization: petstore_auth
config.AccessToken = "YOUR_ACCESS_TOKEN";
@@ -515,7 +515,8 @@ namespace Example
try
{
// Update an existing pet
- apiInstance.UpdatePet(pet);
+ Pet result = apiInstance.UpdatePet(pet);
+ Debug.WriteLine(result);
}
catch (ApiException e)
{
@@ -535,7 +536,10 @@ This returns an ApiResponse object which contains the response data, status code
try
{
// Update an existing pet
- apiInstance.UpdatePetWithHttpInfo(pet);
+ ApiResponse response = apiInstance.UpdatePetWithHttpInfo(pet);
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
@@ -553,21 +557,22 @@ catch (ApiException e)
### Return type
-void (empty response body)
+[**Pet**](Pet.md)
### Authorization
-[petstore_auth](../README.md#petstore_auth), [http_signature_test](../README.md#http_signature_test)
+[petstore_auth](../README.md#petstore_auth)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- - **Accept**: Not defined
+ - **Accept**: application/xml, application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
+| **200** | successful operation | - |
| **400** | Invalid ID supplied | - |
| **404** | Pet not found | - |
| **405** | Validation exception | - |
@@ -595,7 +600,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
// Configure OAuth2 access token for authorization: petstore_auth
config.AccessToken = "YOUR_ACCESS_TOKEN";
@@ -687,7 +692,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
// Configure OAuth2 access token for authorization: petstore_auth
config.AccessToken = "YOUR_ACCESS_TOKEN";
@@ -762,99 +767,3 @@ catch (ApiException e)
[[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)
-
-# **UploadFileWithRequiredFile**
-> ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string? additionalMetadata = null)
-
-uploads an image (required)
-
-### Example
-```csharp
-using System.Collections.Generic;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class UploadFileWithRequiredFileExample
- {
- public static void Main()
- {
- Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
- // Configure OAuth2 access token for authorization: petstore_auth
- config.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi(config);
- var petId = 789L; // long | ID of pet to update
- var requiredFile = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | file to upload
- var additionalMetadata = "additionalMetadata_example"; // string? | Additional data to pass to server (optional)
-
- try
- {
- // uploads an image (required)
- ApiResponse result = apiInstance.UploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
- Debug.WriteLine(result);
- }
- catch (ApiException e)
- {
- Debug.Print("Exception when calling PetApi.UploadFileWithRequiredFile: " + e.Message);
- Debug.Print("Status Code: " + e.ErrorCode);
- Debug.Print(e.StackTrace);
- }
- }
- }
-}
-```
-
-#### Using the UploadFileWithRequiredFileWithHttpInfo variant
-This returns an ApiResponse object which contains the response data, status code and headers.
-
-```csharp
-try
-{
- // uploads an image (required)
- ApiResponse response = apiInstance.UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata);
- Debug.Write("Status Code: " + response.StatusCode);
- Debug.Write("Response Headers: " + response.Headers);
- Debug.Write("Response Body: " + response.Data);
-}
-catch (ApiException e)
-{
- Debug.Print("Exception when calling PetApi.UploadFileWithRequiredFileWithHttpInfo: " + e.Message);
- Debug.Print("Status Code: " + e.ErrorCode);
- Debug.Print(e.StackTrace);
-}
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------|------|-------------|-------|
-| **petId** | **long** | ID of pet to update | |
-| **requiredFile** | **System.IO.Stream****System.IO.Stream** | file to upload | |
-| **additionalMetadata** | **string?** | Additional data to pass to server | [optional] |
-
-### Return type
-
-[**ApiResponse**](ApiResponse.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | successful operation | - |
-
-[[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)
-
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/StoreApi.md b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/StoreApi.md
index 179da0ff637e..510ff903494c 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/StoreApi.md
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/StoreApi.md
@@ -1,12 +1,12 @@
# Org.OpenAPITools.Api.StoreApi
-All URIs are relative to *http://petstore.swagger.io:80/v2*
+All URIs are relative to *http://petstore.swagger.io/v2*
| Method | HTTP request | Description |
|--------|--------------|-------------|
-| [**DeleteOrder**](StoreApi.md#deleteorder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID |
+| [**DeleteOrder**](StoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID |
| [**GetInventory**](StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status |
-| [**GetOrderById**](StoreApi.md#getorderbyid) | **GET** /store/order/{order_id} | Find purchase order by ID |
+| [**GetOrderById**](StoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID |
| [**PlaceOrder**](StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet |
@@ -32,7 +32,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
var apiInstance = new StoreApi(config);
var orderId = "orderId_example"; // string | ID of the order that needs to be deleted
@@ -120,7 +120,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
// Configure API key authorization: api_key
config.AddApiKey("api_key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
@@ -211,7 +211,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
var apiInstance = new StoreApi(config);
var orderId = 789L; // long | ID of pet that needs to be fetched
@@ -302,7 +302,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
var apiInstance = new StoreApi(config);
var order = new Order(); // Order | order placed for purchasing the pet
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/Tag.md b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/Tag.md
index fdd22eb31fdd..14e602a9c11b 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/Tag.md
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/Tag.md
@@ -1,4 +1,5 @@
# Org.OpenAPITools.Model.Tag
+A tag for a pet
## Properties
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/User.md b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/User.md
index b0cd4dc042bf..c9ee356c8fc4 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/User.md
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/User.md
@@ -1,4 +1,5 @@
# Org.OpenAPITools.Model.User
+A User who is purchasing from the pet store
## Properties
@@ -12,10 +13,6 @@ Name | Type | Description | Notes
**Password** | **string** | | [optional]
**Phone** | **string** | | [optional]
**UserStatus** | **int** | User Status | [optional]
-**ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional]
-**ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional]
-**AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional]
-**AnyTypePropNullable** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/UserApi.md b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/UserApi.md
index 7b8439c45411..aebfd4cdc267 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/UserApi.md
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/docs/UserApi.md
@@ -1,6 +1,6 @@
# Org.OpenAPITools.Api.UserApi
-All URIs are relative to *http://petstore.swagger.io:80/v2*
+All URIs are relative to *http://petstore.swagger.io/v2*
| Method | HTTP request | Description |
|--------|--------------|-------------|
@@ -36,7 +36,12 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
+ // Configure API key authorization: api_key
+ config.AddApiKey("api_key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("api_key", "Bearer");
+
var apiInstance = new UserApi(config);
var user = new User(); // User | Created user object
@@ -85,7 +90,7 @@ void (empty response body)
### Authorization
-No authorization required
+[api_key](../README.md#api_key)
### HTTP request headers
@@ -121,7 +126,12 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
+ // Configure API key authorization: api_key
+ config.AddApiKey("api_key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("api_key", "Bearer");
+
var apiInstance = new UserApi(config);
var user = new List(); // List | List of user object
@@ -170,7 +180,7 @@ void (empty response body)
### Authorization
-No authorization required
+[api_key](../README.md#api_key)
### HTTP request headers
@@ -206,7 +216,12 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
+ // Configure API key authorization: api_key
+ config.AddApiKey("api_key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("api_key", "Bearer");
+
var apiInstance = new UserApi(config);
var user = new List(); // List | List of user object
@@ -255,7 +270,7 @@ void (empty response body)
### Authorization
-No authorization required
+[api_key](../README.md#api_key)
### HTTP request headers
@@ -293,7 +308,12 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
+ // Configure API key authorization: api_key
+ config.AddApiKey("api_key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("api_key", "Bearer");
+
var apiInstance = new UserApi(config);
var username = "username_example"; // string | The name that needs to be deleted
@@ -342,7 +362,7 @@ void (empty response body)
### Authorization
-No authorization required
+[api_key](../README.md#api_key)
### HTTP request headers
@@ -379,7 +399,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
var apiInstance = new UserApi(config);
var username = "username_example"; // string | The name that needs to be fetched. Use user1 for testing.
@@ -446,8 +466,6 @@ No authorization required
| **200** | successful operation | - |
| **400** | Invalid username supplied | - |
| **404** | User not found | - |
-| **598** | Not a real HTTP status code | - |
-| **599** | Not a real HTTP status code with a return object | - |
[[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)
@@ -472,7 +490,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
var apiInstance = new UserApi(config);
var username = "username_example"; // string | The user name for login
var password = "password_example"; // string | The password for login in clear text
@@ -564,7 +582,12 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
+ // Configure API key authorization: api_key
+ config.AddApiKey("api_key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("api_key", "Bearer");
+
var apiInstance = new UserApi(config);
try
@@ -608,7 +631,7 @@ void (empty response body)
### Authorization
-No authorization required
+[api_key](../README.md#api_key)
### HTTP request headers
@@ -646,7 +669,12 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io:80/v2";
+ config.BasePath = "http://petstore.swagger.io/v2";
+ // Configure API key authorization: api_key
+ config.AddApiKey("api_key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("api_key", "Bearer");
+
var apiInstance = new UserApi(config);
var username = "username_example"; // string | name that need to be deleted
var user = new User(); // User | Updated user object
@@ -697,7 +725,7 @@ void (empty response body)
### Authorization
-No authorization required
+[api_key](../README.md#api_key)
### HTTP request headers
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Api/PetApiTests.cs b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Api/PetApiTests.cs
index f4b42c5f70d0..6ff7c900eacb 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Api/PetApiTests.cs
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Api/PetApiTests.cs
@@ -1,7 +1,7 @@
/*
* OpenAPI Petstore
*
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
@@ -62,107 +62,8 @@ public void AddPetTest()
{
// TODO uncomment below to test the method and replace null with proper value
//Pet pet = null;
- //instance.AddPet(pet);
- }
-
- ///
- /// Test DeletePet
- ///
- [Fact]
- public void DeletePetTest()
- {
- // TODO uncomment below to test the method and replace null with proper value
- //long petId = null;
- //string? apiKey = null;
- //instance.DeletePet(petId, apiKey);
- }
-
- ///
- /// Test FindPetsByStatus
- ///
- [Fact]
- public void FindPetsByStatusTest()
- {
- // TODO uncomment below to test the method and replace null with proper value
- //List status = null;
- //var response = instance.FindPetsByStatus(status);
- //Assert.IsType>(response);
- }
-
- ///
- /// Test FindPetsByTags
- ///
- [Fact]
- public void FindPetsByTagsTest()
- {
- // TODO uncomment below to test the method and replace null with proper value
- //List tags = null;
- //var response = instance.FindPetsByTags(tags);
- //Assert.IsType>(response);
- }
-
- ///
- /// Test GetPetById
- ///
- [Fact]
- public void GetPetByIdTest()
- {
- // TODO uncomment below to test the method and replace null with proper value
- //long petId = null;
- //var response = instance.GetPetById(petId);
+ //var response = instance.AddPet(pet);
//Assert.IsType(response);
}
-
- ///
- /// Test UpdatePet
- ///
- [Fact]
- public void UpdatePetTest()
- {
- // TODO uncomment below to test the method and replace null with proper value
- //Pet pet = null;
- //instance.UpdatePet(pet);
- }
-
- ///
- /// Test UpdatePetWithForm
- ///
- [Fact]
- public void UpdatePetWithFormTest()
- {
- // TODO uncomment below to test the method and replace null with proper value
- //long petId = null;
- //string? name = null;
- //string? status = null;
- //instance.UpdatePetWithForm(petId, name, status);
- }
-
- ///
- /// Test UploadFile
- ///
- [Fact]
- public void UploadFileTest()
- {
- // TODO uncomment below to test the method and replace null with proper value
- //long petId = null;
- //string? additionalMetadata = null;
- //System.IO.Stream? file = null;
- //var response = instance.UploadFile(petId, additionalMetadata, file);
- //Assert.IsType(response);
- }
-
- ///
- /// Test UploadFileWithRequiredFile
- ///
- [Fact]
- public void UploadFileWithRequiredFileTest()
- {
- // TODO uncomment below to test the method and replace null with proper value
- //long petId = null;
- //System.IO.Stream requiredFile = null;
- //string? additionalMetadata = null;
- //var response = instance.UploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
- //Assert.IsType(response);
- }
}
}
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs
index 48e9f32748db..6c99ad951340 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs
@@ -1,7 +1,7 @@
/*
* OpenAPI Petstore
*
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Api/UserApiTests.cs b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Api/UserApiTests.cs
index 792db5819a03..3f38396769e3 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Api/UserApiTests.cs
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Api/UserApiTests.cs
@@ -1,7 +1,7 @@
/*
* OpenAPI Petstore
*
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs
index 901c6a02965e..eb9eb82931e1 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs
@@ -1,7 +1,7 @@
/*
* OpenAPI Petstore
*
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/CategoryTests.cs b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/CategoryTests.cs
index d1ef61862440..8c6fc5d10db7 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/CategoryTests.cs
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/CategoryTests.cs
@@ -1,7 +1,7 @@
/*
* OpenAPI Petstore
*
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/OrderTests.cs b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/OrderTests.cs
index 84d2828b367f..bf9fbd58b354 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/OrderTests.cs
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/OrderTests.cs
@@ -1,7 +1,7 @@
/*
* OpenAPI Petstore
*
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/PetTests.cs b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/PetTests.cs
index 535ab69d2aa2..1b7f6c023496 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/PetTests.cs
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/PetTests.cs
@@ -1,7 +1,7 @@
/*
* OpenAPI Petstore
*
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/TagTests.cs b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/TagTests.cs
index 8f9ad604eab9..c994710b0e50 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/TagTests.cs
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/TagTests.cs
@@ -1,7 +1,7 @@
/*
* OpenAPI Petstore
*
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/UserTests.cs b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/UserTests.cs
index bc3cb3775de1..427b254ebe28 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/UserTests.cs
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools.Test/Model/UserTests.cs
@@ -1,7 +1,7 @@
/*
* OpenAPI Petstore
*
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
@@ -125,41 +125,5 @@ public void UserStatusTest()
{
// TODO unit test for the property 'UserStatus'
}
-
- ///
- /// Test the property 'ObjectWithNoDeclaredProps'
- ///
- [Fact]
- public void ObjectWithNoDeclaredPropsTest()
- {
- // TODO unit test for the property 'ObjectWithNoDeclaredProps'
- }
-
- ///
- /// Test the property 'ObjectWithNoDeclaredPropsNullable'
- ///
- [Fact]
- public void ObjectWithNoDeclaredPropsNullableTest()
- {
- // TODO unit test for the property 'ObjectWithNoDeclaredPropsNullable'
- }
-
- ///
- /// Test the property 'AnyTypeProp'
- ///
- [Fact]
- public void AnyTypePropTest()
- {
- // TODO unit test for the property 'AnyTypeProp'
- }
-
- ///
- /// Test the property 'AnyTypePropNullable'
- ///
- [Fact]
- public void AnyTypePropNullableTest()
- {
- // TODO unit test for the property 'AnyTypePropNullable'
- }
}
}
diff --git a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools/Api/PetApi.cs
index 33406b05254c..d89a7cc9fc53 100644
--- a/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools/Api/PetApi.cs
+++ b/samples/client/petstore/csharp/restsharp/net10/EnumMappings/src/Org.OpenAPITools/Api/PetApi.cs
@@ -1,7 +1,7 @@
/*
* OpenAPI Petstore
*
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
@@ -33,8 +33,8 @@ public interface IPetApiSync : IApiAccessor
/// Thrown when fails to make API call
/// Pet object that needs to be added to the store
/// Index associated with the operation.
- ///
- void AddPet(Pet pet, int operationIndex = 0);
+ /// Pet
+ Pet AddPet(Pet pet, int operationIndex = 0);
///
/// Add a new pet to the store
@@ -45,8 +45,8 @@ public interface IPetApiSync : IApiAccessor
/// Thrown when fails to make API call
/// Pet object that needs to be added to the store
/// Index associated with the operation.
- /// ApiResponse of Object(void)
- ApiResponse