From 7b32de1bc30ce4da416f82d6d07885971f22baa8 Mon Sep 17 00:00:00 2001
From: Tom E <1036527+thommy101@users.noreply.github.com>
Date: Sat, 9 May 2020 14:24:33 +0200
Subject: [PATCH 1/4] [c-sharp] Fix #6225 default values with discriminator
---
.../org/openapitools/codegen/languages/CSharpClientCodegen.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java
index a12d712c3ffa..340532348fa1 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java
@@ -609,7 +609,7 @@ public CodegenModel fromModel(String name, Schema model) {
}
for (final CodegenProperty property : codegenModel.readWriteVars) {
- if (property.defaultValue == null && parentCodegenModel.discriminator != null && property.baseName.equals(parentCodegenModel.discriminator.getPropertyName())) {
+ if (property.defaultValue == null && parentCodegenModel.discriminator != null && property.name.equals(parentCodegenModel.discriminator.getPropertyName())) {
property.defaultValue = "\"" + name + "\"";
}
}
From 0ce5405b04c83f5e77cc9ddad4e3ae611154fdde Mon Sep 17 00:00:00 2001
From: Tom E <1036527+thommy101@users.noreply.github.com>
Date: Sat, 9 May 2020 14:26:33 +0200
Subject: [PATCH 2/4] [c-sharp] Update sample files
---
.../src/Org.OpenAPITools/Model/Cat.cs | 2 +-
.../src/Org.OpenAPITools/Model/Dog.cs | 2 +-
.../src/Org.OpenAPITools/Model/Cat.cs | 2 +-
.../src/Org.OpenAPITools/Model/Dog.cs | 2 +-
.../src/Org.OpenAPITools/Model/Cat.cs | 2 +-
.../src/Org.OpenAPITools/Model/Dog.cs | 2 +-
.../Org.OpenAPITools.sln | 10 +-
.../csharp/OpenAPIClientNetStandard/README.md | 45 +-
.../docs/AdditionalPropertiesClass.md | 13 +-
.../docs/AnotherFakeApi.md | 8 +-
.../docs/DefaultApi.md | 32 +-
.../OpenAPIClientNetStandard/docs/EnumTest.md | 3 +
.../OpenAPIClientNetStandard/docs/FakeApi.md | 162 +++--
.../docs/FakeClassnameTags123Api.md | 8 +-
.../OpenAPIClientNetStandard/docs/Foo.md | 6 +-
.../docs/FormatTest.md | 3 +-
.../docs/HealthCheckResult.md | 13 +
.../docs/InlineObject.md | 6 +-
.../docs/InlineObject1.md | 6 +-
.../docs/InlineObject2.md | 6 +-
.../docs/InlineObject3.md | 22 +-
.../docs/InlineObject4.md | 6 +-
.../docs/InlineObject5.md | 6 +-
.../docs/InlineResponseDefault.md | 6 +-
.../docs/NullableClass.md | 24 +
.../docs/OuterEnumDefaultValue.md | 12 +
.../docs/OuterEnumInteger.md | 12 +
.../docs/OuterEnumIntegerDefaultValue.md | 12 +
.../OpenAPIClientNetStandard/docs/PetApi.md | 19 +-
.../OpenAPIClientNetStandard/docs/StoreApi.md | 10 +-
.../OpenAPIClientNetStandard/docs/UserApi.md | 40 +-
.../Org.OpenAPITools/Api/AnotherFakeApi.cs | 60 +-
.../src/Org.OpenAPITools/Api/DefaultApi.cs | 19 +-
.../src/Org.OpenAPITools/Api/FakeApi.cs | 633 +++++++++++------
.../Api/FakeClassnameTags123Api.cs | 60 +-
.../src/Org.OpenAPITools/Api/PetApi.cs | 120 ++--
.../src/Org.OpenAPITools/Api/StoreApi.cs | 62 +-
.../src/Org.OpenAPITools/Api/UserApi.cs | 248 +++----
.../Model/AdditionalPropertiesClass.cs | 200 +-----
.../src/Org.OpenAPITools/Model/Animal.cs | 1 -
.../src/Org.OpenAPITools/Model/Cat.cs | 2 +-
.../src/Org.OpenAPITools/Model/Dog.cs | 2 +-
.../src/Org.OpenAPITools/Model/EnumTest.cs | 53 +-
.../src/Org.OpenAPITools/Model/Foo.cs | 2 +-
.../src/Org.OpenAPITools/Model/FormatTest.cs | 42 +-
.../Model/HealthCheckResult.cs | 113 ++++
.../Org.OpenAPITools/Model/InlineObject.cs | 2 +-
.../Org.OpenAPITools/Model/InlineObject1.cs | 2 +-
.../Org.OpenAPITools/Model/InlineObject2.cs | 3 +-
.../Org.OpenAPITools/Model/InlineObject3.cs | 32 +-
.../Org.OpenAPITools/Model/InlineObject4.cs | 8 +-
.../Org.OpenAPITools/Model/InlineObject5.cs | 5 +-
.../Model/InlineResponseDefault.cs | 2 +-
.../Org.OpenAPITools/Model/NullableClass.cs | 306 +++++++++
.../Model/OuterEnumDefaultValue.cs | 53 ++
.../Model/OuterEnumInteger.cs | 53 ++
.../Model/OuterEnumIntegerDefaultValue.cs | 53 ++
.../Org.OpenAPITools/Org.OpenAPITools.csproj | 2 +-
.../src/Org.OpenAPITools/Model/Cat.cs | 2 +-
.../src/Org.OpenAPITools/Model/Dog.cs | 2 +-
.../OpenAPIClient/.openapi-generator/VERSION | 2 +-
.../petstore/csharp/OpenAPIClient/README.md | 56 +-
.../petstore/csharp/OpenAPIClient/build.bat | 4 +-
.../petstore/csharp/OpenAPIClient/build.sh | 4 +-
.../docs/AdditionalPropertiesClass.md | 6 +-
.../csharp/OpenAPIClient/docs/Animal.md | 6 +-
.../OpenAPIClient/docs/AnotherFakeApi.md | 32 +-
.../csharp/OpenAPIClient/docs/ApiResponse.md | 8 +-
.../docs/ArrayOfArrayOfNumberOnly.md | 8 +-
.../OpenAPIClient/docs/ArrayOfNumberOnly.md | 8 +-
.../csharp/OpenAPIClient/docs/ArrayTest.md | 8 +-
.../OpenAPIClient/docs/Capitalization.md | 6 +-
.../petstore/csharp/OpenAPIClient/docs/Cat.md | 8 +-
.../csharp/OpenAPIClient/docs/CatAllOf.md | 13 +
.../csharp/OpenAPIClient/docs/Category.md | 8 +-
.../csharp/OpenAPIClient/docs/ClassModel.md | 6 +-
.../csharp/OpenAPIClient/docs/DefaultApi.md | 32 +-
.../petstore/csharp/OpenAPIClient/docs/Dog.md | 6 +-
.../csharp/OpenAPIClient/docs/DogAllOf.md | 13 +
.../csharp/OpenAPIClient/docs/EnumArrays.md | 6 +-
.../csharp/OpenAPIClient/docs/EnumClass.md | 6 +-
.../csharp/OpenAPIClient/docs/EnumTest.md | 18 +-
.../csharp/OpenAPIClient/docs/FakeApi.md | 621 +++++++++++++----
.../docs/FakeClassnameTags123Api.md | 32 +-
.../csharp/OpenAPIClient/docs/File.md | 6 +-
.../OpenAPIClient/docs/FileSchemaTestClass.md | 6 +-
.../petstore/csharp/OpenAPIClient/docs/Foo.md | 6 +-
.../csharp/OpenAPIClient/docs/FormatTest.md | 24 +-
.../OpenAPIClient/docs/HasOnlyReadOnly.md | 10 +-
.../OpenAPIClient/docs/HealthCheckResult.md | 6 +-
.../csharp/OpenAPIClient/docs/InlineObject.md | 6 +-
.../OpenAPIClient/docs/InlineObject1.md | 6 +-
.../OpenAPIClient/docs/InlineObject2.md | 6 +-
.../OpenAPIClient/docs/InlineObject3.md | 22 +-
.../OpenAPIClient/docs/InlineObject4.md | 6 +-
.../OpenAPIClient/docs/InlineObject5.md | 6 +-
.../docs/InlineResponseDefault.md | 6 +-
.../csharp/OpenAPIClient/docs/List.md | 6 +-
.../csharp/OpenAPIClient/docs/MapTest.md | 10 +-
...dPropertiesAndAdditionalPropertiesClass.md | 10 +-
.../OpenAPIClient/docs/Model200Response.md | 8 +-
.../csharp/OpenAPIClient/docs/ModelClient.md | 6 +-
.../csharp/OpenAPIClient/docs/Name.md | 12 +-
.../OpenAPIClient/docs/NullableClass.md | 6 +-
.../csharp/OpenAPIClient/docs/NumberOnly.md | 8 +-
.../csharp/OpenAPIClient/docs/Order.md | 16 +-
.../OpenAPIClient/docs/OuterComposite.md | 10 +-
.../csharp/OpenAPIClient/docs/OuterEnum.md | 6 +-
.../docs/OuterEnumDefaultValue.md | 6 +-
.../OpenAPIClient/docs/OuterEnumInteger.md | 6 +-
.../docs/OuterEnumIntegerDefaultValue.md | 6 +-
.../petstore/csharp/OpenAPIClient/docs/Pet.md | 8 +-
.../csharp/OpenAPIClient/docs/PetApi.md | 336 ++++++---
.../OpenAPIClient/docs/ReadOnlyFirst.md | 8 +-
.../csharp/OpenAPIClient/docs/Return.md | 8 +-
.../OpenAPIClient/docs/SpecialModelName.md | 8 +-
.../csharp/OpenAPIClient/docs/StoreApi.md | 144 ++--
.../petstore/csharp/OpenAPIClient/docs/Tag.md | 8 +-
.../csharp/OpenAPIClient/docs/User.md | 10 +-
.../csharp/OpenAPIClient/docs/UserApi.md | 265 ++++++--
.../petstore/csharp/OpenAPIClient/git_push.sh | 14 +-
.../csharp/OpenAPIClient/mono_nunit_test.sh | 6 +-
.../Model/CatAllOfTests.cs | 79 +++
.../Model/DogAllOfTests.cs | 79 +++
.../Org.OpenAPITools.Test.csproj | 26 +-
.../src/Org.OpenAPITools.Test/packages.config | 6 +-
.../Org.OpenAPITools/Api/AnotherFakeApi.cs | 4 +-
.../src/Org.OpenAPITools/Api/DefaultApi.cs | 4 +-
.../src/Org.OpenAPITools/Api/FakeApi.cs | 636 +++++++++++++++---
.../Api/FakeClassnameTags123Api.cs | 4 +-
.../src/Org.OpenAPITools/Api/PetApi.cs | 86 +--
.../src/Org.OpenAPITools/Api/StoreApi.cs | 64 +-
.../src/Org.OpenAPITools/Api/UserApi.cs | 6 +-
.../src/Org.OpenAPITools/Client/ApiClient.cs | 6 +-
.../Org.OpenAPITools/Client/ApiException.cs | 2 +-
.../Org.OpenAPITools/Client/ApiResponse.cs | 2 +-
.../Org.OpenAPITools/Client/Configuration.cs | 2 +-
.../Client/ExceptionFactory.cs | 2 +-
.../Client/GlobalConfiguration.cs | 2 +-
.../Org.OpenAPITools/Client/IApiAccessor.cs | 2 +-
.../Client/IReadableConfiguration.cs | 2 +-
.../Client/OpenAPIDateConverter.cs | 2 +-
.../Model/AdditionalPropertiesClass.cs | 4 +-
.../src/Org.OpenAPITools/Model/Animal.cs | 7 +-
.../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-
.../Model/ArrayOfArrayOfNumberOnly.cs | 7 +-
.../Model/ArrayOfNumberOnly.cs | 7 +-
.../src/Org.OpenAPITools/Model/ArrayTest.cs | 9 +-
.../Org.OpenAPITools/Model/Capitalization.cs | 2 +-
.../src/Org.OpenAPITools/Model/Cat.cs | 6 +-
.../src/Org.OpenAPITools/Model/CatAllOf.cs | 124 ++++
.../src/Org.OpenAPITools/Model/Category.cs | 9 +-
.../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +-
.../src/Org.OpenAPITools/Model/Dog.cs | 4 +-
.../src/Org.OpenAPITools/Model/DogAllOf.cs | 124 ++++
.../src/Org.OpenAPITools/Model/EnumArrays.cs | 3 +-
.../src/Org.OpenAPITools/Model/EnumClass.cs | 2 +-
.../src/Org.OpenAPITools/Model/EnumTest.cs | 48 +-
.../src/Org.OpenAPITools/Model/File.cs | 2 +-
.../Model/FileSchemaTestClass.cs | 3 +-
.../src/Org.OpenAPITools/Model/Foo.cs | 2 +-
.../src/Org.OpenAPITools/Model/FormatTest.cs | 90 ++-
.../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 2 +-
.../Model/HealthCheckResult.cs | 5 +-
.../Org.OpenAPITools/Model/InlineObject.cs | 2 +-
.../Org.OpenAPITools/Model/InlineObject1.cs | 2 +-
.../Org.OpenAPITools/Model/InlineObject2.cs | 3 +-
.../Org.OpenAPITools/Model/InlineObject3.cs | 84 ++-
.../Org.OpenAPITools/Model/InlineObject4.cs | 8 +-
.../Org.OpenAPITools/Model/InlineObject5.cs | 5 +-
.../Model/InlineResponseDefault.cs | 2 +-
.../src/Org.OpenAPITools/Model/List.cs | 2 +-
.../src/Org.OpenAPITools/Model/MapTest.cs | 12 +-
...dPropertiesAndAdditionalPropertiesClass.cs | 9 +-
.../Model/Model200Response.cs | 6 +-
.../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +-
.../src/Org.OpenAPITools/Model/Name.cs | 13 +-
.../Org.OpenAPITools/Model/NullableClass.cs | 38 +-
.../src/Org.OpenAPITools/Model/NumberOnly.cs | 6 +-
.../src/Org.OpenAPITools/Model/Order.cs | 14 +-
.../Org.OpenAPITools/Model/OuterComposite.cs | 8 +-
.../src/Org.OpenAPITools/Model/OuterEnum.cs | 2 +-
.../Model/OuterEnumDefaultValue.cs | 2 +-
.../Model/OuterEnumInteger.cs | 2 +-
.../Model/OuterEnumIntegerDefaultValue.cs | 2 +-
.../src/Org.OpenAPITools/Model/Pet.cs | 14 +-
.../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 2 +-
.../src/Org.OpenAPITools/Model/Return.cs | 6 +-
.../Model/SpecialModelName.cs | 6 +-
.../src/Org.OpenAPITools/Model/Tag.cs | 6 +-
.../src/Org.OpenAPITools/Model/User.cs | 8 +-
.../Org.OpenAPITools/Org.OpenAPITools.csproj | 26 +-
.../Org.OpenAPITools/Org.OpenAPITools.nuspec | 4 +-
.../src/Org.OpenAPITools/packages.config | 5 +-
194 files changed, 4592 insertions(+), 1801 deletions(-)
create mode 100644 samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/HealthCheckResult.md
create mode 100644 samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/NullableClass.md
create mode 100644 samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/OuterEnumDefaultValue.md
create mode 100644 samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/OuterEnumInteger.md
create mode 100644 samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/OuterEnumIntegerDefaultValue.md
create mode 100644 samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Model/HealthCheckResult.cs
create mode 100644 samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Model/NullableClass.cs
create mode 100644 samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs
create mode 100644 samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Model/OuterEnumInteger.cs
create mode 100644 samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs
create mode 100644 samples/openapi3/client/petstore/csharp/OpenAPIClient/docs/CatAllOf.md
create mode 100644 samples/openapi3/client/petstore/csharp/OpenAPIClient/docs/DogAllOf.md
create mode 100644 samples/openapi3/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CatAllOfTests.cs
create mode 100644 samples/openapi3/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DogAllOfTests.cs
create mode 100644 samples/openapi3/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/CatAllOf.cs
create mode 100644 samples/openapi3/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/DogAllOf.cs
diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Cat.cs
index 42674c5ffce8..2326d55ac486 100644
--- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Cat.cs
+++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Cat.cs
@@ -39,7 +39,7 @@ protected Cat() { }
/// Initializes a new instance of the class.
///
/// declawed.
- public Cat(bool declawed = default(bool), string className = default(string), string color = "red") : base(className, color)
+ public Cat(bool declawed = default(bool), string className = "Cat", string color = "red") : base(className, color)
{
this.Declawed = declawed;
}
diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Dog.cs
index 96e568628fe5..b925fb99c324 100644
--- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Dog.cs
+++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Dog.cs
@@ -39,7 +39,7 @@ protected Dog() { }
/// Initializes a new instance of the class.
///
/// breed.
- public Dog(string breed = default(string), string className = default(string), string color = "red") : base(className, color)
+ public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color)
{
this.Breed = breed;
}
diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Model/Cat.cs
index 036ed97c89ef..9ca5d9c2b5ea 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Model/Cat.cs
+++ b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Model/Cat.cs
@@ -39,7 +39,7 @@ protected Cat() { }
/// Initializes a new instance of the class.
///
/// declawed.
- public Cat(bool declawed = default(bool), string className = default(string), string color = "red") : base(className, color)
+ public Cat(bool declawed = default(bool), string className = "Cat", string color = "red") : base(className, color)
{
this.Declawed = declawed;
}
diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Model/Dog.cs
index bc15d1113639..cfc41f564489 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Model/Dog.cs
+++ b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Model/Dog.cs
@@ -39,7 +39,7 @@ protected Dog() { }
/// Initializes a new instance of the class.
///
/// breed.
- public Dog(string breed = default(string), string className = default(string), string color = "red") : base(className, color)
+ public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color)
{
this.Breed = breed;
}
diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Model/Cat.cs
index 42674c5ffce8..2326d55ac486 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Model/Cat.cs
+++ b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Model/Cat.cs
@@ -39,7 +39,7 @@ protected Cat() { }
/// Initializes a new instance of the class.
///
/// declawed.
- public Cat(bool declawed = default(bool), string className = default(string), string color = "red") : base(className, color)
+ public Cat(bool declawed = default(bool), string className = "Cat", string color = "red") : base(className, color)
{
this.Declawed = declawed;
}
diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Model/Dog.cs
index 96e568628fe5..b925fb99c324 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Model/Dog.cs
+++ b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Model/Dog.cs
@@ -39,7 +39,7 @@ protected Dog() { }
/// Initializes a new instance of the class.
///
/// breed.
- public Dog(string breed = default(string), string className = default(string), string color = "red") : base(className, color)
+ public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color)
{
this.Breed = breed;
}
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/Org.OpenAPITools.sln b/samples/client/petstore/csharp/OpenAPIClientNetStandard/Org.OpenAPITools.sln
index 4f3b7e0fdef6..8d85f5b71f0b 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/Org.OpenAPITools.sln
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/Org.OpenAPITools.sln
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Org.OpenAPITools", "src\Org.OpenAPITools\Org.OpenAPITools.csproj", "{3AB1F259-1769-484B-9411-84505FCCBD55}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Org.OpenAPITools", "src\Org.OpenAPITools\Org.OpenAPITools.csproj", "{321C8C3F-0156-40C1-AE42-D59761FB9B6C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -10,10 +10,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {3AB1F259-1769-484B-9411-84505FCCBD55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3AB1F259-1769-484B-9411-84505FCCBD55}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3AB1F259-1769-484B-9411-84505FCCBD55}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {3AB1F259-1769-484B-9411-84505FCCBD55}.Release|Any CPU.Build.0 = Release|Any CPU
+ {321C8C3F-0156-40C1-AE42-D59761FB9B6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {321C8C3F-0156-40C1-AE42-D59761FB9B6C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {321C8C3F-0156-40C1-AE42-D59761FB9B6C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {321C8C3F-0156-40C1-AE42-D59761FB9B6C}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/README.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/README.md
index 19c69aa88d0b..ec898745410c 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/README.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/README.md
@@ -55,12 +55,12 @@ namespace Example
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new AnotherFakeApi(Configuration.Default);
- var body = new ModelClient(); // ModelClient | client model
+ var modelClient = new ModelClient(); // ModelClient | client model
try
{
// To test special tags
- ModelClient result = apiInstance.Call123TestSpecialTags(body);
+ ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
Debug.WriteLine(result);
}
catch (ApiException e)
@@ -82,7 +82,9 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AnotherFakeApi* | [**Call123TestSpecialTags**](docs/AnotherFakeApi.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
-*FakeApi* | [**CreateXmlItem**](docs/FakeApi.md#createxmlitem) | **POST** /fake/create_xml_item | creates an XmlItem
+*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 |
@@ -90,7 +92,7 @@ Class | Method | HTTP request | Description
*FakeApi* | [**TestBodyWithFileSchema**](docs/FakeApi.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
*FakeApi* | [**TestBodyWithQueryParams**](docs/FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
*FakeApi* | [**TestClientModel**](docs/FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
-*FakeApi* | [**TestEndpointParameters**](docs/FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+*FakeApi* | [**TestEndpointParameters**](docs/FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*FakeApi* | [**TestEnumParameters**](docs/FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
*FakeApi* | [**TestGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
*FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
@@ -122,21 +124,12 @@ Class | Method | HTTP request | Description
## Documentation for Models
- - [Model.AdditionalPropertiesAnyType](docs/AdditionalPropertiesAnyType.md)
- - [Model.AdditionalPropertiesArray](docs/AdditionalPropertiesArray.md)
- - [Model.AdditionalPropertiesBoolean](docs/AdditionalPropertiesBoolean.md)
- [Model.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
- - [Model.AdditionalPropertiesInteger](docs/AdditionalPropertiesInteger.md)
- - [Model.AdditionalPropertiesNumber](docs/AdditionalPropertiesNumber.md)
- - [Model.AdditionalPropertiesObject](docs/AdditionalPropertiesObject.md)
- - [Model.AdditionalPropertiesString](docs/AdditionalPropertiesString.md)
- [Model.Animal](docs/Animal.md)
- [Model.ApiResponse](docs/ApiResponse.md)
- [Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
- [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
- [Model.ArrayTest](docs/ArrayTest.md)
- - [Model.BigCat](docs/BigCat.md)
- - [Model.BigCatAllOf](docs/BigCatAllOf.md)
- [Model.Capitalization](docs/Capitalization.md)
- [Model.Cat](docs/Cat.md)
- [Model.CatAllOf](docs/CatAllOf.md)
@@ -149,27 +142,37 @@ Class | Method | HTTP request | Description
- [Model.EnumTest](docs/EnumTest.md)
- [Model.File](docs/File.md)
- [Model.FileSchemaTestClass](docs/FileSchemaTestClass.md)
+ - [Model.Foo](docs/Foo.md)
- [Model.FormatTest](docs/FormatTest.md)
- [Model.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
+ - [Model.HealthCheckResult](docs/HealthCheckResult.md)
+ - [Model.InlineObject](docs/InlineObject.md)
+ - [Model.InlineObject1](docs/InlineObject1.md)
+ - [Model.InlineObject2](docs/InlineObject2.md)
+ - [Model.InlineObject3](docs/InlineObject3.md)
+ - [Model.InlineObject4](docs/InlineObject4.md)
+ - [Model.InlineObject5](docs/InlineObject5.md)
+ - [Model.InlineResponseDefault](docs/InlineResponseDefault.md)
- [Model.List](docs/List.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.NumberOnly](docs/NumberOnly.md)
- [Model.Order](docs/Order.md)
- [Model.OuterComposite](docs/OuterComposite.md)
- [Model.OuterEnum](docs/OuterEnum.md)
+ - [Model.OuterEnumDefaultValue](docs/OuterEnumDefaultValue.md)
+ - [Model.OuterEnumInteger](docs/OuterEnumInteger.md)
+ - [Model.OuterEnumIntegerDefaultValue](docs/OuterEnumIntegerDefaultValue.md)
- [Model.Pet](docs/Pet.md)
- [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
- [Model.Return](docs/Return.md)
- [Model.SpecialModelName](docs/SpecialModelName.md)
- [Model.Tag](docs/Tag.md)
- - [Model.TypeHolderDefault](docs/TypeHolderDefault.md)
- - [Model.TypeHolderExample](docs/TypeHolderExample.md)
- [Model.User](docs/User.md)
- - [Model.XmlItem](docs/XmlItem.md)
## Documentation for Authorization
@@ -191,12 +194,22 @@ Class | Method | HTTP request | Description
- **Location**: URL query string
+### bearer_test
+
+
+- **Type**: HTTP bearer authentication
+
+
### http_basic_test
- **Type**: HTTP basic authentication
+### http_signature_test
+
+
+
### petstore_auth
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/AdditionalPropertiesClass.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/AdditionalPropertiesClass.md
index d07f57619d5e..847bf120968f 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/AdditionalPropertiesClass.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/AdditionalPropertiesClass.md
@@ -5,17 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**MapString** | **Dictionary<string, string>** | | [optional]
-**MapNumber** | **Dictionary<string, decimal>** | | [optional]
-**MapInteger** | **Dictionary<string, int>** | | [optional]
-**MapBoolean** | **Dictionary<string, bool>** | | [optional]
-**MapArrayInteger** | **Dictionary<string, List<int>>** | | [optional]
-**MapArrayAnytype** | **Dictionary<string, List<Object>>** | | [optional]
-**MapMapString** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
-**MapMapAnytype** | **Dictionary<string, Dictionary<string, Object>>** | | [optional]
-**Anytype1** | [**Object**](.md) | | [optional]
-**Anytype2** | [**Object**](.md) | | [optional]
-**Anytype3** | [**Object**](.md) | | [optional]
+**MapProperty** | **Dictionary<string, string>** | | [optional]
+**MapOfMapProperty** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/AnotherFakeApi.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/AnotherFakeApi.md
index 5af41a1862c2..c7cb3d05138b 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/AnotherFakeApi.md
@@ -10,7 +10,7 @@ Method | HTTP request | Description
## Call123TestSpecialTags
-> ModelClient Call123TestSpecialTags (ModelClient body)
+> ModelClient Call123TestSpecialTags (ModelClient modelClient)
To test special tags
@@ -33,12 +33,12 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new AnotherFakeApi(Configuration.Default);
- var body = new ModelClient(); // ModelClient | client model
+ var modelClient = new ModelClient(); // ModelClient | client model
try
{
// To test special tags
- ModelClient result = apiInstance.Call123TestSpecialTags(body);
+ ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
Debug.WriteLine(result);
}
catch (ApiException e)
@@ -57,7 +57,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**ModelClient**](ModelClient.md)| client model |
+ **modelClient** | [**ModelClient**](ModelClient.md)| client model |
### Return type
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/DefaultApi.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/DefaultApi.md
index 92f2dc125c04..7ee074eba27c 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/DefaultApi.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/DefaultApi.md
@@ -7,15 +7,17 @@ Method | HTTP request | Description
[**FooGet**](DefaultApi.md#fooget) | **GET** /foo |
-
-# **FooGet**
+
+## FooGet
+
> InlineResponseDefault FooGet ()
### Example
+
```csharp
-using System;
+using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
@@ -25,18 +27,21 @@ namespace Example
{
public class FooGetExample
{
- public void main()
+ public static void Main()
{
- var apiInstance = new DefaultApi();
+ Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new DefaultApi(Configuration.Default);
try
{
InlineResponseDefault result = apiInstance.FooGet();
Debug.WriteLine(result);
}
- catch (Exception e)
+ catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.FooGet: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
}
}
}
@@ -44,6 +49,7 @@ namespace Example
```
### Parameters
+
This endpoint does not need any parameter.
### Return type
@@ -56,8 +62,16 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **0** | response | - |
-[[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)
+[[Back to top]](#)
+[[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/EnumTest.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/EnumTest.md
index f8bc67baa6ab..a8a888d45249 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/EnumTest.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/EnumTest.md
@@ -10,6 +10,9 @@ Name | Type | Description | Notes
**EnumInteger** | **int** | | [optional]
**EnumNumber** | **double** | | [optional]
**OuterEnum** | **OuterEnum** | | [optional]
+**OuterEnumInteger** | **OuterEnumInteger** | | [optional]
+**OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional]
+**OuterEnumIntegerDefaultValue** | **OuterEnumIntegerDefaultValue** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeApi.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeApi.md
index 661c2cba6ab3..38ab478e715b 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeApi.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeApi.md
@@ -4,7 +4,8 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**CreateXmlItem**](FakeApi.md#createxmlitem) | **POST** /fake/create_xml_item | creates an XmlItem
+[**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 |
@@ -12,7 +13,7 @@ Method | HTTP request | Description
[**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
-[**TestEndpointParameters**](FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+[**TestEndpointParameters**](FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
[**TestEnumParameters**](FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
[**TestGroupParameters**](FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
[**TestInlineAdditionalProperties**](FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
@@ -21,13 +22,80 @@ Method | HTTP request | Description
-## CreateXmlItem
+## FakeHealthGet
-> void CreateXmlItem (XmlItem xmlItem)
+> HealthCheckResult FakeHealthGet ()
-creates an XmlItem
+Health check endpoint
-this route creates an XmlItem
+### 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 FakeHealthGetExample
+ {
+ public static void Main()
+ {
+ Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new FakeApi(Configuration.Default);
+
+ try
+ {
+ // Health check endpoint
+ HealthCheckResult result = apiInstance.FakeHealthGet();
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling FakeApi.FakeHealthGet: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+[**HealthCheckResult**](HealthCheckResult.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+### 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)
+
+
+## FakeHttpSignatureTest
+
+> void FakeHttpSignatureTest (Pet pet, string query1 = null, string header1 = null)
+
+test http signature authentication
### Example
@@ -40,22 +108,25 @@ using Org.OpenAPITools.Model;
namespace Example
{
- public class CreateXmlItemExample
+ public class FakeHttpSignatureTestExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
+
var apiInstance = new FakeApi(Configuration.Default);
- var xmlItem = new XmlItem(); // XmlItem | XmlItem Body
+ 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
{
- // creates an XmlItem
- apiInstance.CreateXmlItem(xmlItem);
+ // test http signature authentication
+ apiInstance.FakeHttpSignatureTest(pet, query1, header1);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling FakeApi.CreateXmlItem: " + e.Message );
+ Debug.Print("Exception when calling FakeApi.FakeHttpSignatureTest: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -69,7 +140,9 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **xmlItem** | [**XmlItem**](XmlItem.md)| XmlItem Body |
+ **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
@@ -77,17 +150,17 @@ void (empty response body)
### Authorization
-No authorization required
+[http_signature_test](../README.md#http_signature_test)
### HTTP request headers
-- **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16
+- **Content-Type**: application/json, application/xml
- **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | successful operation | - |
+| **200** | The instance started successfully | - |
[[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
@@ -155,7 +228,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: */*
### HTTP response details
@@ -171,7 +244,7 @@ No authorization required
## FakeOuterCompositeSerialize
-> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
+> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
@@ -194,11 +267,11 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
- var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
+ var outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
try
{
- OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body);
+ OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite);
Debug.WriteLine(result);
}
catch (ApiException e)
@@ -217,7 +290,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
+ **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
### Return type
@@ -229,7 +302,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: */*
### HTTP response details
@@ -303,7 +376,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: */*
### HTTP response details
@@ -377,7 +450,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: */*
### HTTP response details
@@ -393,7 +466,7 @@ No authorization required
## TestBodyWithFileSchema
-> void TestBodyWithFileSchema (FileSchemaTestClass body)
+> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
@@ -416,11 +489,11 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
- var body = new FileSchemaTestClass(); // FileSchemaTestClass |
+ var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
try
{
- apiInstance.TestBodyWithFileSchema(body);
+ apiInstance.TestBodyWithFileSchema(fileSchemaTestClass);
}
catch (ApiException e)
{
@@ -438,7 +511,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
+ **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type
@@ -466,7 +539,7 @@ No authorization required
## TestBodyWithQueryParams
-> void TestBodyWithQueryParams (string query, User body)
+> void TestBodyWithQueryParams (string query, User user)
@@ -488,11 +561,11 @@ namespace Example
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
var query = query_example; // string |
- var body = new User(); // User |
+ var user = new User(); // User |
try
{
- apiInstance.TestBodyWithQueryParams(query, body);
+ apiInstance.TestBodyWithQueryParams(query, user);
}
catch (ApiException e)
{
@@ -511,7 +584,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**query** | **string**| |
- **body** | [**User**](User.md)| |
+ **user** | [**User**](User.md)| |
### Return type
@@ -539,7 +612,7 @@ No authorization required
## TestClientModel
-> ModelClient TestClientModel (ModelClient body)
+> ModelClient TestClientModel (ModelClient modelClient)
To test \"client\" model
@@ -562,12 +635,12 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
- var body = new ModelClient(); // ModelClient | client model
+ var modelClient = new ModelClient(); // ModelClient | client model
try
{
// To test \"client\" model
- ModelClient result = apiInstance.TestClientModel(body);
+ ModelClient result = apiInstance.TestClientModel(modelClient);
Debug.WriteLine(result);
}
catch (ApiException e)
@@ -586,7 +659,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**ModelClient**](ModelClient.md)| client model |
+ **modelClient** | [**ModelClient**](ModelClient.md)| client model |
### Return type
@@ -616,9 +689,9 @@ No authorization required
> void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
-Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
### Example
@@ -658,7 +731,7 @@ namespace Example
try
{
- // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+ // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
}
catch (ApiException e)
@@ -830,6 +903,9 @@ namespace Example
public static void Main()
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
+ // Configure HTTP bearer authorization: bearer_test
+ Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
var apiInstance = new FakeApi(Configuration.Default);
var requiredStringGroup = 56; // int | Required String in group parameters
var requiredBooleanGroup = true; // bool | Required Boolean in group parameters
@@ -872,7 +948,7 @@ void (empty response body)
### Authorization
-No authorization required
+[bearer_test](../README.md#bearer_test)
### HTTP request headers
@@ -892,7 +968,7 @@ No authorization required
## TestInlineAdditionalProperties
-> void TestInlineAdditionalProperties (Dictionary param)
+> void TestInlineAdditionalProperties (Dictionary requestBody)
test inline additionalProperties
@@ -913,12 +989,12 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
- var param = new Dictionary(); // Dictionary | request body
+ var requestBody = new Dictionary(); // Dictionary | request body
try
{
// test inline additionalProperties
- apiInstance.TestInlineAdditionalProperties(param);
+ apiInstance.TestInlineAdditionalProperties(requestBody);
}
catch (ApiException e)
{
@@ -936,7 +1012,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **param** | [**Dictionary<string, string>**](string.md)| request body |
+ **requestBody** | [**Dictionary<string, string>**](string.md)| request body |
### Return type
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeClassnameTags123Api.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeClassnameTags123Api.md
index deb97a27697f..93eb8b274552 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeClassnameTags123Api.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeClassnameTags123Api.md
@@ -10,7 +10,7 @@ Method | HTTP request | Description
## TestClassname
-> ModelClient TestClassname (ModelClient body)
+> ModelClient TestClassname (ModelClient modelClient)
To test class name in snake case
@@ -38,12 +38,12 @@ namespace Example
// Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer");
var apiInstance = new FakeClassnameTags123Api(Configuration.Default);
- var body = new ModelClient(); // ModelClient | client model
+ var modelClient = new ModelClient(); // ModelClient | client model
try
{
// To test class name in snake case
- ModelClient result = apiInstance.TestClassname(body);
+ ModelClient result = apiInstance.TestClassname(modelClient);
Debug.WriteLine(result);
}
catch (ApiException e)
@@ -62,7 +62,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**ModelClient**](ModelClient.md)| client model |
+ **modelClient** | [**ModelClient**](ModelClient.md)| client model |
### Return type
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/Foo.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/Foo.md
index fd84dc2038c9..ea6f4245da6e 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/Foo.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/Foo.md
@@ -1,9 +1,13 @@
+
# Org.OpenAPITools.Model.Foo
+
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Bar** | **string** | | [optional] [default to "bar"]
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to README]](../README.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FormatTest.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FormatTest.md
index 92d7d1e0104d..6cef48d5b4db 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FormatTest.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FormatTest.md
@@ -18,7 +18,8 @@ Name | Type | Description | Notes
**DateTime** | **DateTime** | | [optional]
**Uuid** | **Guid** | | [optional]
**Password** | **string** | |
-**BigDecimal** | **decimal** | | [optional]
+**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional]
+**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/HealthCheckResult.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/HealthCheckResult.md
new file mode 100644
index 000000000000..08e5992d20cb
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/HealthCheckResult.md
@@ -0,0 +1,13 @@
+
+# Org.OpenAPITools.Model.HealthCheckResult
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**NullableMessage** | **string** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject.md
index 40e16da1bb7d..12ec90a8c699 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject.md
@@ -1,4 +1,6 @@
+
# Org.OpenAPITools.Model.InlineObject
+
## Properties
Name | Type | Description | Notes
@@ -6,5 +8,7 @@ Name | Type | Description | Notes
**Name** | **string** | Updated name of the pet | [optional]
**Status** | **string** | Updated status of the pet | [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)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to README]](../README.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject1.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject1.md
index 2e6d226754e4..581fe20b1e21 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject1.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject1.md
@@ -1,4 +1,6 @@
+
# Org.OpenAPITools.Model.InlineObject1
+
## Properties
Name | Type | Description | Notes
@@ -6,5 +8,7 @@ Name | Type | Description | Notes
**AdditionalMetadata** | **string** | Additional data to pass to server | [optional]
**File** | **System.IO.Stream** | file to upload | [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)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to README]](../README.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject2.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject2.md
index c02c78f9b2d0..79abb7a467c4 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject2.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject2.md
@@ -1,4 +1,6 @@
+
# Org.OpenAPITools.Model.InlineObject2
+
## Properties
Name | Type | Description | Notes
@@ -6,5 +8,7 @@ Name | Type | Description | Notes
**EnumFormStringArray** | **List<string>** | Form parameter enum test (string array) | [optional]
**EnumFormString** | **string** | Form parameter enum test (string) | [optional] [default to EnumFormStringEnum.Efg]
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to README]](../README.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject3.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject3.md
index 192926bbe927..684db7f7227b 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject3.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject3.md
@@ -1,22 +1,26 @@
+
# Org.OpenAPITools.Model.InlineObject3
+
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Integer** | **int?** | None | [optional]
-**Int32** | **int?** | None | [optional]
-**Int64** | **long?** | None | [optional]
-**Number** | **decimal?** | None |
-**Float** | **float?** | None | [optional]
-**Double** | **double?** | None |
+**Integer** | **int** | None | [optional]
+**Int32** | **int** | None | [optional]
+**Int64** | **long** | None | [optional]
+**Number** | **decimal** | None |
+**Float** | **float** | None | [optional]
+**Double** | **double** | None |
**String** | **string** | None | [optional]
**PatternWithoutDelimiter** | **string** | None |
**Byte** | **byte[]** | None |
**Binary** | **System.IO.Stream** | None | [optional]
-**Date** | **DateTime?** | None | [optional]
-**DateTime** | **DateTime?** | None | [optional]
+**Date** | **DateTime** | None | [optional]
+**DateTime** | **DateTime** | None | [optional]
**Password** | **string** | None | [optional]
**Callback** | **string** | None | [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)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to README]](../README.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject4.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject4.md
index c8e00663ee88..18e4a1f3ce50 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject4.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject4.md
@@ -1,4 +1,6 @@
+
# Org.OpenAPITools.Model.InlineObject4
+
## Properties
Name | Type | Description | Notes
@@ -6,5 +8,7 @@ Name | Type | Description | Notes
**Param** | **string** | field1 |
**Param2** | **string** | field2 |
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to README]](../README.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject5.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject5.md
index a28ff47f2ec0..291c88623eea 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject5.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineObject5.md
@@ -1,4 +1,6 @@
+
# Org.OpenAPITools.Model.InlineObject5
+
## Properties
Name | Type | Description | Notes
@@ -6,5 +8,7 @@ Name | Type | Description | Notes
**AdditionalMetadata** | **string** | Additional data to pass to server | [optional]
**RequiredFile** | **System.IO.Stream** | file to upload |
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to README]](../README.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineResponseDefault.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineResponseDefault.md
index 8c96fb62ac88..ecfb254001a2 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineResponseDefault.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/InlineResponseDefault.md
@@ -1,9 +1,13 @@
+
# Org.OpenAPITools.Model.InlineResponseDefault
+
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**String** | [**Foo**](Foo.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)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to README]](../README.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/NullableClass.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/NullableClass.md
new file mode 100644
index 000000000000..84dd092d8a38
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/NullableClass.md
@@ -0,0 +1,24 @@
+
+# Org.OpenAPITools.Model.NullableClass
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**IntegerProp** | **int?** | | [optional]
+**NumberProp** | **decimal?** | | [optional]
+**BooleanProp** | **bool?** | | [optional]
+**StringProp** | **string** | | [optional]
+**DateProp** | **DateTime?** | | [optional]
+**DatetimeProp** | **DateTime?** | | [optional]
+**ArrayNullableProp** | **List<Object>** | | [optional]
+**ArrayAndItemsNullableProp** | **List<Object>** | | [optional]
+**ArrayItemsNullable** | **List<Object>** | | [optional]
+**ObjectNullableProp** | **Dictionary<string, Object>** | | [optional]
+**ObjectAndItemsNullableProp** | **Dictionary<string, Object>** | | [optional]
+**ObjectItemsNullable** | **Dictionary<string, Object>** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/OuterEnumDefaultValue.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/OuterEnumDefaultValue.md
new file mode 100644
index 000000000000..41474099f2ee
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/OuterEnumDefaultValue.md
@@ -0,0 +1,12 @@
+
+# Org.OpenAPITools.Model.OuterEnumDefaultValue
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/OuterEnumInteger.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/OuterEnumInteger.md
new file mode 100644
index 000000000000..b82abc3adac4
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/OuterEnumInteger.md
@@ -0,0 +1,12 @@
+
+# Org.OpenAPITools.Model.OuterEnumInteger
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/OuterEnumIntegerDefaultValue.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/OuterEnumIntegerDefaultValue.md
new file mode 100644
index 000000000000..46939d01522e
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/OuterEnumIntegerDefaultValue.md
@@ -0,0 +1,12 @@
+
+# Org.OpenAPITools.Model.OuterEnumIntegerDefaultValue
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/PetApi.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/PetApi.md
index 1a9eba14868f..5d9c6cb6f791 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/PetApi.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/PetApi.md
@@ -18,7 +18,7 @@ Method | HTTP request | Description
## AddPet
-> void AddPet (Pet body)
+> void AddPet (Pet pet)
Add a new pet to the store
@@ -42,12 +42,12 @@ namespace Example
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(Configuration.Default);
- var body = new Pet(); // Pet | Pet object that needs to be added to the store
+ var pet = new Pet(); // Pet | Pet object that needs to be added to the store
try
{
// Add a new pet to the store
- apiInstance.AddPet(body);
+ apiInstance.AddPet(pet);
}
catch (ApiException e)
{
@@ -65,7 +65,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
+ **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type
@@ -83,7 +83,6 @@ void (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | successful operation | - |
| **405** | Invalid input | - |
[[Back to top]](#)
@@ -161,7 +160,6 @@ void (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | successful operation | - |
| **400** | Invalid pet value | - |
[[Back to top]](#)
@@ -412,7 +410,7 @@ Name | Type | Description | Notes
## UpdatePet
-> void UpdatePet (Pet body)
+> void UpdatePet (Pet pet)
Update an existing pet
@@ -436,12 +434,12 @@ namespace Example
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(Configuration.Default);
- var body = new Pet(); // Pet | Pet object that needs to be added to the store
+ var pet = new Pet(); // Pet | Pet object that needs to be added to the store
try
{
// Update an existing pet
- apiInstance.UpdatePet(body);
+ apiInstance.UpdatePet(pet);
}
catch (ApiException e)
{
@@ -459,7 +457,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
+ **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type
@@ -477,7 +475,6 @@ void (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | successful operation | - |
| **400** | Invalid ID supplied | - |
| **404** | Pet not found | - |
| **405** | Validation exception | - |
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/StoreApi.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/StoreApi.md
index 57247772d4ff..d3c3c7c54053 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/StoreApi.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/StoreApi.md
@@ -241,7 +241,7 @@ No authorization required
## PlaceOrder
-> Order PlaceOrder (Order body)
+> Order PlaceOrder (Order order)
Place an order for a pet
@@ -262,12 +262,12 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new StoreApi(Configuration.Default);
- var body = new Order(); // Order | order placed for purchasing the pet
+ var order = new Order(); // Order | order placed for purchasing the pet
try
{
// Place an order for a pet
- Order result = apiInstance.PlaceOrder(body);
+ Order result = apiInstance.PlaceOrder(order);
Debug.WriteLine(result);
}
catch (ApiException e)
@@ -286,7 +286,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Order**](Order.md)| order placed for purchasing the pet |
+ **order** | [**Order**](Order.md)| order placed for purchasing the pet |
### Return type
@@ -298,7 +298,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: application/xml, application/json
### HTTP response details
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/UserApi.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/UserApi.md
index 1385d840413c..7c37179a9102 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/UserApi.md
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/UserApi.md
@@ -17,7 +17,7 @@ Method | HTTP request | Description
## CreateUser
-> void CreateUser (User body)
+> void CreateUser (User user)
Create user
@@ -40,12 +40,12 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new UserApi(Configuration.Default);
- var body = new User(); // User | Created user object
+ var user = new User(); // User | Created user object
try
{
// Create user
- apiInstance.CreateUser(body);
+ apiInstance.CreateUser(user);
}
catch (ApiException e)
{
@@ -63,7 +63,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**User**](User.md)| Created user object |
+ **user** | [**User**](User.md)| Created user object |
### Return type
@@ -75,7 +75,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: Not defined
### HTTP response details
@@ -91,7 +91,7 @@ No authorization required
## CreateUsersWithArrayInput
-> void CreateUsersWithArrayInput (List body)
+> void CreateUsersWithArrayInput (List user)
Creates list of users with given input array
@@ -112,12 +112,12 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new UserApi(Configuration.Default);
- var body = new List(); // List | List of user object
+ var user = new List(); // List | List of user object
try
{
// Creates list of users with given input array
- apiInstance.CreateUsersWithArrayInput(body);
+ apiInstance.CreateUsersWithArrayInput(user);
}
catch (ApiException e)
{
@@ -135,7 +135,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**List<User>**](User.md)| List of user object |
+ **user** | [**List<User>**](User.md)| List of user object |
### Return type
@@ -147,7 +147,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: Not defined
### HTTP response details
@@ -163,7 +163,7 @@ No authorization required
## CreateUsersWithListInput
-> void CreateUsersWithListInput (List body)
+> void CreateUsersWithListInput (List user)
Creates list of users with given input array
@@ -184,12 +184,12 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new UserApi(Configuration.Default);
- var body = new List(); // List | List of user object
+ var user = new List(); // List | List of user object
try
{
// Creates list of users with given input array
- apiInstance.CreateUsersWithListInput(body);
+ apiInstance.CreateUsersWithListInput(user);
}
catch (ApiException e)
{
@@ -207,7 +207,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**List<User>**](User.md)| List of user object |
+ **user** | [**List<User>**](User.md)| List of user object |
### Return type
@@ -219,7 +219,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: Not defined
### HTTP response details
@@ -529,7 +529,7 @@ No authorization required
## UpdateUser
-> void UpdateUser (string username, User body)
+> void UpdateUser (string username, User user)
Updated user
@@ -553,12 +553,12 @@ namespace Example
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new UserApi(Configuration.Default);
var username = username_example; // string | name that need to be deleted
- var body = new User(); // User | Updated user object
+ var user = new User(); // User | Updated user object
try
{
// Updated user
- apiInstance.UpdateUser(username, body);
+ apiInstance.UpdateUser(username, user);
}
catch (ApiException e)
{
@@ -577,7 +577,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **string**| name that need to be deleted |
- **body** | [**User**](User.md)| Updated user object |
+ **user** | [**User**](User.md)| Updated user object |
### Return type
@@ -589,7 +589,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: Not defined
### HTTP response details
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/AnotherFakeApi.cs
index 1ad994047eb7..ced72f4e057b 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/AnotherFakeApi.cs
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/AnotherFakeApi.cs
@@ -31,9 +31,9 @@ public interface IAnotherFakeApi : IApiAccessor
/// To test special tags and operation ID starting with number
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// ModelClient
- ModelClient Call123TestSpecialTags (ModelClient body);
+ ModelClient Call123TestSpecialTags (ModelClient modelClient);
///
/// To test special tags
@@ -42,9 +42,9 @@ public interface IAnotherFakeApi : IApiAccessor
/// To test special tags and operation ID starting with number
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// ApiResponse of ModelClient
- ApiResponse Call123TestSpecialTagsWithHttpInfo (ModelClient body);
+ ApiResponse Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient);
#endregion Synchronous Operations
#region Asynchronous Operations
///
@@ -54,9 +54,9 @@ public interface IAnotherFakeApi : IApiAccessor
/// To test special tags and operation ID starting with number
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Task of ModelClient
- System.Threading.Tasks.Task Call123TestSpecialTagsAsync (ModelClient body);
+ System.Threading.Tasks.Task Call123TestSpecialTagsAsync (ModelClient modelClient);
///
/// To test special tags
@@ -65,9 +65,9 @@ public interface IAnotherFakeApi : IApiAccessor
/// To test special tags and operation ID starting with number
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Task of ApiResponse (ModelClient)
- System.Threading.Tasks.Task> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient body);
+ System.Threading.Tasks.Task> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient modelClient);
#endregion Asynchronous Operations
}
@@ -183,11 +183,11 @@ public void AddDefaultHeader(string key, string value)
/// To test special tags To test special tags and operation ID starting with number
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// ModelClient
- public ModelClient Call123TestSpecialTags (ModelClient body)
+ public ModelClient Call123TestSpecialTags (ModelClient modelClient)
{
- ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(body);
+ ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient);
return localVarResponse.Data;
}
@@ -195,13 +195,13 @@ public ModelClient Call123TestSpecialTags (ModelClient body)
/// To test special tags To test special tags and operation ID starting with number
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// ApiResponse of ModelClient
- public ApiResponse Call123TestSpecialTagsWithHttpInfo (ModelClient body)
+ public ApiResponse Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
+ // verify the required parameter 'modelClient' is set
+ if (modelClient == null)
+ throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags");
var localVarPath = "./another-fake/dummy";
var localVarPathParams = new Dictionary();
@@ -225,13 +225,13 @@ public ApiResponse Call123TestSpecialTagsWithHttpInfo (ModelClient
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (modelClient != null && modelClient.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = modelClient; // byte array
}
@@ -257,11 +257,11 @@ public ApiResponse Call123TestSpecialTagsWithHttpInfo (ModelClient
/// To test special tags To test special tags and operation ID starting with number
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Task of ModelClient
- public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync (ModelClient body)
+ public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync (ModelClient modelClient)
{
- ApiResponse localVarResponse = await Call123TestSpecialTagsAsyncWithHttpInfo(body);
+ ApiResponse localVarResponse = await Call123TestSpecialTagsAsyncWithHttpInfo(modelClient);
return localVarResponse.Data;
}
@@ -270,13 +270,13 @@ public async System.Threading.Tasks.Task Call123TestSpecialTagsAsyn
/// To test special tags To test special tags and operation ID starting with number
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Task of ApiResponse (ModelClient)
- public async System.Threading.Tasks.Task> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient body)
+ public async System.Threading.Tasks.Task> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient modelClient)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
+ // verify the required parameter 'modelClient' is set
+ if (modelClient == null)
+ throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags");
var localVarPath = "./another-fake/dummy";
var localVarPathParams = new Dictionary();
@@ -300,13 +300,13 @@ public async System.Threading.Tasks.Task> Call123TestSp
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (modelClient != null && modelClient.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = modelClient; // byte array
}
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/DefaultApi.cs
index ff0cb9b0b5d8..75b49ea3ee28 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
- * OpenAPI spec version: 1.0.0
+ * The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -85,6 +85,17 @@ public DefaultApi(String basePath)
ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory;
}
+ ///
+ /// Initializes a new instance of the class
+ ///
+ ///
+ public DefaultApi()
+ {
+ this.Configuration = Org.OpenAPITools.Client.Configuration.Default;
+
+ ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory;
+ }
+
///
/// Initializes a new instance of the class
/// using Configuration object
@@ -180,7 +191,7 @@ public InlineResponseDefault FooGet ()
///
/// Thrown when fails to make API call
/// ApiResponse of InlineResponseDefault
- public ApiResponse< InlineResponseDefault > FooGetWithHttpInfo ()
+ public ApiResponse FooGetWithHttpInfo ()
{
var localVarPath = "./foo";
@@ -220,7 +231,7 @@ public ApiResponse< InlineResponseDefault > FooGetWithHttpInfo ()
}
return new ApiResponse(localVarStatusCode,
- localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => string.Join(",", x.Value)),
(InlineResponseDefault) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponseDefault)));
}
@@ -281,7 +292,7 @@ public async System.Threading.Tasks.Task> Foo
}
return new ApiResponse(localVarStatusCode,
- localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => string.Join(",", x.Value)),
(InlineResponseDefault) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponseDefault)));
}
diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/FakeApi.cs
index e0b9c8bbe2f9..5f1733846776 100644
--- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/FakeApi.cs
+++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/FakeApi.cs
@@ -25,26 +25,49 @@ public interface IFakeApi : IApiAccessor
{
#region Synchronous Operations
///
- /// creates an XmlItem
+ /// Health check endpoint
///
///
- /// this route creates an XmlItem
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// HealthCheckResult
+ HealthCheckResult FakeHealthGet ();
+
+ ///
+ /// Health check endpoint
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// ApiResponse of HealthCheckResult
+ ApiResponse FakeHealthGetWithHttpInfo ();
+ ///
+ /// test http signature authentication
+ ///
+ ///
+ ///
///
/// Thrown when fails to make API call
- /// XmlItem Body
+ /// Pet object that needs to be added to the store
+ /// query parameter (optional)
+ /// header parameter (optional)
///
- void CreateXmlItem (XmlItem xmlItem);
+ void FakeHttpSignatureTest (Pet pet, string query1 = default(string), string header1 = default(string));
///
- /// creates an XmlItem
+ /// test http signature authentication
///
///
- /// this route creates an XmlItem
+ ///
///
/// Thrown when fails to make API call
- /// XmlItem Body
+ /// Pet object that needs to be added to the store
+ /// query parameter (optional)
+ /// header parameter (optional)
/// ApiResponse of Object(void)
- ApiResponse