forked from loafle/openapi-generator-original
switch to another spec with more oneOf def (#7470)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# for .net standard
|
||||
generatorName: csharp-netcore
|
||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient
|
||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
||||
additionalProperties:
|
||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||
|
||||
@@ -6,26 +6,41 @@ 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/CatAllOf.md
|
||||
docs/Category.md
|
||||
docs/ChildCat.md
|
||||
docs/ChildCatAllOf.md
|
||||
docs/ClassModel.md
|
||||
docs/ComplexQuadrilateral.md
|
||||
docs/DanishPig.md
|
||||
docs/DefaultApi.md
|
||||
docs/Dog.md
|
||||
docs/DogAllOf.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/FormatTest.md
|
||||
docs/Fruit.md
|
||||
docs/FruitReq.md
|
||||
docs/GmFruit.md
|
||||
docs/GrandparentAnimal.md
|
||||
docs/HasOnlyReadOnly.md
|
||||
docs/HealthCheckResult.md
|
||||
docs/InlineObject.md
|
||||
@@ -35,13 +50,16 @@ docs/InlineObject3.md
|
||||
docs/InlineObject4.md
|
||||
docs/InlineObject5.md
|
||||
docs/InlineResponseDefault.md
|
||||
docs/IsoscelesTriangle.md
|
||||
docs/List.md
|
||||
docs/Mammal.md
|
||||
docs/MapTest.md
|
||||
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||
docs/Model200Response.md
|
||||
docs/ModelClient.md
|
||||
docs/Name.md
|
||||
docs/NullableClass.md
|
||||
docs/NullableShape.md
|
||||
docs/NumberOnly.md
|
||||
docs/Order.md
|
||||
docs/OuterComposite.md
|
||||
@@ -49,16 +67,60 @@ docs/OuterEnum.md
|
||||
docs/OuterEnumDefaultValue.md
|
||||
docs/OuterEnumInteger.md
|
||||
docs/OuterEnumIntegerDefaultValue.md
|
||||
docs/ParentPet.md
|
||||
docs/Pet.md
|
||||
docs/PetApi.md
|
||||
docs/Pig.md
|
||||
docs/Quadrilateral.md
|
||||
docs/QuadrilateralInterface.md
|
||||
docs/ReadOnlyFirst.md
|
||||
docs/Return.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/Triangle.md
|
||||
docs/TriangleInterface.md
|
||||
docs/User.md
|
||||
docs/UserApi.md
|
||||
docs/Whale.md
|
||||
docs/Zebra.md
|
||||
git_push.sh
|
||||
src/Org.OpenAPITools.Test/Model/AppleReqTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/AppleTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/BananaReqTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/BananaTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/BasquePigTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/ChildCatAllOfTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/ChildCatTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/DanishPigTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/DrawingTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/FruitReqTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/FruitTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/GmFruitTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/MammalTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/ParentPetTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/PigTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/ShapeTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/TriangleTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/WhaleTests.cs
|
||||
src/Org.OpenAPITools.Test/Model/ZebraTests.cs
|
||||
src/Org.OpenAPITools/Api/AnotherFakeApi.cs
|
||||
src/Org.OpenAPITools/Api/DefaultApi.cs
|
||||
src/Org.OpenAPITools/Api/FakeApi.cs
|
||||
@@ -86,23 +148,38 @@ src/Org.OpenAPITools/Client/RetryConfiguration.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/CatAllOf.cs
|
||||
src/Org.OpenAPITools/Model/Category.cs
|
||||
src/Org.OpenAPITools/Model/ChildCat.cs
|
||||
src/Org.OpenAPITools/Model/ChildCatAllOf.cs
|
||||
src/Org.OpenAPITools/Model/ClassModel.cs
|
||||
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
|
||||
src/Org.OpenAPITools/Model/DanishPig.cs
|
||||
src/Org.OpenAPITools/Model/Dog.cs
|
||||
src/Org.OpenAPITools/Model/DogAllOf.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/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/InlineObject.cs
|
||||
@@ -112,13 +189,16 @@ src/Org.OpenAPITools/Model/InlineObject3.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject4.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject5.cs
|
||||
src/Org.OpenAPITools/Model/InlineResponseDefault.cs
|
||||
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
||||
src/Org.OpenAPITools/Model/List.cs
|
||||
src/Org.OpenAPITools/Model/Mammal.cs
|
||||
src/Org.OpenAPITools/Model/MapTest.cs
|
||||
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
||||
src/Org.OpenAPITools/Model/Model200Response.cs
|
||||
src/Org.OpenAPITools/Model/ModelClient.cs
|
||||
src/Org.OpenAPITools/Model/Name.cs
|
||||
src/Org.OpenAPITools/Model/NullableClass.cs
|
||||
src/Org.OpenAPITools/Model/NullableShape.cs
|
||||
src/Org.OpenAPITools/Model/NumberOnly.cs
|
||||
src/Org.OpenAPITools/Model/Order.cs
|
||||
src/Org.OpenAPITools/Model/OuterComposite.cs
|
||||
@@ -126,10 +206,23 @@ 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/ParentPet.cs
|
||||
src/Org.OpenAPITools/Model/Pet.cs
|
||||
src/Org.OpenAPITools/Model/Pig.cs
|
||||
src/Org.OpenAPITools/Model/Quadrilateral.cs
|
||||
src/Org.OpenAPITools/Model/QuadrilateralInterface.cs
|
||||
src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
|
||||
src/Org.OpenAPITools/Model/Return.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/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/Org.OpenAPITools.csproj
|
||||
|
||||
@@ -94,11 +94,11 @@ 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 |
|
||||
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
|
||||
*FakeApi* | [**FakeHttpSignatureTest**](docs/FakeApi.md#fakehttpsignaturetest) | **GET** /fake/http-signature-test | test http signature authentication
|
||||
*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* | [**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
|
||||
@@ -138,23 +138,38 @@ Class | Method | HTTP request | Description
|
||||
- [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.CatAllOf](docs/CatAllOf.md)
|
||||
- [Model.Category](docs/Category.md)
|
||||
- [Model.ChildCat](docs/ChildCat.md)
|
||||
- [Model.ChildCatAllOf](docs/ChildCatAllOf.md)
|
||||
- [Model.ClassModel](docs/ClassModel.md)
|
||||
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
|
||||
- [Model.DanishPig](docs/DanishPig.md)
|
||||
- [Model.Dog](docs/Dog.md)
|
||||
- [Model.DogAllOf](docs/DogAllOf.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.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.InlineObject](docs/InlineObject.md)
|
||||
@@ -164,13 +179,16 @@ Class | Method | HTTP request | Description
|
||||
- [Model.InlineObject4](docs/InlineObject4.md)
|
||||
- [Model.InlineObject5](docs/InlineObject5.md)
|
||||
- [Model.InlineResponseDefault](docs/InlineResponseDefault.md)
|
||||
- [Model.IsoscelesTriangle](docs/IsoscelesTriangle.md)
|
||||
- [Model.List](docs/List.md)
|
||||
- [Model.Mammal](docs/Mammal.md)
|
||||
- [Model.MapTest](docs/MapTest.md)
|
||||
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
- [Model.Model200Response](docs/Model200Response.md)
|
||||
- [Model.ModelClient](docs/ModelClient.md)
|
||||
- [Model.Name](docs/Name.md)
|
||||
- [Model.NullableClass](docs/NullableClass.md)
|
||||
- [Model.NullableShape](docs/NullableShape.md)
|
||||
- [Model.NumberOnly](docs/NumberOnly.md)
|
||||
- [Model.Order](docs/Order.md)
|
||||
- [Model.OuterComposite](docs/OuterComposite.md)
|
||||
@@ -178,12 +196,25 @@ Class | Method | HTTP request | Description
|
||||
- [Model.OuterEnumDefaultValue](docs/OuterEnumDefaultValue.md)
|
||||
- [Model.OuterEnumInteger](docs/OuterEnumInteger.md)
|
||||
- [Model.OuterEnumIntegerDefaultValue](docs/OuterEnumIntegerDefaultValue.md)
|
||||
- [Model.ParentPet](docs/ParentPet.md)
|
||||
- [Model.Pet](docs/Pet.md)
|
||||
- [Model.Pig](docs/Pig.md)
|
||||
- [Model.Quadrilateral](docs/Quadrilateral.md)
|
||||
- [Model.QuadrilateralInterface](docs/QuadrilateralInterface.md)
|
||||
- [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||
- [Model.Return](docs/Return.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.Triangle](docs/Triangle.md)
|
||||
- [Model.TriangleInterface](docs/TriangleInterface.md)
|
||||
- [Model.User](docs/User.md)
|
||||
- [Model.Whale](docs/Whale.md)
|
||||
- [Model.Zebra](docs/Zebra.md)
|
||||
|
||||
|
||||
<a name="documentation-for-authorization"></a>
|
||||
|
||||
@@ -5,6 +5,12 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**MapProperty** | **Dictionary<string, string>** | | [optional]
|
||||
**MapOfMapProperty** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
|
||||
**Anytype1** | **Object** | | [optional]
|
||||
**MapWithUndeclaredPropertiesAnytype1** | **Object** | | [optional]
|
||||
**MapWithUndeclaredPropertiesAnytype2** | **Object** | | [optional]
|
||||
**MapWithUndeclaredPropertiesAnytype3** | **Dictionary<string, Object>** | | [optional]
|
||||
**EmptyMap** | **Object** | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional]
|
||||
**MapWithUndeclaredPropertiesString** | **Dictionary<string, 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)
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.Apple
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Cultivar** | **string** | | [optional]
|
||||
**Origin** | **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)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.AppleReq
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Cultivar** | **string** | |
|
||||
**Mealy** | **bool** | | [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)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Org.OpenAPITools.Model.Banana
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**LengthCm** | **decimal** | | [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)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.BananaReq
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**LengthCm** | **decimal** | |
|
||||
**Sweet** | **bool** | | [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)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Org.OpenAPITools.Model.BasquePig
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ClassName** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.ChildCat
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Name** | **string** | | [optional]
|
||||
**PetType** | **string** | | [default to PetTypeEnum.ChildCat]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.ChildCatAllOf
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Name** | **string** | | [optional]
|
||||
**PetType** | **string** | | [optional] [default to PetTypeEnum.ChildCat]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.ComplexQuadrilateral
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ShapeType** | **string** | |
|
||||
**QuadrilateralType** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Org.OpenAPITools.Model.DanishPig
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ClassName** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# Org.OpenAPITools.Model.Drawing
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**MainShape** | [**Shape**](Shape.md) | | [optional]
|
||||
**ShapeOrNull** | [**ShapeOrNull**](ShapeOrNull.md) | | [optional]
|
||||
**NullableShape** | [**NullableShape**](NullableShape.md) | | [optional]
|
||||
**Shapes** | [**List<Shape>**](Shape.md) | | [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)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.EquilateralTriangle
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ShapeType** | **string** | |
|
||||
**TriangleType** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -5,11 +5,11 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**FakeHealthGet**](FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
|
||||
[**FakeHttpSignatureTest**](FakeApi.md#fakehttpsignaturetest) | **GET** /fake/http-signature-test | test http signature authentication
|
||||
[**FakeOuterBooleanSerialize**](FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
||||
[**FakeOuterCompositeSerialize**](FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
||||
[**FakeOuterNumberSerialize**](FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
||||
[**FakeOuterStringSerialize**](FakeApi.md#fakeouterstringserialize) | **POST** /fake/outer/string |
|
||||
[**GetArrayOfEnums**](FakeApi.md#getarrayofenums) | **GET** /fake/array-of-enums | Array of Enums
|
||||
[**TestBodyWithFileSchema**](FakeApi.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
|
||||
[**TestBodyWithQueryParams**](FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
|
||||
[**TestClientModel**](FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
|
||||
@@ -85,78 +85,6 @@ No authorization required
|
||||
|
||||
[[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)
|
||||
|
||||
<a name="fakehttpsignaturetest"></a>
|
||||
# **FakeHttpSignatureTest**
|
||||
> void FakeHttpSignatureTest (Pet pet, string query1 = null, string header1 = null)
|
||||
|
||||
test http signature authentication
|
||||
|
||||
### 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 FakeHttpSignatureTestExample
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
|
||||
var apiInstance = new FakeApi(config);
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var query1 = query1_example; // string | query parameter (optional)
|
||||
var header1 = header1_example; // string | header parameter (optional)
|
||||
|
||||
try
|
||||
{
|
||||
// test http signature authentication
|
||||
apiInstance.FakeHttpSignatureTest(pet, query1, header1);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.FakeHttpSignatureTest: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
**query1** | **string**| query parameter | [optional]
|
||||
**header1** | **string**| header parameter | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[http_signature_test](../README.md#http_signature_test)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, application/xml
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | The instance started successfully | - |
|
||||
|
||||
[[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)
|
||||
|
||||
<a name="fakeouterbooleanserialize"></a>
|
||||
# **FakeOuterBooleanSerialize**
|
||||
> bool FakeOuterBooleanSerialize (bool? body = null)
|
||||
@@ -433,6 +361,70 @@ No authorization required
|
||||
|
||||
[[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)
|
||||
|
||||
<a name="getarrayofenums"></a>
|
||||
# **GetArrayOfEnums**
|
||||
> List<OuterEnum> GetArrayOfEnums ()
|
||||
|
||||
Array of Enums
|
||||
|
||||
### 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 GetArrayOfEnumsExample
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(config);
|
||||
|
||||
try
|
||||
{
|
||||
// Array of Enums
|
||||
List<OuterEnum> result = apiInstance.GetArrayOfEnums();
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.GetArrayOfEnums: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
[**List<OuterEnum>**](OuterEnum.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Got named array of enums | - |
|
||||
|
||||
[[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)
|
||||
|
||||
<a name="testbodywithfileschema"></a>
|
||||
# **TestBodyWithFileSchema**
|
||||
> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
|
||||
@@ -679,7 +671,7 @@ namespace Example
|
||||
var _string = _string_example; // string | None (optional)
|
||||
var binary = BINARY_DATA_HERE; // System.IO.Stream | None (optional)
|
||||
var date = 2013-10-20; // DateTime? | None (optional)
|
||||
var dateTime = 2013-10-20T19:20:30+01:00; // DateTime? | None (optional)
|
||||
var dateTime = 2013-10-20T19:20:30+01:00; // DateTime? | None (optional) (default to "2010-02-01T10:20:10.111110+01:00")
|
||||
var password = password_example; // string | None (optional)
|
||||
var callback = callback_example; // string | None (optional)
|
||||
|
||||
@@ -714,7 +706,7 @@ Name | Type | Description | Notes
|
||||
**_string** | **string**| None | [optional]
|
||||
**binary** | **System.IO.Stream****System.IO.Stream**| None | [optional]
|
||||
**date** | **DateTime?**| None | [optional]
|
||||
**dateTime** | **DateTime?**| None | [optional]
|
||||
**dateTime** | **DateTime?**| None | [optional] [default to "2010-02-01T10:20:10.111110+01:00"]
|
||||
**password** | **string**| None | [optional]
|
||||
**callback** | **string**| None | [optional]
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# Org.OpenAPITools.Model.Fruit
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Color** | **string** | | [optional]
|
||||
**Cultivar** | **string** | | [optional]
|
||||
**Origin** | **string** | | [optional]
|
||||
**LengthCm** | **decimal** | | [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)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# Org.OpenAPITools.Model.FruitReq
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Cultivar** | **string** | |
|
||||
**Mealy** | **bool** | | [optional]
|
||||
**LengthCm** | **decimal** | |
|
||||
**Sweet** | **bool** | | [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)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# Org.OpenAPITools.Model.GmFruit
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Color** | **string** | | [optional]
|
||||
**Cultivar** | **string** | | [optional]
|
||||
**Origin** | **string** | | [optional]
|
||||
**LengthCm** | **decimal** | | [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)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Org.OpenAPITools.Model.GrandparentAnimal
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**PetType** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
|
||||
**Byte** | **byte[]** | None |
|
||||
**Binary** | **System.IO.Stream** | None | [optional]
|
||||
**Date** | **DateTime** | None | [optional]
|
||||
**DateTime** | **DateTime** | None | [optional]
|
||||
**DateTime** | **DateTime** | None | [optional] [default to "2010-02-01T10:20:10.111110+01:00"]
|
||||
**Password** | **string** | None | [optional]
|
||||
**Callback** | **string** | None | [optional]
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.IsoscelesTriangle
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ShapeType** | **string** | |
|
||||
**TriangleType** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# Org.OpenAPITools.Model.Mammal
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**HasBaleen** | **bool** | | [optional]
|
||||
**HasTeeth** | **bool** | | [optional]
|
||||
**ClassName** | **string** | |
|
||||
**Type** | **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)
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# Org.OpenAPITools.Model.NullableShape
|
||||
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.
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ShapeType** | **string** | |
|
||||
**QuadrilateralType** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Org.OpenAPITools.Model.ParentPet
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**PetType** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -71,7 +71,7 @@ void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[petstore_auth](../README.md#petstore_auth)
|
||||
[http_signature_test](../README.md#http_signature_test), [petstore_auth](../README.md#petstore_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
@@ -216,7 +216,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Authorization
|
||||
|
||||
[petstore_auth](../README.md#petstore_auth)
|
||||
[http_signature_test](../README.md#http_signature_test), [petstore_auth](../README.md#petstore_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
@@ -290,7 +290,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Authorization
|
||||
|
||||
[petstore_auth](../README.md#petstore_auth)
|
||||
[http_signature_test](../README.md#http_signature_test), [petstore_auth](../README.md#petstore_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
@@ -438,7 +438,7 @@ void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[petstore_auth](../README.md#petstore_auth)
|
||||
[http_signature_test](../README.md#http_signature_test), [petstore_auth](../README.md#petstore_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Org.OpenAPITools.Model.Pig
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ClassName** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.Quadrilateral
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ShapeType** | **string** | |
|
||||
**QuadrilateralType** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Org.OpenAPITools.Model.QuadrilateralInterface
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**QuadrilateralType** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.ScaleneTriangle
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ShapeType** | **string** | |
|
||||
**TriangleType** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.Shape
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ShapeType** | **string** | |
|
||||
**QuadrilateralType** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Org.OpenAPITools.Model.ShapeInterface
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ShapeType** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# Org.OpenAPITools.Model.ShapeOrNull
|
||||
The value may be a shape or the 'null' value. This is introduced in OAS schema >= 3.1.
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ShapeType** | **string** | |
|
||||
**QuadrilateralType** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.SimpleQuadrilateral
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ShapeType** | **string** | |
|
||||
**QuadrilateralType** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.Triangle
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ShapeType** | **string** | |
|
||||
**TriangleType** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Org.OpenAPITools.Model.TriangleInterface
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**TriangleType** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -11,6 +11,10 @@ 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)
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# Org.OpenAPITools.Model.Whale
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**HasBaleen** | **bool** | | [optional]
|
||||
**HasTeeth** | **bool** | | [optional]
|
||||
**ClassName** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.Zebra
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Type** | **string** | | [optional]
|
||||
**ClassName** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing AppleReq
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class AppleReqTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for AppleReq
|
||||
//private AppleReq instance;
|
||||
|
||||
public AppleReqTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of AppleReq
|
||||
//instance = new AppleReq();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of AppleReq
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void AppleReqInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" AppleReq
|
||||
//Assert.IsInstanceOfType<AppleReq> (instance, "variable 'instance' is a AppleReq");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Cultivar'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void CultivarTest()
|
||||
{
|
||||
// TODO unit test for the property 'Cultivar'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Mealy'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void MealyTest()
|
||||
{
|
||||
// TODO unit test for the property 'Mealy'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing Apple
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class AppleTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for Apple
|
||||
//private Apple instance;
|
||||
|
||||
public AppleTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of Apple
|
||||
//instance = new Apple();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of Apple
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void AppleInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" Apple
|
||||
//Assert.IsInstanceOfType<Apple> (instance, "variable 'instance' is a Apple");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Cultivar'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void CultivarTest()
|
||||
{
|
||||
// TODO unit test for the property 'Cultivar'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Origin'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void OriginTest()
|
||||
{
|
||||
// TODO unit test for the property 'Origin'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing BananaReq
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class BananaReqTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for BananaReq
|
||||
//private BananaReq instance;
|
||||
|
||||
public BananaReqTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of BananaReq
|
||||
//instance = new BananaReq();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of BananaReq
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void BananaReqInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" BananaReq
|
||||
//Assert.IsInstanceOfType<BananaReq> (instance, "variable 'instance' is a BananaReq");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'LengthCm'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void LengthCmTest()
|
||||
{
|
||||
// TODO unit test for the property 'LengthCm'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Sweet'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void SweetTest()
|
||||
{
|
||||
// TODO unit test for the property 'Sweet'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing Banana
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class BananaTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for Banana
|
||||
//private Banana instance;
|
||||
|
||||
public BananaTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of Banana
|
||||
//instance = new Banana();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of Banana
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void BananaInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" Banana
|
||||
//Assert.IsInstanceOfType<Banana> (instance, "variable 'instance' is a Banana");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'LengthCm'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void LengthCmTest()
|
||||
{
|
||||
// TODO unit test for the property 'LengthCm'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing BasquePig
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class BasquePigTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for BasquePig
|
||||
//private BasquePig instance;
|
||||
|
||||
public BasquePigTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of BasquePig
|
||||
//instance = new BasquePig();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of BasquePig
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void BasquePigInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" BasquePig
|
||||
//Assert.IsInstanceOfType<BasquePig> (instance, "variable 'instance' is a BasquePig");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ClassName'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ClassNameTest()
|
||||
{
|
||||
// TODO unit test for the property 'ClassName'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing ChildCatAllOf
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class ChildCatAllOfTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for ChildCatAllOf
|
||||
//private ChildCatAllOf instance;
|
||||
|
||||
public ChildCatAllOfTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of ChildCatAllOf
|
||||
//instance = new ChildCatAllOf();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of ChildCatAllOf
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ChildCatAllOfInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" ChildCatAllOf
|
||||
//Assert.IsInstanceOfType<ChildCatAllOf> (instance, "variable 'instance' is a ChildCatAllOf");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Name'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NameTest()
|
||||
{
|
||||
// TODO unit test for the property 'Name'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'PetType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void PetTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'PetType'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing ChildCat
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class ChildCatTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for ChildCat
|
||||
//private ChildCat instance;
|
||||
|
||||
public ChildCatTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of ChildCat
|
||||
//instance = new ChildCat();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of ChildCat
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ChildCatInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" ChildCat
|
||||
//Assert.IsInstanceOfType<ChildCat> (instance, "variable 'instance' is a ChildCat");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Name'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NameTest()
|
||||
{
|
||||
// TODO unit test for the property 'Name'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'PetType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void PetTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'PetType'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing ComplexQuadrilateral
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class ComplexQuadrilateralTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for ComplexQuadrilateral
|
||||
//private ComplexQuadrilateral instance;
|
||||
|
||||
public ComplexQuadrilateralTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of ComplexQuadrilateral
|
||||
//instance = new ComplexQuadrilateral();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of ComplexQuadrilateral
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ComplexQuadrilateralInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" ComplexQuadrilateral
|
||||
//Assert.IsInstanceOfType<ComplexQuadrilateral> (instance, "variable 'instance' is a ComplexQuadrilateral");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ShapeTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'ShapeType'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'QuadrilateralType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void QuadrilateralTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'QuadrilateralType'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing DanishPig
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class DanishPigTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for DanishPig
|
||||
//private DanishPig instance;
|
||||
|
||||
public DanishPigTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of DanishPig
|
||||
//instance = new DanishPig();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of DanishPig
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void DanishPigInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" DanishPig
|
||||
//Assert.IsInstanceOfType<DanishPig> (instance, "variable 'instance' is a DanishPig");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ClassName'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ClassNameTest()
|
||||
{
|
||||
// TODO unit test for the property 'ClassName'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing Drawing
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class DrawingTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for Drawing
|
||||
//private Drawing instance;
|
||||
|
||||
public DrawingTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of Drawing
|
||||
//instance = new Drawing();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of Drawing
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void DrawingInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" Drawing
|
||||
//Assert.IsInstanceOfType<Drawing> (instance, "variable 'instance' is a Drawing");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'MainShape'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void MainShapeTest()
|
||||
{
|
||||
// TODO unit test for the property 'MainShape'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeOrNull'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ShapeOrNullTest()
|
||||
{
|
||||
// TODO unit test for the property 'ShapeOrNull'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'NullableShape'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NullableShapeTest()
|
||||
{
|
||||
// TODO unit test for the property 'NullableShape'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Shapes'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ShapesTest()
|
||||
{
|
||||
// TODO unit test for the property 'Shapes'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing EquilateralTriangle
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class EquilateralTriangleTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for EquilateralTriangle
|
||||
//private EquilateralTriangle instance;
|
||||
|
||||
public EquilateralTriangleTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of EquilateralTriangle
|
||||
//instance = new EquilateralTriangle();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of EquilateralTriangle
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void EquilateralTriangleInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" EquilateralTriangle
|
||||
//Assert.IsInstanceOfType<EquilateralTriangle> (instance, "variable 'instance' is a EquilateralTriangle");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ShapeTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'ShapeType'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'TriangleType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TriangleTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'TriangleType'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing FruitReq
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class FruitReqTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for FruitReq
|
||||
//private FruitReq instance;
|
||||
|
||||
public FruitReqTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of FruitReq
|
||||
//instance = new FruitReq();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of FruitReq
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void FruitReqInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" FruitReq
|
||||
//Assert.IsInstanceOfType<FruitReq> (instance, "variable 'instance' is a FruitReq");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Cultivar'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void CultivarTest()
|
||||
{
|
||||
// TODO unit test for the property 'Cultivar'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Mealy'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void MealyTest()
|
||||
{
|
||||
// TODO unit test for the property 'Mealy'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'LengthCm'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void LengthCmTest()
|
||||
{
|
||||
// TODO unit test for the property 'LengthCm'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Sweet'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void SweetTest()
|
||||
{
|
||||
// TODO unit test for the property 'Sweet'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing Fruit
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class FruitTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for Fruit
|
||||
//private Fruit instance;
|
||||
|
||||
public FruitTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of Fruit
|
||||
//instance = new Fruit();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of Fruit
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void FruitInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" Fruit
|
||||
//Assert.IsInstanceOfType<Fruit> (instance, "variable 'instance' is a Fruit");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Color'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ColorTest()
|
||||
{
|
||||
// TODO unit test for the property 'Color'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Cultivar'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void CultivarTest()
|
||||
{
|
||||
// TODO unit test for the property 'Cultivar'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Origin'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void OriginTest()
|
||||
{
|
||||
// TODO unit test for the property 'Origin'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'LengthCm'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void LengthCmTest()
|
||||
{
|
||||
// TODO unit test for the property 'LengthCm'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing GmFruit
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class GmFruitTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for GmFruit
|
||||
//private GmFruit instance;
|
||||
|
||||
public GmFruitTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of GmFruit
|
||||
//instance = new GmFruit();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of GmFruit
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void GmFruitInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" GmFruit
|
||||
//Assert.IsInstanceOfType<GmFruit> (instance, "variable 'instance' is a GmFruit");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Color'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ColorTest()
|
||||
{
|
||||
// TODO unit test for the property 'Color'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Cultivar'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void CultivarTest()
|
||||
{
|
||||
// TODO unit test for the property 'Cultivar'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Origin'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void OriginTest()
|
||||
{
|
||||
// TODO unit test for the property 'Origin'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'LengthCm'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void LengthCmTest()
|
||||
{
|
||||
// TODO unit test for the property 'LengthCm'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing GrandparentAnimal
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class GrandparentAnimalTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for GrandparentAnimal
|
||||
//private GrandparentAnimal instance;
|
||||
|
||||
public GrandparentAnimalTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of GrandparentAnimal
|
||||
//instance = new GrandparentAnimal();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of GrandparentAnimal
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void GrandparentAnimalInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" GrandparentAnimal
|
||||
//Assert.IsInstanceOfType<GrandparentAnimal> (instance, "variable 'instance' is a GrandparentAnimal");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test deserialize a ParentPet from type GrandparentAnimal
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ParentPetDeserializeFromGrandparentAnimalTest()
|
||||
{
|
||||
// TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal
|
||||
//Assert.IsInstanceOf<GrandparentAnimal>(JsonConvert.DeserializeObject<GrandparentAnimal>(new ParentPet().ToJson()));
|
||||
}
|
||||
/// <summary>
|
||||
/// Test deserialize a ChildCat from type ParentPet
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ChildCatDeserializeFromParentPetTest()
|
||||
{
|
||||
// TODO uncomment below to test deserialize a ChildCat from type ParentPet
|
||||
//Assert.IsInstanceOf<ParentPet>(JsonConvert.DeserializeObject<ParentPet>(new ChildCat().ToJson()));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'PetType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void PetTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'PetType'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing IsoscelesTriangle
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class IsoscelesTriangleTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for IsoscelesTriangle
|
||||
//private IsoscelesTriangle instance;
|
||||
|
||||
public IsoscelesTriangleTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of IsoscelesTriangle
|
||||
//instance = new IsoscelesTriangle();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of IsoscelesTriangle
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void IsoscelesTriangleInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" IsoscelesTriangle
|
||||
//Assert.IsInstanceOfType<IsoscelesTriangle> (instance, "variable 'instance' is a IsoscelesTriangle");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ShapeTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'ShapeType'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'TriangleType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TriangleTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'TriangleType'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing Mammal
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class MammalTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for Mammal
|
||||
//private Mammal instance;
|
||||
|
||||
public MammalTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of Mammal
|
||||
//instance = new Mammal();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of Mammal
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void MammalInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" Mammal
|
||||
//Assert.IsInstanceOfType<Mammal> (instance, "variable 'instance' is a Mammal");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'HasBaleen'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void HasBaleenTest()
|
||||
{
|
||||
// TODO unit test for the property 'HasBaleen'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'HasTeeth'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void HasTeethTest()
|
||||
{
|
||||
// TODO unit test for the property 'HasTeeth'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ClassName'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ClassNameTest()
|
||||
{
|
||||
// TODO unit test for the property 'ClassName'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Type'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'Type'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing NullableShape
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class NullableShapeTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for NullableShape
|
||||
//private NullableShape instance;
|
||||
|
||||
public NullableShapeTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of NullableShape
|
||||
//instance = new NullableShape();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of NullableShape
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NullableShapeInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" NullableShape
|
||||
//Assert.IsInstanceOfType<NullableShape> (instance, "variable 'instance' is a NullableShape");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ShapeTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'ShapeType'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'QuadrilateralType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void QuadrilateralTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'QuadrilateralType'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing ParentPet
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class ParentPetTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for ParentPet
|
||||
//private ParentPet instance;
|
||||
|
||||
public ParentPetTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of ParentPet
|
||||
//instance = new ParentPet();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of ParentPet
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ParentPetInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" ParentPet
|
||||
//Assert.IsInstanceOfType<ParentPet> (instance, "variable 'instance' is a ParentPet");
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing Pig
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class PigTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for Pig
|
||||
//private Pig instance;
|
||||
|
||||
public PigTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of Pig
|
||||
//instance = new Pig();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of Pig
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void PigInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" Pig
|
||||
//Assert.IsInstanceOfType<Pig> (instance, "variable 'instance' is a Pig");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ClassName'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ClassNameTest()
|
||||
{
|
||||
// TODO unit test for the property 'ClassName'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing QuadrilateralInterface
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class QuadrilateralInterfaceTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for QuadrilateralInterface
|
||||
//private QuadrilateralInterface instance;
|
||||
|
||||
public QuadrilateralInterfaceTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of QuadrilateralInterface
|
||||
//instance = new QuadrilateralInterface();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of QuadrilateralInterface
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void QuadrilateralInterfaceInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" QuadrilateralInterface
|
||||
//Assert.IsInstanceOfType<QuadrilateralInterface> (instance, "variable 'instance' is a QuadrilateralInterface");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'QuadrilateralType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void QuadrilateralTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'QuadrilateralType'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing Quadrilateral
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class QuadrilateralTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for Quadrilateral
|
||||
//private Quadrilateral instance;
|
||||
|
||||
public QuadrilateralTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of Quadrilateral
|
||||
//instance = new Quadrilateral();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of Quadrilateral
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void QuadrilateralInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" Quadrilateral
|
||||
//Assert.IsInstanceOfType<Quadrilateral> (instance, "variable 'instance' is a Quadrilateral");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ShapeTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'ShapeType'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'QuadrilateralType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void QuadrilateralTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'QuadrilateralType'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing ScaleneTriangle
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class ScaleneTriangleTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for ScaleneTriangle
|
||||
//private ScaleneTriangle instance;
|
||||
|
||||
public ScaleneTriangleTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of ScaleneTriangle
|
||||
//instance = new ScaleneTriangle();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of ScaleneTriangle
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ScaleneTriangleInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" ScaleneTriangle
|
||||
//Assert.IsInstanceOfType<ScaleneTriangle> (instance, "variable 'instance' is a ScaleneTriangle");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ShapeTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'ShapeType'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'TriangleType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TriangleTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'TriangleType'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing ShapeInterface
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class ShapeInterfaceTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for ShapeInterface
|
||||
//private ShapeInterface instance;
|
||||
|
||||
public ShapeInterfaceTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of ShapeInterface
|
||||
//instance = new ShapeInterface();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of ShapeInterface
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ShapeInterfaceInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" ShapeInterface
|
||||
//Assert.IsInstanceOfType<ShapeInterface> (instance, "variable 'instance' is a ShapeInterface");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ShapeTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'ShapeType'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing ShapeOrNull
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class ShapeOrNullTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for ShapeOrNull
|
||||
//private ShapeOrNull instance;
|
||||
|
||||
public ShapeOrNullTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of ShapeOrNull
|
||||
//instance = new ShapeOrNull();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of ShapeOrNull
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ShapeOrNullInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" ShapeOrNull
|
||||
//Assert.IsInstanceOfType<ShapeOrNull> (instance, "variable 'instance' is a ShapeOrNull");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ShapeTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'ShapeType'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'QuadrilateralType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void QuadrilateralTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'QuadrilateralType'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing Shape
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class ShapeTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for Shape
|
||||
//private Shape instance;
|
||||
|
||||
public ShapeTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of Shape
|
||||
//instance = new Shape();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of Shape
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ShapeInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" Shape
|
||||
//Assert.IsInstanceOfType<Shape> (instance, "variable 'instance' is a Shape");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ShapeTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'ShapeType'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'QuadrilateralType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void QuadrilateralTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'QuadrilateralType'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing SimpleQuadrilateral
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class SimpleQuadrilateralTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for SimpleQuadrilateral
|
||||
//private SimpleQuadrilateral instance;
|
||||
|
||||
public SimpleQuadrilateralTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of SimpleQuadrilateral
|
||||
//instance = new SimpleQuadrilateral();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of SimpleQuadrilateral
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void SimpleQuadrilateralInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" SimpleQuadrilateral
|
||||
//Assert.IsInstanceOfType<SimpleQuadrilateral> (instance, "variable 'instance' is a SimpleQuadrilateral");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ShapeTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'ShapeType'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'QuadrilateralType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void QuadrilateralTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'QuadrilateralType'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing TriangleInterface
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class TriangleInterfaceTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for TriangleInterface
|
||||
//private TriangleInterface instance;
|
||||
|
||||
public TriangleInterfaceTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of TriangleInterface
|
||||
//instance = new TriangleInterface();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of TriangleInterface
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TriangleInterfaceInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" TriangleInterface
|
||||
//Assert.IsInstanceOfType<TriangleInterface> (instance, "variable 'instance' is a TriangleInterface");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'TriangleType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TriangleTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'TriangleType'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing Triangle
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class TriangleTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for Triangle
|
||||
//private Triangle instance;
|
||||
|
||||
public TriangleTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of Triangle
|
||||
//instance = new Triangle();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of Triangle
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TriangleInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" Triangle
|
||||
//Assert.IsInstanceOfType<Triangle> (instance, "variable 'instance' is a Triangle");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ShapeTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'ShapeType'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'TriangleType'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TriangleTypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'TriangleType'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing Whale
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class WhaleTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for Whale
|
||||
//private Whale instance;
|
||||
|
||||
public WhaleTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of Whale
|
||||
//instance = new Whale();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of Whale
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void WhaleInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" Whale
|
||||
//Assert.IsInstanceOfType<Whale> (instance, "variable 'instance' is a Whale");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'HasBaleen'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void HasBaleenTest()
|
||||
{
|
||||
// TODO unit test for the property 'HasBaleen'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'HasTeeth'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void HasTeethTest()
|
||||
{
|
||||
// TODO unit test for the property 'HasTeeth'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ClassName'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ClassNameTest()
|
||||
{
|
||||
// TODO unit test for the property 'ClassName'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing Zebra
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class ZebraTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for Zebra
|
||||
//private Zebra instance;
|
||||
|
||||
public ZebraTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of Zebra
|
||||
//instance = new Zebra();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of Zebra
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ZebraInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" Zebra
|
||||
//Assert.IsInstanceOfType<Zebra> (instance, "variable 'instance' is a Zebra");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Type'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'Type'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ClassName'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ClassNameTest()
|
||||
{
|
||||
// TODO unit test for the property 'ClassName'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -43,28 +43,6 @@ namespace Org.OpenAPITools.Api
|
||||
/// <returns>ApiResponse of HealthCheckResult</returns>
|
||||
ApiResponse<HealthCheckResult> FakeHealthGetWithHttpInfo();
|
||||
/// <summary>
|
||||
/// test http signature authentication
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="query1">query parameter (optional)</param>
|
||||
/// <param name="header1">header parameter (optional)</param>
|
||||
/// <returns></returns>
|
||||
void FakeHttpSignatureTest(Pet pet, string query1 = default(string), string header1 = default(string));
|
||||
|
||||
/// <summary>
|
||||
/// test http signature authentication
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="query1">query parameter (optional)</param>
|
||||
/// <param name="header1">header parameter (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> FakeHttpSignatureTestWithHttpInfo(Pet pet, string query1 = default(string), string header1 = default(string));
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
@@ -149,6 +127,22 @@ namespace Org.OpenAPITools.Api
|
||||
/// <returns>ApiResponse of string</returns>
|
||||
ApiResponse<string> FakeOuterStringSerializeWithHttpInfo(string body = default(string));
|
||||
/// <summary>
|
||||
/// Array of Enums
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>List<OuterEnum></returns>
|
||||
List<OuterEnum> GetArrayOfEnums();
|
||||
|
||||
/// <summary>
|
||||
/// Array of Enums
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>ApiResponse of List<OuterEnum></returns>
|
||||
ApiResponse<List<OuterEnum>> GetArrayOfEnumsWithHttpInfo();
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
@@ -228,7 +222,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <returns></returns>
|
||||
@@ -252,7 +246,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
@@ -421,33 +415,6 @@ namespace Org.OpenAPITools.Api
|
||||
/// <returns>Task of ApiResponse (HealthCheckResult)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<HealthCheckResult>> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <summary>
|
||||
/// test http signature authentication
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="query1">query parameter (optional)</param>
|
||||
/// <param name="header1">header parameter (optional)</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task FakeHttpSignatureTestAsync(Pet pet, string query1 = default(string), string header1 = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// test http signature authentication
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="query1">query parameter (optional)</param>
|
||||
/// <param name="header1">header parameter (optional)</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> FakeHttpSignatureTestWithHttpInfoAsync(Pet pet, string query1 = default(string), string header1 = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
@@ -540,6 +507,27 @@ namespace Org.OpenAPITools.Api
|
||||
/// <returns>Task of ApiResponse (string)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<string>> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <summary>
|
||||
/// Array of Enums
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of List<OuterEnum></returns>
|
||||
System.Threading.Tasks.Task<List<OuterEnum>> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// Array of Enums
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse (List<OuterEnum>)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<List<OuterEnum>>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
@@ -628,7 +616,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
@@ -653,7 +641,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
@@ -1029,177 +1017,6 @@ namespace Org.OpenAPITools.Api
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// test http signature authentication
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="query1">query parameter (optional)</param>
|
||||
/// <param name="header1">header parameter (optional)</param>
|
||||
/// <returns></returns>
|
||||
public void FakeHttpSignatureTest(Pet pet, string query1 = default(string), string header1 = default(string))
|
||||
{
|
||||
FakeHttpSignatureTestWithHttpInfo(pet, query1, header1);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// test http signature authentication
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="query1">query parameter (optional)</param>
|
||||
/// <param name="header1">header parameter (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> FakeHttpSignatureTestWithHttpInfo(Pet pet, string query1 = default(string), string header1 = default(string))
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling FakeApi->FakeHttpSignatureTest");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json",
|
||||
"application/xml"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
if (query1 != null)
|
||||
{
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "query_1", query1));
|
||||
}
|
||||
if (header1 != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("header_1", Org.OpenAPITools.Client.ClientUtils.ParameterToString(header1)); // header parameter
|
||||
}
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/fake/http-signature-test", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<Object>("/fake/http-signature-test", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("FakeHttpSignatureTest", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// test http signature authentication
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="query1">query parameter (optional)</param>
|
||||
/// <param name="header1">header parameter (optional)</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task FakeHttpSignatureTestAsync(Pet pet, string query1 = default(string), string header1 = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
await FakeHttpSignatureTestWithHttpInfoAsync(pet, query1, header1, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// test http signature authentication
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="query1">query parameter (optional)</param>
|
||||
/// <param name="header1">header parameter (optional)</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> FakeHttpSignatureTestWithHttpInfoAsync(Pet pet, string query1 = default(string), string header1 = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling FakeApi->FakeHttpSignatureTest");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json",
|
||||
"application/xml"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
if (query1 != null)
|
||||
{
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "query_1", query1));
|
||||
}
|
||||
if (header1 != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("header_1", Org.OpenAPITools.Client.ClientUtils.ParameterToString(header1)); // header parameter
|
||||
}
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/fake/http-signature-test", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<Object>("/fake/http-signature-test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("FakeHttpSignatureTest", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test serialization of outer boolean types
|
||||
/// </summary>
|
||||
@@ -1636,6 +1453,107 @@ namespace Org.OpenAPITools.Api
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Array of Enums
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>List<OuterEnum></returns>
|
||||
public List<OuterEnum> GetArrayOfEnums()
|
||||
{
|
||||
Org.OpenAPITools.Client.ApiResponse<List<OuterEnum>> localVarResponse = GetArrayOfEnumsWithHttpInfo();
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Array of Enums
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>ApiResponse of List<OuterEnum></returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse<List<OuterEnum>> GetArrayOfEnumsWithHttpInfo()
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<List<OuterEnum>>("/fake/array-of-enums", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetArrayOfEnums", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Array of Enums
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of List<OuterEnum></returns>
|
||||
public async System.Threading.Tasks.Task<List<OuterEnum>> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
Org.OpenAPITools.Client.ApiResponse<List<OuterEnum>> localVarResponse = await GetArrayOfEnumsWithHttpInfoAsync(cancellationToken).ConfigureAwait(false);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Array of Enums
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse (List<OuterEnum>)</returns>
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<List<OuterEnum>>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<List<OuterEnum>>("/fake/array-of-enums", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetArrayOfEnums", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </summary>
|
||||
@@ -2008,7 +1926,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <returns></returns>
|
||||
@@ -2032,7 +1950,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
@@ -2141,7 +2059,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
@@ -2166,7 +2084,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
|
||||
@@ -603,6 +603,22 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "POST", "/pet", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
@@ -668,6 +684,22 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "POST", "/pet", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
@@ -858,6 +890,22 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "status", status));
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/pet/findByStatus", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
@@ -924,6 +972,22 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "status", status));
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/pet/findByStatus", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
@@ -987,6 +1051,22 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "tags", tags));
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/pet/findByTags", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
@@ -1053,6 +1133,22 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "tags", tags));
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/pet/findByTags", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
@@ -1234,6 +1330,22 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "PUT", "/pet", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
@@ -1299,6 +1411,22 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "PUT", "/pet", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
|
||||
@@ -36,10 +36,22 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="mapProperty">mapProperty.</param>
|
||||
/// <param name="mapOfMapProperty">mapOfMapProperty.</param>
|
||||
public AdditionalPropertiesClass(Dictionary<string, string> mapProperty = default(Dictionary<string, string>), Dictionary<string, Dictionary<string, string>> mapOfMapProperty = default(Dictionary<string, Dictionary<string, string>>))
|
||||
/// <param name="anytype1">anytype1.</param>
|
||||
/// <param name="mapWithUndeclaredPropertiesAnytype1">mapWithUndeclaredPropertiesAnytype1.</param>
|
||||
/// <param name="mapWithUndeclaredPropertiesAnytype2">mapWithUndeclaredPropertiesAnytype2.</param>
|
||||
/// <param name="mapWithUndeclaredPropertiesAnytype3">mapWithUndeclaredPropertiesAnytype3.</param>
|
||||
/// <param name="emptyMap">an object with no declared properties and no undeclared properties, hence it's an empty map..</param>
|
||||
/// <param name="mapWithUndeclaredPropertiesString">mapWithUndeclaredPropertiesString.</param>
|
||||
public AdditionalPropertiesClass(Dictionary<string, string> mapProperty = default(Dictionary<string, string>), Dictionary<string, Dictionary<string, string>> mapOfMapProperty = default(Dictionary<string, Dictionary<string, string>>), Object anytype1 = default(Object), Object mapWithUndeclaredPropertiesAnytype1 = default(Object), Object mapWithUndeclaredPropertiesAnytype2 = default(Object), Dictionary<string, Object> mapWithUndeclaredPropertiesAnytype3 = default(Dictionary<string, Object>), Object emptyMap = default(Object), Dictionary<string, string> mapWithUndeclaredPropertiesString = default(Dictionary<string, string>))
|
||||
{
|
||||
this.MapProperty = mapProperty;
|
||||
this.MapOfMapProperty = mapOfMapProperty;
|
||||
this.Anytype1 = anytype1;
|
||||
this.MapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1;
|
||||
this.MapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2;
|
||||
this.MapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3;
|
||||
this.EmptyMap = emptyMap;
|
||||
this.MapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
@@ -55,6 +67,43 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "map_of_map_property", EmitDefaultValue = false)]
|
||||
public Dictionary<string, Dictionary<string, string>> MapOfMapProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Anytype1
|
||||
/// </summary>
|
||||
[DataMember(Name = "anytype_1", EmitDefaultValue = true)]
|
||||
public Object Anytype1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MapWithUndeclaredPropertiesAnytype1
|
||||
/// </summary>
|
||||
[DataMember(Name = "map_with_undeclared_properties_anytype_1", EmitDefaultValue = false)]
|
||||
public Object MapWithUndeclaredPropertiesAnytype1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MapWithUndeclaredPropertiesAnytype2
|
||||
/// </summary>
|
||||
[DataMember(Name = "map_with_undeclared_properties_anytype_2", EmitDefaultValue = false)]
|
||||
public Object MapWithUndeclaredPropertiesAnytype2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MapWithUndeclaredPropertiesAnytype3
|
||||
/// </summary>
|
||||
[DataMember(Name = "map_with_undeclared_properties_anytype_3", EmitDefaultValue = false)]
|
||||
public Dictionary<string, Object> MapWithUndeclaredPropertiesAnytype3 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// an object with no declared properties and no undeclared properties, hence it's an empty map.
|
||||
/// </summary>
|
||||
/// <value>an object with no declared properties and no undeclared properties, hence it's an empty map.</value>
|
||||
[DataMember(Name = "empty_map", EmitDefaultValue = false)]
|
||||
public Object EmptyMap { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MapWithUndeclaredPropertiesString
|
||||
/// </summary>
|
||||
[DataMember(Name = "map_with_undeclared_properties_string", EmitDefaultValue = false)]
|
||||
public Dictionary<string, string> MapWithUndeclaredPropertiesString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
@@ -71,6 +120,12 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append("class AdditionalPropertiesClass {\n");
|
||||
sb.Append(" MapProperty: ").Append(MapProperty).Append("\n");
|
||||
sb.Append(" MapOfMapProperty: ").Append(MapOfMapProperty).Append("\n");
|
||||
sb.Append(" Anytype1: ").Append(Anytype1).Append("\n");
|
||||
sb.Append(" MapWithUndeclaredPropertiesAnytype1: ").Append(MapWithUndeclaredPropertiesAnytype1).Append("\n");
|
||||
sb.Append(" MapWithUndeclaredPropertiesAnytype2: ").Append(MapWithUndeclaredPropertiesAnytype2).Append("\n");
|
||||
sb.Append(" MapWithUndeclaredPropertiesAnytype3: ").Append(MapWithUndeclaredPropertiesAnytype3).Append("\n");
|
||||
sb.Append(" EmptyMap: ").Append(EmptyMap).Append("\n");
|
||||
sb.Append(" MapWithUndeclaredPropertiesString: ").Append(MapWithUndeclaredPropertiesString).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
@@ -118,6 +173,18 @@ namespace Org.OpenAPITools.Model
|
||||
hashCode = hashCode * 59 + this.MapProperty.GetHashCode();
|
||||
if (this.MapOfMapProperty != null)
|
||||
hashCode = hashCode * 59 + this.MapOfMapProperty.GetHashCode();
|
||||
if (this.Anytype1 != null)
|
||||
hashCode = hashCode * 59 + this.Anytype1.GetHashCode();
|
||||
if (this.MapWithUndeclaredPropertiesAnytype1 != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesAnytype1.GetHashCode();
|
||||
if (this.MapWithUndeclaredPropertiesAnytype2 != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesAnytype2.GetHashCode();
|
||||
if (this.MapWithUndeclaredPropertiesAnytype3 != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesAnytype3.GetHashCode();
|
||||
if (this.EmptyMap != null)
|
||||
hashCode = hashCode * 59 + this.EmptyMap.GetHashCode();
|
||||
if (this.MapWithUndeclaredPropertiesString != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesString.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
|
||||
@@ -0,0 +1,152 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Apple
|
||||
/// </summary>
|
||||
[DataContract(Name = "apple")]
|
||||
public partial class Apple : IEquatable<Apple>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Apple" /> class.
|
||||
/// </summary>
|
||||
/// <param name="cultivar">cultivar.</param>
|
||||
/// <param name="origin">origin.</param>
|
||||
public Apple(string cultivar = default(string), string origin = default(string))
|
||||
{
|
||||
this.Cultivar = cultivar;
|
||||
this.Origin = origin;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Cultivar
|
||||
/// </summary>
|
||||
[DataMember(Name = "cultivar", EmitDefaultValue = false)]
|
||||
public string Cultivar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Origin
|
||||
/// </summary>
|
||||
[DataMember(Name = "origin", EmitDefaultValue = false)]
|
||||
public string Origin { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Apple {\n");
|
||||
sb.Append(" Cultivar: ").Append(Cultivar).Append("\n");
|
||||
sb.Append(" Origin: ").Append(Origin).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as Apple).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Apple instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Apple to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(Apple input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Cultivar != null)
|
||||
hashCode = hashCode * 59 + this.Cultivar.GetHashCode();
|
||||
if (this.Origin != null)
|
||||
hashCode = hashCode * 59 + this.Origin.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
// Cultivar (string) pattern
|
||||
Regex regexCultivar = new Regex(@"^[a-zA-Z\\s]*$", RegexOptions.CultureInvariant);
|
||||
if (false == regexCultivar.Match(this.Cultivar).Success)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" });
|
||||
}
|
||||
|
||||
// Origin (string) pattern
|
||||
Regex regexOrigin = new Regex(@"^[A-Z\\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
|
||||
if (false == regexOrigin.Match(this.Origin).Success)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" });
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// AppleReq
|
||||
/// </summary>
|
||||
[DataContract(Name = "appleReq")]
|
||||
public partial class AppleReq : IEquatable<AppleReq>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AppleReq" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected AppleReq() { }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AppleReq" /> class.
|
||||
/// </summary>
|
||||
/// <param name="cultivar">cultivar (required).</param>
|
||||
/// <param name="mealy">mealy.</param>
|
||||
public AppleReq(string cultivar = default(string), bool mealy = default(bool))
|
||||
{
|
||||
// to ensure "cultivar" is required (not null)
|
||||
this.Cultivar = cultivar ?? throw new ArgumentNullException("cultivar is a required property for AppleReq and cannot be null");
|
||||
this.Mealy = mealy;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Cultivar
|
||||
/// </summary>
|
||||
[DataMember(Name = "cultivar", EmitDefaultValue = false)]
|
||||
public string Cultivar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Mealy
|
||||
/// </summary>
|
||||
[DataMember(Name = "mealy", EmitDefaultValue = false)]
|
||||
public bool Mealy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class AppleReq {\n");
|
||||
sb.Append(" Cultivar: ").Append(Cultivar).Append("\n");
|
||||
sb.Append(" Mealy: ").Append(Mealy).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as AppleReq).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if AppleReq instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of AppleReq to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(AppleReq input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Cultivar != null)
|
||||
hashCode = hashCode * 59 + this.Cultivar.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Mealy.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Banana
|
||||
/// </summary>
|
||||
[DataContract(Name = "banana")]
|
||||
public partial class Banana : IEquatable<Banana>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Banana" /> class.
|
||||
/// </summary>
|
||||
/// <param name="lengthCm">lengthCm.</param>
|
||||
public Banana(decimal lengthCm = default(decimal))
|
||||
{
|
||||
this.LengthCm = lengthCm;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets LengthCm
|
||||
/// </summary>
|
||||
[DataMember(Name = "lengthCm", EmitDefaultValue = false)]
|
||||
public decimal LengthCm { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Banana {\n");
|
||||
sb.Append(" LengthCm: ").Append(LengthCm).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as Banana).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Banana instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Banana to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(Banana input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.LengthCm.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// BananaReq
|
||||
/// </summary>
|
||||
[DataContract(Name = "bananaReq")]
|
||||
public partial class BananaReq : IEquatable<BananaReq>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BananaReq" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected BananaReq() { }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BananaReq" /> class.
|
||||
/// </summary>
|
||||
/// <param name="lengthCm">lengthCm (required).</param>
|
||||
/// <param name="sweet">sweet.</param>
|
||||
public BananaReq(decimal lengthCm = default(decimal), bool sweet = default(bool))
|
||||
{
|
||||
this.LengthCm = lengthCm;
|
||||
this.Sweet = sweet;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets LengthCm
|
||||
/// </summary>
|
||||
[DataMember(Name = "lengthCm", EmitDefaultValue = false)]
|
||||
public decimal LengthCm { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Sweet
|
||||
/// </summary>
|
||||
[DataMember(Name = "sweet", EmitDefaultValue = false)]
|
||||
public bool Sweet { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class BananaReq {\n");
|
||||
sb.Append(" LengthCm: ").Append(LengthCm).Append("\n");
|
||||
sb.Append(" Sweet: ").Append(Sweet).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as BananaReq).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if BananaReq instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of BananaReq to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(BananaReq input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.LengthCm.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Sweet.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// BasquePig
|
||||
/// </summary>
|
||||
[DataContract(Name = "BasquePig")]
|
||||
public partial class BasquePig : IEquatable<BasquePig>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BasquePig" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected BasquePig()
|
||||
{
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BasquePig" /> class.
|
||||
/// </summary>
|
||||
/// <param name="className">className (required).</param>
|
||||
public BasquePig(string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
this.ClassName = className ?? throw new ArgumentNullException("className is a required property for BasquePig and cannot be null");
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ClassName
|
||||
/// </summary>
|
||||
[DataMember(Name = "className", EmitDefaultValue = false)]
|
||||
public string ClassName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class BasquePig {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as BasquePig).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if BasquePig instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of BasquePig to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(BasquePig input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,160 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// ChildCat
|
||||
/// </summary>
|
||||
[DataContract(Name = "ChildCat")]
|
||||
public partial class ChildCat : ParentPet, IEquatable<ChildCat>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines PetType
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum PetTypeEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum ChildCat for value: ChildCat
|
||||
/// </summary>
|
||||
[EnumMember(Value = "ChildCat")]
|
||||
ChildCat = 1
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PetType
|
||||
/// </summary>
|
||||
[DataMember(Name = "pet_type", EmitDefaultValue = false)]
|
||||
public PetTypeEnum PetType { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ChildCat" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected ChildCat()
|
||||
{
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ChildCat" /> class.
|
||||
/// </summary>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="petType">petType (required) (default to PetTypeEnum.ChildCat).</param>
|
||||
public ChildCat(string name = default(string), PetTypeEnum petType = PetTypeEnum.ChildCat) : base()
|
||||
{
|
||||
this.PetType = petType;
|
||||
this.Name = name;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", EmitDefaultValue = false)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class ChildCat {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" PetType: ").Append(PetType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public override string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as ChildCat).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ChildCat instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ChildCat to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(ChildCat input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.PetType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
foreach(var x in BaseValidate(validationContext)) yield return x;
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// ChildCatAllOf
|
||||
/// </summary>
|
||||
[DataContract(Name = "ChildCat_allOf")]
|
||||
public partial class ChildCatAllOf : IEquatable<ChildCatAllOf>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines PetType
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum PetTypeEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum ChildCat for value: ChildCat
|
||||
/// </summary>
|
||||
[EnumMember(Value = "ChildCat")]
|
||||
ChildCat = 1
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PetType
|
||||
/// </summary>
|
||||
[DataMember(Name = "pet_type", EmitDefaultValue = false)]
|
||||
public PetTypeEnum? PetType { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ChildCatAllOf" /> class.
|
||||
/// </summary>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="petType">petType (default to PetTypeEnum.ChildCat).</param>
|
||||
public ChildCatAllOf(string name = default(string), PetTypeEnum? petType = PetTypeEnum.ChildCat)
|
||||
{
|
||||
this.Name = name;
|
||||
this.PetType = petType;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", EmitDefaultValue = false)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class ChildCatAllOf {\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" PetType: ").Append(PetType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as ChildCatAllOf).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ChildCatAllOf instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ChildCatAllOf to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(ChildCatAllOf input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.PetType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// ComplexQuadrilateral
|
||||
/// </summary>
|
||||
[DataContract(Name = "ComplexQuadrilateral")]
|
||||
public partial class ComplexQuadrilateral : IEquatable<ComplexQuadrilateral>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ComplexQuadrilateral" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected ComplexQuadrilateral()
|
||||
{
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ComplexQuadrilateral" /> class.
|
||||
/// </summary>
|
||||
/// <param name="shapeType">shapeType (required).</param>
|
||||
/// <param name="quadrilateralType">quadrilateralType (required).</param>
|
||||
public ComplexQuadrilateral(string shapeType = default(string), string quadrilateralType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
this.ShapeType = shapeType ?? throw new ArgumentNullException("shapeType is a required property for ComplexQuadrilateral and cannot be null");
|
||||
// to ensure "quadrilateralType" is required (not null)
|
||||
this.QuadrilateralType = quadrilateralType ?? throw new ArgumentNullException("quadrilateralType is a required property for ComplexQuadrilateral and cannot be null");
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ShapeType
|
||||
/// </summary>
|
||||
[DataMember(Name = "shapeType", EmitDefaultValue = false)]
|
||||
public string ShapeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets QuadrilateralType
|
||||
/// </summary>
|
||||
[DataMember(Name = "quadrilateralType", EmitDefaultValue = false)]
|
||||
public string QuadrilateralType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class ComplexQuadrilateral {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" QuadrilateralType: ").Append(QuadrilateralType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as ComplexQuadrilateral).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ComplexQuadrilateral instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ComplexQuadrilateral to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(ComplexQuadrilateral input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
if (this.QuadrilateralType != null)
|
||||
hashCode = hashCode * 59 + this.QuadrilateralType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// DanishPig
|
||||
/// </summary>
|
||||
[DataContract(Name = "DanishPig")]
|
||||
public partial class DanishPig : IEquatable<DanishPig>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DanishPig" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected DanishPig()
|
||||
{
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DanishPig" /> class.
|
||||
/// </summary>
|
||||
/// <param name="className">className (required).</param>
|
||||
public DanishPig(string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
this.ClassName = className ?? throw new ArgumentNullException("className is a required property for DanishPig and cannot be null");
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ClassName
|
||||
/// </summary>
|
||||
[DataMember(Name = "className", EmitDefaultValue = false)]
|
||||
public string ClassName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class DanishPig {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as DanishPig).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if DanishPig instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of DanishPig to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(DanishPig input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Drawing
|
||||
/// </summary>
|
||||
[DataContract(Name = "Drawing")]
|
||||
public partial class Drawing : Dictionary<String, Fruit>, IEquatable<Drawing>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Drawing" /> class.
|
||||
/// </summary>
|
||||
/// <param name="mainShape">mainShape.</param>
|
||||
/// <param name="shapeOrNull">shapeOrNull.</param>
|
||||
/// <param name="nullableShape">nullableShape.</param>
|
||||
/// <param name="shapes">shapes.</param>
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>)) : base()
|
||||
{
|
||||
this.MainShape = mainShape;
|
||||
this.ShapeOrNull = shapeOrNull;
|
||||
this.NullableShape = nullableShape;
|
||||
this.Shapes = shapes;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MainShape
|
||||
/// </summary>
|
||||
[DataMember(Name = "mainShape", EmitDefaultValue = false)]
|
||||
public Shape MainShape { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ShapeOrNull
|
||||
/// </summary>
|
||||
[DataMember(Name = "shapeOrNull", EmitDefaultValue = false)]
|
||||
public ShapeOrNull ShapeOrNull { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets NullableShape
|
||||
/// </summary>
|
||||
[DataMember(Name = "nullableShape", EmitDefaultValue = true)]
|
||||
public NullableShape NullableShape { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Shapes
|
||||
/// </summary>
|
||||
[DataMember(Name = "shapes", EmitDefaultValue = false)]
|
||||
public List<Shape> Shapes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Drawing {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" MainShape: ").Append(MainShape).Append("\n");
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
sb.Append(" Shapes: ").Append(Shapes).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as Drawing).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Drawing instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Drawing to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(Drawing input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.MainShape != null)
|
||||
hashCode = hashCode * 59 + this.MainShape.GetHashCode();
|
||||
if (this.ShapeOrNull != null)
|
||||
hashCode = hashCode * 59 + this.ShapeOrNull.GetHashCode();
|
||||
if (this.NullableShape != null)
|
||||
hashCode = hashCode * 59 + this.NullableShape.GetHashCode();
|
||||
if (this.Shapes != null)
|
||||
hashCode = hashCode * 59 + this.Shapes.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// EquilateralTriangle
|
||||
/// </summary>
|
||||
[DataContract(Name = "EquilateralTriangle")]
|
||||
public partial class EquilateralTriangle : IEquatable<EquilateralTriangle>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EquilateralTriangle" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected EquilateralTriangle()
|
||||
{
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EquilateralTriangle" /> class.
|
||||
/// </summary>
|
||||
/// <param name="shapeType">shapeType (required).</param>
|
||||
/// <param name="triangleType">triangleType (required).</param>
|
||||
public EquilateralTriangle(string shapeType = default(string), string triangleType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
this.ShapeType = shapeType ?? throw new ArgumentNullException("shapeType is a required property for EquilateralTriangle and cannot be null");
|
||||
// to ensure "triangleType" is required (not null)
|
||||
this.TriangleType = triangleType ?? throw new ArgumentNullException("triangleType is a required property for EquilateralTriangle and cannot be null");
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ShapeType
|
||||
/// </summary>
|
||||
[DataMember(Name = "shapeType", EmitDefaultValue = false)]
|
||||
public string ShapeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets TriangleType
|
||||
/// </summary>
|
||||
[DataMember(Name = "triangleType", EmitDefaultValue = false)]
|
||||
public string TriangleType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class EquilateralTriangle {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" TriangleType: ").Append(TriangleType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as EquilateralTriangle).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if EquilateralTriangle instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of EquilateralTriangle to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(EquilateralTriangle input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
if (this.TriangleType != null)
|
||||
hashCode = hashCode * 59 + this.TriangleType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,163 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Fruit
|
||||
/// </summary>
|
||||
[DataContract(Name = "fruit")]
|
||||
public partial class Fruit : IEquatable<Fruit>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Fruit" /> class.
|
||||
/// </summary>
|
||||
/// <param name="color">color.</param>
|
||||
/// <param name="cultivar">cultivar.</param>
|
||||
/// <param name="origin">origin.</param>
|
||||
/// <param name="lengthCm">lengthCm.</param>
|
||||
public Fruit(string color = default(string), string cultivar = default(string), string origin = default(string), decimal lengthCm = default(decimal))
|
||||
{
|
||||
this.Color = color;
|
||||
this.Cultivar = cultivar;
|
||||
this.Origin = origin;
|
||||
this.LengthCm = lengthCm;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Color
|
||||
/// </summary>
|
||||
[DataMember(Name = "color", EmitDefaultValue = false)]
|
||||
public string Color { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Cultivar
|
||||
/// </summary>
|
||||
[DataMember(Name = "cultivar", EmitDefaultValue = false)]
|
||||
public string Cultivar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Origin
|
||||
/// </summary>
|
||||
[DataMember(Name = "origin", EmitDefaultValue = false)]
|
||||
public string Origin { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets LengthCm
|
||||
/// </summary>
|
||||
[DataMember(Name = "lengthCm", EmitDefaultValue = false)]
|
||||
public decimal LengthCm { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Fruit {\n");
|
||||
sb.Append(" Color: ").Append(Color).Append("\n");
|
||||
sb.Append(" Cultivar: ").Append(Cultivar).Append("\n");
|
||||
sb.Append(" Origin: ").Append(Origin).Append("\n");
|
||||
sb.Append(" LengthCm: ").Append(LengthCm).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as Fruit).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Fruit instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Fruit to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(Fruit input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Color != null)
|
||||
hashCode = hashCode * 59 + this.Color.GetHashCode();
|
||||
if (this.Cultivar != null)
|
||||
hashCode = hashCode * 59 + this.Cultivar.GetHashCode();
|
||||
if (this.Origin != null)
|
||||
hashCode = hashCode * 59 + this.Origin.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.LengthCm.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
// Cultivar (string) pattern
|
||||
Regex regexCultivar = new Regex(@"^[a-zA-Z\\s]*$", RegexOptions.CultureInvariant);
|
||||
if (false == regexCultivar.Match(this.Cultivar).Success)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" });
|
||||
}
|
||||
|
||||
// Origin (string) pattern
|
||||
Regex regexOrigin = new Regex(@"^[A-Z\\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
|
||||
if (false == regexOrigin.Match(this.Origin).Success)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" });
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,153 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// FruitReq
|
||||
/// </summary>
|
||||
[DataContract(Name = "fruitReq")]
|
||||
public partial class FruitReq : IEquatable<FruitReq>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FruitReq" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected FruitReq() { }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FruitReq" /> class.
|
||||
/// </summary>
|
||||
/// <param name="cultivar">cultivar (required).</param>
|
||||
/// <param name="mealy">mealy.</param>
|
||||
/// <param name="lengthCm">lengthCm (required).</param>
|
||||
/// <param name="sweet">sweet.</param>
|
||||
public FruitReq(string cultivar = default(string), bool mealy = default(bool), decimal lengthCm = default(decimal), bool sweet = default(bool))
|
||||
{
|
||||
// to ensure "cultivar" is required (not null)
|
||||
this.Cultivar = cultivar ?? throw new ArgumentNullException("cultivar is a required property for FruitReq and cannot be null");
|
||||
this.LengthCm = lengthCm;
|
||||
this.Mealy = mealy;
|
||||
this.Sweet = sweet;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Cultivar
|
||||
/// </summary>
|
||||
[DataMember(Name = "cultivar", EmitDefaultValue = false)]
|
||||
public string Cultivar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Mealy
|
||||
/// </summary>
|
||||
[DataMember(Name = "mealy", EmitDefaultValue = false)]
|
||||
public bool Mealy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets LengthCm
|
||||
/// </summary>
|
||||
[DataMember(Name = "lengthCm", EmitDefaultValue = false)]
|
||||
public decimal LengthCm { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Sweet
|
||||
/// </summary>
|
||||
[DataMember(Name = "sweet", EmitDefaultValue = false)]
|
||||
public bool Sweet { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class FruitReq {\n");
|
||||
sb.Append(" Cultivar: ").Append(Cultivar).Append("\n");
|
||||
sb.Append(" Mealy: ").Append(Mealy).Append("\n");
|
||||
sb.Append(" LengthCm: ").Append(LengthCm).Append("\n");
|
||||
sb.Append(" Sweet: ").Append(Sweet).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as FruitReq).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if FruitReq instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of FruitReq to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(FruitReq input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Cultivar != null)
|
||||
hashCode = hashCode * 59 + this.Cultivar.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Mealy.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.LengthCm.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Sweet.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,163 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// GmFruit
|
||||
/// </summary>
|
||||
[DataContract(Name = "gmFruit")]
|
||||
public partial class GmFruit : IEquatable<GmFruit>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GmFruit" /> class.
|
||||
/// </summary>
|
||||
/// <param name="color">color.</param>
|
||||
/// <param name="cultivar">cultivar.</param>
|
||||
/// <param name="origin">origin.</param>
|
||||
/// <param name="lengthCm">lengthCm.</param>
|
||||
public GmFruit(string color = default(string), string cultivar = default(string), string origin = default(string), decimal lengthCm = default(decimal))
|
||||
{
|
||||
this.Color = color;
|
||||
this.Cultivar = cultivar;
|
||||
this.Origin = origin;
|
||||
this.LengthCm = lengthCm;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Color
|
||||
/// </summary>
|
||||
[DataMember(Name = "color", EmitDefaultValue = false)]
|
||||
public string Color { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Cultivar
|
||||
/// </summary>
|
||||
[DataMember(Name = "cultivar", EmitDefaultValue = false)]
|
||||
public string Cultivar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Origin
|
||||
/// </summary>
|
||||
[DataMember(Name = "origin", EmitDefaultValue = false)]
|
||||
public string Origin { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets LengthCm
|
||||
/// </summary>
|
||||
[DataMember(Name = "lengthCm", EmitDefaultValue = false)]
|
||||
public decimal LengthCm { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class GmFruit {\n");
|
||||
sb.Append(" Color: ").Append(Color).Append("\n");
|
||||
sb.Append(" Cultivar: ").Append(Cultivar).Append("\n");
|
||||
sb.Append(" Origin: ").Append(Origin).Append("\n");
|
||||
sb.Append(" LengthCm: ").Append(LengthCm).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as GmFruit).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if GmFruit instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of GmFruit to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(GmFruit input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Color != null)
|
||||
hashCode = hashCode * 59 + this.Color.GetHashCode();
|
||||
if (this.Cultivar != null)
|
||||
hashCode = hashCode * 59 + this.Cultivar.GetHashCode();
|
||||
if (this.Origin != null)
|
||||
hashCode = hashCode * 59 + this.Origin.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.LengthCm.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
// Cultivar (string) pattern
|
||||
Regex regexCultivar = new Regex(@"^[a-zA-Z\\s]*$", RegexOptions.CultureInvariant);
|
||||
if (false == regexCultivar.Match(this.Cultivar).Success)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" });
|
||||
}
|
||||
|
||||
// Origin (string) pattern
|
||||
Regex regexOrigin = new Regex(@"^[A-Z\\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
|
||||
if (false == regexOrigin.Match(this.Origin).Success)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" });
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using JsonSubTypes;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// GrandparentAnimal
|
||||
/// </summary>
|
||||
[DataContract(Name = "GrandparentAnimal")]
|
||||
[JsonConverter(typeof(JsonSubtypes), "PetType")]
|
||||
[JsonSubtypes.KnownSubType(typeof(ParentPet), "ParentPet")]
|
||||
[JsonSubtypes.KnownSubType(typeof(ChildCat), "ChildCat")]
|
||||
[JsonSubtypes.KnownSubType(typeof(ParentPet), "ParentPet")]
|
||||
[JsonSubtypes.KnownSubType(typeof(ChildCat), "ChildCat")]
|
||||
public partial class GrandparentAnimal : IEquatable<GrandparentAnimal>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GrandparentAnimal" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected GrandparentAnimal()
|
||||
{
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GrandparentAnimal" /> class.
|
||||
/// </summary>
|
||||
/// <param name="petType">petType (required).</param>
|
||||
public GrandparentAnimal(string petType = default(string))
|
||||
{
|
||||
// to ensure "petType" is required (not null)
|
||||
this.PetType = petType ?? throw new ArgumentNullException("petType is a required property for GrandparentAnimal and cannot be null");
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PetType
|
||||
/// </summary>
|
||||
[DataMember(Name = "pet_type", EmitDefaultValue = false)]
|
||||
public string PetType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class GrandparentAnimal {\n");
|
||||
sb.Append(" PetType: ").Append(PetType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as GrandparentAnimal).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if GrandparentAnimal instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of GrandparentAnimal to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(GrandparentAnimal input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.PetType != null)
|
||||
hashCode = hashCode * 59 + this.PetType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -53,7 +53,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="_byte">None (required).</param>
|
||||
/// <param name="binary">None.</param>
|
||||
/// <param name="date">None.</param>
|
||||
/// <param name="dateTime">None.</param>
|
||||
/// <param name="dateTime">None (default to "2010-02-01T10:20:10.111110+01:00").</param>
|
||||
/// <param name="password">None.</param>
|
||||
/// <param name="callback">None.</param>
|
||||
public InlineObject3(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float _float = default(float), double _double = default(double), string _string = default(string), string patternWithoutDelimiter = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string))
|
||||
|
||||
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// IsoscelesTriangle
|
||||
/// </summary>
|
||||
[DataContract(Name = "IsoscelesTriangle")]
|
||||
public partial class IsoscelesTriangle : IEquatable<IsoscelesTriangle>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="IsoscelesTriangle" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected IsoscelesTriangle() { }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="IsoscelesTriangle" /> class.
|
||||
/// </summary>
|
||||
/// <param name="shapeType">shapeType (required).</param>
|
||||
/// <param name="triangleType">triangleType (required).</param>
|
||||
public IsoscelesTriangle(string shapeType = default(string), string triangleType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
this.ShapeType = shapeType ?? throw new ArgumentNullException("shapeType is a required property for IsoscelesTriangle and cannot be null");
|
||||
// to ensure "triangleType" is required (not null)
|
||||
this.TriangleType = triangleType ?? throw new ArgumentNullException("triangleType is a required property for IsoscelesTriangle and cannot be null");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ShapeType
|
||||
/// </summary>
|
||||
[DataMember(Name = "shapeType", EmitDefaultValue = false)]
|
||||
public string ShapeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets TriangleType
|
||||
/// </summary>
|
||||
[DataMember(Name = "triangleType", EmitDefaultValue = false)]
|
||||
public string TriangleType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class IsoscelesTriangle {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" TriangleType: ").Append(TriangleType).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as IsoscelesTriangle).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if IsoscelesTriangle instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of IsoscelesTriangle to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(IsoscelesTriangle input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
if (this.TriangleType != null)
|
||||
hashCode = hashCode * 59 + this.TriangleType.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,203 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using JsonSubTypes;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Mammal
|
||||
/// </summary>
|
||||
[DataContract(Name = "mammal")]
|
||||
[JsonConverter(typeof(JsonSubtypes), "ClassName")]
|
||||
public partial class Mammal : IEquatable<Mammal>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines Type
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum TypeEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum Plains for value: plains
|
||||
/// </summary>
|
||||
[EnumMember(Value = "plains")]
|
||||
Plains = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Mountain for value: mountain
|
||||
/// </summary>
|
||||
[EnumMember(Value = "mountain")]
|
||||
Mountain = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Grevys for value: grevys
|
||||
/// </summary>
|
||||
[EnumMember(Value = "grevys")]
|
||||
Grevys = 3
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Type
|
||||
/// </summary>
|
||||
[DataMember(Name = "type", EmitDefaultValue = false)]
|
||||
public TypeEnum? Type { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Mammal" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected Mammal()
|
||||
{
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Mammal" /> class.
|
||||
/// </summary>
|
||||
/// <param name="hasBaleen">hasBaleen.</param>
|
||||
/// <param name="hasTeeth">hasTeeth.</param>
|
||||
/// <param name="className">className (required).</param>
|
||||
/// <param name="type">type.</param>
|
||||
public Mammal(bool hasBaleen = default(bool), bool hasTeeth = default(bool), string className = default(string), TypeEnum? type = default(TypeEnum?))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
this.ClassName = className ?? throw new ArgumentNullException("className is a required property for Mammal and cannot be null");
|
||||
this.HasBaleen = hasBaleen;
|
||||
this.HasTeeth = hasTeeth;
|
||||
this.Type = type;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets HasBaleen
|
||||
/// </summary>
|
||||
[DataMember(Name = "hasBaleen", EmitDefaultValue = false)]
|
||||
public bool HasBaleen { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets HasTeeth
|
||||
/// </summary>
|
||||
[DataMember(Name = "hasTeeth", EmitDefaultValue = false)]
|
||||
public bool HasTeeth { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ClassName
|
||||
/// </summary>
|
||||
[DataMember(Name = "className", EmitDefaultValue = false)]
|
||||
public string ClassName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Mammal {\n");
|
||||
sb.Append(" HasBaleen: ").Append(HasBaleen).Append("\n");
|
||||
sb.Append(" HasTeeth: ").Append(HasTeeth).Append("\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as Mammal).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Mammal instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Mammal to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(Mammal input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.HasBaleen.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.HasTeeth.GetHashCode();
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Type.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using JsonSubTypes;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
[DataContract(Name = "NullableShape")]
|
||||
[JsonConverter(typeof(JsonSubtypes), "ShapeType")]
|
||||
public partial class NullableShape : IEquatable<NullableShape>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NullableShape" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected NullableShape()
|
||||
{
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NullableShape" /> class.
|
||||
/// </summary>
|
||||
/// <param name="shapeType">shapeType (required).</param>
|
||||
/// <param name="quadrilateralType">quadrilateralType (required).</param>
|
||||
/// <param name="triangleType">triangleType (required).</param>
|
||||
public NullableShape(string shapeType = default(string), string quadrilateralType = default(string), string triangleType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
this.ShapeType = shapeType ?? throw new ArgumentNullException("shapeType is a required property for NullableShape and cannot be null");
|
||||
// to ensure "quadrilateralType" is required (not null)
|
||||
this.QuadrilateralType = quadrilateralType ?? throw new ArgumentNullException("quadrilateralType is a required property for NullableShape and cannot be null");
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ShapeType
|
||||
/// </summary>
|
||||
[DataMember(Name = "shapeType", EmitDefaultValue = false)]
|
||||
public string ShapeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets QuadrilateralType
|
||||
/// </summary>
|
||||
[DataMember(Name = "quadrilateralType", EmitDefaultValue = false)]
|
||||
public string QuadrilateralType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class NullableShape {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" QuadrilateralType: ").Append(QuadrilateralType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as NullableShape).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if NullableShape instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of NullableShape to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(NullableShape input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
if (this.QuadrilateralType != null)
|
||||
hashCode = hashCode * 59 + this.QuadrilateralType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// ParentPet
|
||||
/// </summary>
|
||||
[DataContract(Name = "ParentPet")]
|
||||
public partial class ParentPet : GrandparentAnimal, IEquatable<ParentPet>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ParentPet" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected ParentPet()
|
||||
{
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ParentPet" /> class.
|
||||
/// </summary>
|
||||
/// <param name="petType">petType (required) (default to "ParentPet").</param>
|
||||
public ParentPet(string petType = "ParentPet") : base(petType)
|
||||
{
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class ParentPet {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public override string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as ParentPet).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ParentPet instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ParentPet to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(ParentPet input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
foreach(var x in BaseValidate(validationContext)) yield return x;
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using JsonSubTypes;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Pig
|
||||
/// </summary>
|
||||
[DataContract(Name = "Pig")]
|
||||
[JsonConverter(typeof(JsonSubtypes), "ClassName")]
|
||||
public partial class Pig : IEquatable<Pig>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Pig" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected Pig()
|
||||
{
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Pig" /> class.
|
||||
/// </summary>
|
||||
/// <param name="className">className (required).</param>
|
||||
public Pig(string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
this.ClassName = className ?? throw new ArgumentNullException("className is a required property for Pig and cannot be null");
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ClassName
|
||||
/// </summary>
|
||||
[DataMember(Name = "className", EmitDefaultValue = false)]
|
||||
public string ClassName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Pig {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as Pig).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Pig instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Pig to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(Pig input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,160 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using JsonSubTypes;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Quadrilateral
|
||||
/// </summary>
|
||||
[DataContract(Name = "Quadrilateral")]
|
||||
[JsonConverter(typeof(JsonSubtypes), "QuadrilateralType")]
|
||||
public partial class Quadrilateral : IEquatable<Quadrilateral>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Quadrilateral" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected Quadrilateral()
|
||||
{
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Quadrilateral" /> class.
|
||||
/// </summary>
|
||||
/// <param name="shapeType">shapeType (required).</param>
|
||||
/// <param name="quadrilateralType">quadrilateralType (required).</param>
|
||||
public Quadrilateral(string shapeType = default(string), string quadrilateralType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
this.ShapeType = shapeType ?? throw new ArgumentNullException("shapeType is a required property for Quadrilateral and cannot be null");
|
||||
// to ensure "quadrilateralType" is required (not null)
|
||||
this.QuadrilateralType = quadrilateralType ?? throw new ArgumentNullException("quadrilateralType is a required property for Quadrilateral and cannot be null");
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ShapeType
|
||||
/// </summary>
|
||||
[DataMember(Name = "shapeType", EmitDefaultValue = false)]
|
||||
public string ShapeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets QuadrilateralType
|
||||
/// </summary>
|
||||
[DataMember(Name = "quadrilateralType", EmitDefaultValue = false)]
|
||||
public string QuadrilateralType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Quadrilateral {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" QuadrilateralType: ").Append(QuadrilateralType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as Quadrilateral).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Quadrilateral instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Quadrilateral to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(Quadrilateral input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
if (this.QuadrilateralType != null)
|
||||
hashCode = hashCode * 59 + this.QuadrilateralType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// QuadrilateralInterface
|
||||
/// </summary>
|
||||
[DataContract(Name = "QuadrilateralInterface")]
|
||||
public partial class QuadrilateralInterface : IEquatable<QuadrilateralInterface>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="QuadrilateralInterface" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected QuadrilateralInterface()
|
||||
{
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="QuadrilateralInterface" /> class.
|
||||
/// </summary>
|
||||
/// <param name="quadrilateralType">quadrilateralType (required).</param>
|
||||
public QuadrilateralInterface(string quadrilateralType = default(string))
|
||||
{
|
||||
// to ensure "quadrilateralType" is required (not null)
|
||||
this.QuadrilateralType = quadrilateralType ?? throw new ArgumentNullException("quadrilateralType is a required property for QuadrilateralInterface and cannot be null");
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets QuadrilateralType
|
||||
/// </summary>
|
||||
[DataMember(Name = "quadrilateralType", EmitDefaultValue = false)]
|
||||
public string QuadrilateralType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class QuadrilateralInterface {\n");
|
||||
sb.Append(" QuadrilateralType: ").Append(QuadrilateralType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as QuadrilateralInterface).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if QuadrilateralInterface instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of QuadrilateralInterface to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(QuadrilateralInterface input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.QuadrilateralType != null)
|
||||
hashCode = hashCode * 59 + this.QuadrilateralType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// ScaleneTriangle
|
||||
/// </summary>
|
||||
[DataContract(Name = "ScaleneTriangle")]
|
||||
public partial class ScaleneTriangle : IEquatable<ScaleneTriangle>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ScaleneTriangle" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected ScaleneTriangle()
|
||||
{
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ScaleneTriangle" /> class.
|
||||
/// </summary>
|
||||
/// <param name="shapeType">shapeType (required).</param>
|
||||
/// <param name="triangleType">triangleType (required).</param>
|
||||
public ScaleneTriangle(string shapeType = default(string), string triangleType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
this.ShapeType = shapeType ?? throw new ArgumentNullException("shapeType is a required property for ScaleneTriangle and cannot be null");
|
||||
// to ensure "triangleType" is required (not null)
|
||||
this.TriangleType = triangleType ?? throw new ArgumentNullException("triangleType is a required property for ScaleneTriangle and cannot be null");
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ShapeType
|
||||
/// </summary>
|
||||
[DataMember(Name = "shapeType", EmitDefaultValue = false)]
|
||||
public string ShapeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets TriangleType
|
||||
/// </summary>
|
||||
[DataMember(Name = "triangleType", EmitDefaultValue = false)]
|
||||
public string TriangleType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class ScaleneTriangle {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" TriangleType: ").Append(TriangleType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as ScaleneTriangle).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ScaleneTriangle instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ScaleneTriangle to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(ScaleneTriangle input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
if (this.TriangleType != null)
|
||||
hashCode = hashCode * 59 + this.TriangleType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using JsonSubTypes;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Shape
|
||||
/// </summary>
|
||||
[DataContract(Name = "Shape")]
|
||||
[JsonConverter(typeof(JsonSubtypes), "ShapeType")]
|
||||
public partial class Shape : IEquatable<Shape>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Shape" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected Shape()
|
||||
{
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Shape" /> class.
|
||||
/// </summary>
|
||||
/// <param name="shapeType">shapeType (required).</param>
|
||||
/// <param name="quadrilateralType">quadrilateralType (required).</param>
|
||||
/// <param name="triangleType">triangleType (required).</param>
|
||||
public Shape(string shapeType = default(string), string quadrilateralType = default(string), string triangleType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
this.ShapeType = shapeType ?? throw new ArgumentNullException("shapeType is a required property for Shape and cannot be null");
|
||||
// to ensure "quadrilateralType" is required (not null)
|
||||
this.QuadrilateralType = quadrilateralType ?? throw new ArgumentNullException("quadrilateralType is a required property for Shape and cannot be null");
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ShapeType
|
||||
/// </summary>
|
||||
[DataMember(Name = "shapeType", EmitDefaultValue = false)]
|
||||
public string ShapeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets QuadrilateralType
|
||||
/// </summary>
|
||||
[DataMember(Name = "quadrilateralType", EmitDefaultValue = false)]
|
||||
public string QuadrilateralType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Shape {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" QuadrilateralType: ").Append(QuadrilateralType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as Shape).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Shape instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Shape to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(Shape input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
if (this.QuadrilateralType != null)
|
||||
hashCode = hashCode * 59 + this.QuadrilateralType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// ShapeInterface
|
||||
/// </summary>
|
||||
[DataContract(Name = "ShapeInterface")]
|
||||
public partial class ShapeInterface : IEquatable<ShapeInterface>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ShapeInterface" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected ShapeInterface()
|
||||
{
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ShapeInterface" /> class.
|
||||
/// </summary>
|
||||
/// <param name="shapeType">shapeType (required).</param>
|
||||
public ShapeInterface(string shapeType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
this.ShapeType = shapeType ?? throw new ArgumentNullException("shapeType is a required property for ShapeInterface and cannot be null");
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ShapeType
|
||||
/// </summary>
|
||||
[DataMember(Name = "shapeType", EmitDefaultValue = false)]
|
||||
public string ShapeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class ShapeInterface {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as ShapeInterface).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ShapeInterface instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ShapeInterface to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(ShapeInterface input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using JsonSubTypes;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// The value may be a shape or the 'null' value. This is introduced in OAS schema >= 3.1.
|
||||
/// </summary>
|
||||
[DataContract(Name = "ShapeOrNull")]
|
||||
[JsonConverter(typeof(JsonSubtypes), "ShapeType")]
|
||||
public partial class ShapeOrNull : IEquatable<ShapeOrNull>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ShapeOrNull" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected ShapeOrNull()
|
||||
{
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ShapeOrNull" /> class.
|
||||
/// </summary>
|
||||
/// <param name="shapeType">shapeType (required).</param>
|
||||
/// <param name="quadrilateralType">quadrilateralType (required).</param>
|
||||
/// <param name="triangleType">triangleType (required).</param>
|
||||
public ShapeOrNull(string shapeType = default(string), string quadrilateralType = default(string), string triangleType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
this.ShapeType = shapeType ?? throw new ArgumentNullException("shapeType is a required property for ShapeOrNull and cannot be null");
|
||||
// to ensure "quadrilateralType" is required (not null)
|
||||
this.QuadrilateralType = quadrilateralType ?? throw new ArgumentNullException("quadrilateralType is a required property for ShapeOrNull and cannot be null");
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ShapeType
|
||||
/// </summary>
|
||||
[DataMember(Name = "shapeType", EmitDefaultValue = false)]
|
||||
public string ShapeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets QuadrilateralType
|
||||
/// </summary>
|
||||
[DataMember(Name = "quadrilateralType", EmitDefaultValue = false)]
|
||||
public string QuadrilateralType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class ShapeOrNull {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" QuadrilateralType: ").Append(QuadrilateralType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as ShapeOrNull).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ShapeOrNull instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ShapeOrNull to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(ShapeOrNull input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
if (this.QuadrilateralType != null)
|
||||
hashCode = hashCode * 59 + this.QuadrilateralType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user