diff --git a/README.md b/README.md
index e3658844c93..2b436786cc6 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@
-[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`5.0.1`):
+[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`5.1.0`):
[](https://travis-ci.org/OpenAPITools/openapi-generator)
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
[](https://app.shippable.com/github/OpenAPITools/openapi-generator)
@@ -18,14 +18,6 @@
[](https://app.bitrise.io/app/4a2b10a819d12b67)
[](https://github.com/OpenAPITools/openapi-generator/actions?query=workflow%3A%22Check+Supported+Java+Versions%22)
-[5.1.x](https://github.com/OpenAPITools/openapi-generator/tree/5.1.x) (`5.1.x`):
-[](https://travis-ci.org/OpenAPITools/openapi-generator)
-[](https://circleci.com/gh/OpenAPITools/openapi-generator)
-[](https://app.shippable.com/github/OpenAPITools/openapi-generator)
-[](https://ci.appveyor.com/project/WilliamCheng/openapi-generator-wh2wu)
-[](https://cloud.drone.io/OpenAPITools/openapi-generator)
-[](https://app.bitrise.io/app/4a2b10a819d12b67)
-
[6.0.x](https://github.com/OpenAPITools/openapi-generator/tree/6.0.x) (`6.0.x`):
[](https://travis-ci.org/OpenAPITools/openapi-generator)
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
@@ -77,9 +69,9 @@ OpenAPI Generator allows generation of API client libraries (SDK generation), se
| | Languages/Frameworks |
| -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| **API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later, .NET Standard 1.3 - 2.0, .NET Core 2.0), **C++** (cpp-restsdk, Qt5, Tizen), **Clojure**, **Crystal**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured, Spring 5 Web Client, MicroProfile Rest Client), **k6**, **Kotlin**, **Lua**, **Nim**, **Node.js/JavaScript** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types, Apollo GraphQL DataStore), **Objective-C**, **OCaml**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (rust, rust-server), **Scala** (akka, http4s, scalaz, sttp, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x, 5.x), **Typescript** (AngularJS, Angular (2.x - 8.x), Aurelia, Axios, Fetch, Inversify, jQuery, Nestjs, Node, Rxjs) |
+| **API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later, .NET Standard 1.3 - 2.0, .NET Core 2.0, .NET 5.0), **C++** (cpp-restsdk, Qt5, Tizen, Unreal Engine 4), **Clojure**, **Crystal**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured, Spring 5 Web Client, MicroProfile Rest Client), **k6**, **Kotlin**, **Lua**, **Nim**, **Node.js/JavaScript** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types, Apollo GraphQL DataStore), **Objective-C**, **OCaml**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (hyper, reqwest, rust-server), **Scala** (akka, http4s, scalaz, sttp, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x, 5.x), **Typescript** (AngularJS, Angular (2.x - 11.x), Aurelia, Axios, Fetch, Inversify, jQuery, Nestjs, Node, redux-query, Rxjs) |
| **Server stubs** | **Ada**, **C#** (ASP.NET Core, NancyFx), **C++** (Pistache, Restbed, Qt5 QHTTPEngine), **Erlang**, **F#** (Giraffe), **Go** (net/http, Gin), **Haskell** (Servant), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, Jersey, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples), [Vert.x](https://vertx.io/)), **Kotlin** (Spring Boot, Ktor, Vertx), **PHP** (Laravel, Lumen, Slim, Silex, [Symfony](https://symfony.com/), [Zend Expressive](https://github.com/zendframework/zend-expressive)), **Python** (Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** (rust-server), **Scala** (Akka, [Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), [Play](https://www.playframework.com/), Scalatra) |
-| **API documentation generators** | **HTML**, **Confluence Wiki**, **Asciidoc** |
+| **API documentation generators** | **HTML**, **Confluence Wiki**, **Asciidoc**, **Markdown**, **PlantUML** |
| **Configuration files** | [**Apache2**](https://httpd.apache.org/) |
| **Others** | **GraphQL**, **JMeter**, **Ktorm**, **MySQL Schema**, **Protocol Buffer** |
@@ -121,8 +113,7 @@ The OpenAPI Specification has undergone 3 revisions since initial creation in 20
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------------------------------------------- |
| 6.0.0 (upcoming major release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/6.0.0-SNAPSHOT/) | Nov/Dec 2021 | Minor release with breaking changes (no fallback) |
| 5.1.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/5.1.0-SNAPSHOT/) | Mar/Apr 2021 | Minor release with breaking changes (with fallback) |
-| 5.0.1 (upcoming patch release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/5.0.1-SNAPSHOT/) | Jan/Feb 2021 | Patch release with enhancements, bug fixes, etc |
-| [5.0.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.0.0) (latest stable release) | 21.12.2020 | Major release with breaking changes (no fallback) |
+| [5.0.1](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.0.1) (latest stable release) | 06.02.2021 | Patch release with enhancements, bug fixes, etc |
| [4.3.1](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.3.1) | 06.05.2020 | Patch release (enhancements, bug fixes, etc) |
OpenAPI Spec compatibility: 1.0, 1.1, 1.2, 2.0, 3.0
@@ -179,16 +170,16 @@ See the different versions of the [openapi-generator-cli](https://mvnrepository.
If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 8 runtime at a minimum):
-JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.0.0/openapi-generator-cli-5.0.0.jar`
+JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.0.1/openapi-generator-cli-5.0.1.jar`
For **Mac/Linux** users:
```sh
-wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.0.0/openapi-generator-cli-5.0.0.jar -O openapi-generator-cli.jar
+wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.0.1/openapi-generator-cli-5.0.1.jar -O openapi-generator-cli.jar
```
For **Windows** users, you will need to install [wget](http://gnuwin32.sourceforge.net/packages/wget.htm) or you can use Invoke-WebRequest in PowerShell (3.0+), e.g.
```
-Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.0.0/openapi-generator-cli-5.0.0.jar
+Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.0.1/openapi-generator-cli-5.0.1.jar
```
After downloading the JAR, run `java -jar openapi-generator-cli.jar help` to show the usage.
@@ -413,7 +404,7 @@ openapi-generator-cli version
To use a specific version of "openapi-generator-cli"
```sh
-openapi-generator-cli version-manager set 5.0.0
+openapi-generator-cli version-manager set 5.0.1
```
Or install it as dev-dependency:
@@ -437,7 +428,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat
(if you're on Windows, replace the last command with `java -jar modules\openapi-generator-cli\target\openapi-generator-cli.jar generate -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g php -o c:\temp\php_api_client`)
-You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.0.0/openapi-generator-cli-5.0.0.jar)
+You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.0.1/openapi-generator-cli-5.0.1.jar)
To get a list of **general** options available, please run `java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar help generate`
@@ -450,10 +441,10 @@ To get a list of PHP specified options (which can be passed to the generator wit
You can build a client against the [Petstore API](https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml) as follows:
```sh
-./bin/java-petstore-okhttp-gson.sh
+./bin/generate-samples.sh ./bin/configs/java-okhttp-gson.yaml
```
-(On Windows, run `.\bin\windows\java-petstore-okhttp-gson.bat` instead)
+(On Windows, please install [GIT Bash for Windows](https://gitforwindows.org/) to run the command above)
This script uses the default library, which is `okhttp-gson`. It will run the generator with this command:
@@ -461,6 +452,8 @@ This script uses the default library, which is `okhttp-gson`. It will run the ge
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
-i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml \
-g java \
+ -t modules/openapi-generator/src/main/resources/Java \
+ --additional-properties artifactId=petstore-okhttp-gson,hideGenerationTimestamp:true \
-o samples/client/petstore/java/okhttp-gson
```
@@ -526,13 +519,7 @@ cd samples/client/petstore/java/okhttp-gson
mvn package
```
-Other languages have petstore samples, too:
-
-- [Swift5](https://github.com/OpenAPITools/openapi-generator/tree/master/samples/client/petstore/swift5)
-- [Ruby](https://github.com/OpenAPITools/openapi-generator/tree/master/samples/client/petstore/ruby)
-- [Kotlin](https://github.com/OpenAPITools/openapi-generator/tree/master/samples/client/petstore/kotlin)
-
-... and more.
+Other generators have [samples](https://github.com/OpenAPITools/openapi-generator/tree/master/samples) too.
### [3.1 - Customization](#table-of-contents)
@@ -629,6 +616,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
- [Kubernetes](https://kubernetes.io)
- [Linode](https://www.linode.com/)
- [Logicdrop](https://www.logicdrop.com)
+- [Lumeris](https://www.lumeris.com)
- [LVM Versicherungen](https://www.lvm.de)
- [MailSlurp](https://www.mailslurp.com)
- [Médiavision](https://www.mediavision.fr/)
@@ -808,6 +796,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
- 2020-10-31 - [[B2] OpenAPI Specification으로 타입-세이프하게 API 개발하기: 희망편 VS 절망편](https://www.youtube.com/watch?v=J4JHLESAiFk) by 최태건 at [FEConf 2020](https://2020.feconf.kr/)
- 2020-11-05 - [Automated REST-Api Code Generation: Wie IT-Systeme miteinander sprechen](https://www.massiveart.com/blog/automated-rest-api-code-generation-wie-it-systeme-miteinander-sprechen) by Stefan Rottensteiner at [MASSIVE ART Blog](https://www.massiveart.com/blog)
- 2020-12-01 - [OpenAPI GeneratorでGoのAPIサーバー/クライアントコードを自動生成する](https://qiita.com/saki-engineering/items/b20d8b6074c4da9664a5) by [@saki-engineering](https://qiita.com/saki-engineering)
+- 2020-12-04 - [Scaling the Test Coverage of OpenAPI Generator for 30+ Programming Languages](https://www.youtube.com/watch?v=7Lke9dHRqT0) by [William Cheng](https://github.com/wing328) at [Open Source Summit Japan + Automotive Linux Summit 2020](https://events.linuxfoundation.org/archive/2020/open-source-summit-japan/) ([Slides](https://speakerdeck.com/wing328/scaling-the-test-coverage-of-openapi-generator-for-30-plus-programming-languages))
- 2020-12-09 - [プロジェクトにOpenAPI Generatorで自動生成された型付きAPI Clientを導入した話](https://qiita.com/yoshifujiT/items/905c18700ede23f40840) by [@yoshifujiT](https://github.com/yoshifujiT)
- 2020-12-15 - [Next.js + NestJS + GraphQLで変化に追従するフロントエンドへ 〜 ショッピングクーポンの事例紹介](https://techblog.yahoo.co.jp/entry/2020121530052952/) by [小倉 陸](https://github.com/ogugu9) at [Yahoo! JAPAN Tech Blog](https://techblog.yahoo.co.jp/)
- 2021-01-08 - [Hello, New API – Part 1](https://www.nginx.com/blog/hello-new-api-part-1/) by [Jeremy Schulman](https://www.nginx.com/people/jeremy-schulman/) at [Major League Baseball](https://www.mlb.com)
diff --git a/bin/configs/other/c.yaml b/bin/configs/c.yaml
similarity index 100%
rename from bin/configs/other/c.yaml
rename to bin/configs/c.yaml
diff --git a/bin/configs/csharp-netcore-OpenAPIClient-net50.yaml b/bin/configs/csharp-netcore-OpenAPIClient-net50.yaml
index 88194beae34..d9320b7b96a 100644
--- a/bin/configs/csharp-netcore-OpenAPIClient-net50.yaml
+++ b/bin/configs/csharp-netcore-OpenAPIClient-net50.yaml
@@ -1,9 +1,7 @@
# for .net standard
generatorName: csharp-netcore
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0
-# TODO switch to http signature spec after fixing compilation issues
-#inputSpec: modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
-inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.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}'
diff --git a/bin/configs/other/java-vertx-web.yaml b/bin/configs/java-vertx-web-server.yaml
similarity index 100%
rename from bin/configs/other/java-vertx-web.yaml
rename to bin/configs/java-vertx-web-server.yaml
diff --git a/bin/configs/other/kotlin-uppercase-enum.yaml b/bin/configs/kotlin-uppercase-enum.yaml
similarity index 100%
rename from bin/configs/other/kotlin-uppercase-enum.yaml
rename to bin/configs/kotlin-uppercase-enum.yaml
diff --git a/bin/configs/typescript-nestjs-v6-provided-in-root.yaml b/bin/configs/typescript-nestjs-v6-provided-in-root.yaml
index 4fb999ef170..d5ca0d52431 100644
--- a/bin/configs/typescript-nestjs-v6-provided-in-root.yaml
+++ b/bin/configs/typescript-nestjs-v6-provided-in-root.yaml
@@ -1,6 +1,7 @@
generatorName: typescript-nestjs
outputDir: samples/client/petstore/typescript-nestjs-v6-provided-in-root/builds/default
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
+templateDir: modules/openapi-generator/src/main/resources/typescript-nestjs
additionalProperties:
nestVersion: 6.0.0
"npmName": "@openapitools/typescript-nestjs-petstore"
diff --git a/bin/utils/test_file_list.yaml b/bin/utils/test_file_list.yaml
index 3d7cf02ace5..d2d65e328f9 100644
--- a/bin/utils/test_file_list.yaml
+++ b/bin/utils/test_file_list.yaml
@@ -1,6 +1,6 @@
---
# csharp-netcore test files and image for upload
- filename: "samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/PetApiTests.cs"
- sha256: b74ef9eefa4b41fd3233e083fe2355babf25a77f9073d28e1aa81ae2e0a5f1d0
+ sha256: aceebba316148a2a803a15ef4e13bbd0b0a1b8d15006cd88adb9b39a620ee451
- filename: "samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/linux-logo.png"
sha256: 0a67c32728197e942b13bdda064b73793f12f5c795f1e5cf35a3adf69c973230
diff --git a/docs/configuration.md b/docs/configuration.md
index 1fa33922ce8..aa7d1b5c9b2 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -21,7 +21,7 @@ Our tooling supports the following types of configuration:
## Tool-specific Declarations
-The READMEs for the [CLI](https://openapi-generator.tech/docs/usage#generate), [Gradle Plugin](https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-maven-plugin), [Maven Plugin](https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-maven-plugin), and [SBT Plugin](https://github.com/OpenAPITools/sbt-openapi-generator/blob/master/README.md) may have top-level or tooling specific options which appear to duplicate 'config options' or 'global properties'. Each may also expose user-facing properties slightly differently from the other tools. This may occur due to:
+The READMEs for the [CLI](https://openapi-generator.tech/docs/usage#generate), [Gradle Plugin](https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-gradle-plugin), [Maven Plugin](https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-maven-plugin), and [SBT Plugin](https://github.com/OpenAPITools/sbt-openapi-generator/blob/master/README.md) may have top-level or tooling specific options which appear to duplicate 'config options' or 'global properties'. Each may also expose user-facing properties slightly differently from the other tools. This may occur due to:
* Conventions used by the underlying tooling
* Limitations in underlying frameworks which define how properties must be declared
diff --git a/docs/generators.md b/docs/generators.md
index 1b2aa656bfb..6b4406e43ac 100644
--- a/docs/generators.md
+++ b/docs/generators.md
@@ -94,7 +94,7 @@ The following generators are available:
* [java-pkmst](generators/java-pkmst.md)
* [java-play-framework](generators/java-play-framework.md)
* [java-undertow-server](generators/java-undertow-server.md)
-* [java-vertx](generators/java-vertx.md)
+* [java-vertx (deprecated)](generators/java-vertx.md)
* [java-vertx-web (beta)](generators/java-vertx-web.md)
* [jaxrs-cxf](generators/jaxrs-cxf.md)
* [jaxrs-cxf-cdi](generators/jaxrs-cxf-cdi.md)
diff --git a/docs/generators/cpp-qt5-client.md b/docs/generators/cpp-qt5-client.md
index ada59e68cea..282c674f9ed 100644
--- a/docs/generators/cpp-qt5-client.md
+++ b/docs/generators/cpp-qt5-client.md
@@ -206,7 +206,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|XMLStructureDefinitions|✗|OAS2,OAS3
|MultiServer|✓|OAS3
|ParameterizedServer|✓|OAS3
-|ParameterStyling|✗|OAS3
+|ParameterStyling|✓|OAS3
|Callbacks|✗|OAS3
|LinkObjects|✗|OAS3
diff --git a/docs/generators/dart-dio.md b/docs/generators/dart-dio.md
index 755e95f1932..ffff1394c42 100644
--- a/docs/generators/dart-dio.md
+++ b/docs/generators/dart-dio.md
@@ -41,8 +41,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl
| Type/Alias | Instantiated By |
| ---------- | --------------- |
-|array|List|
-|map|Map|
## LANGUAGE PRIMITIVES
diff --git a/docs/generators/dart-jaguar.md b/docs/generators/dart-jaguar.md
index b2afa28babe..3ecb03d5221 100644
--- a/docs/generators/dart-jaguar.md
+++ b/docs/generators/dart-jaguar.md
@@ -36,8 +36,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl
| Type/Alias | Instantiated By |
| ---------- | --------------- |
-|array|List|
-|map|Map|
## LANGUAGE PRIMITIVES
diff --git a/docs/generators/dart.md b/docs/generators/dart.md
index 395295b07e6..e7dae224efc 100644
--- a/docs/generators/dart.md
+++ b/docs/generators/dart.md
@@ -34,8 +34,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl
| Type/Alias | Instantiated By |
| ---------- | --------------- |
-|array|List|
-|map|Map|
## LANGUAGE PRIMITIVES
diff --git a/docs/generators/kotlin-server.md b/docs/generators/kotlin-server.md
index 58852a97ccf..ecaf99a294f 100644
--- a/docs/generators/kotlin-server.md
+++ b/docs/generators/kotlin-server.md
@@ -32,8 +32,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
| Type/Alias | Imports |
| ---------- | ------- |
|BigDecimal|java.math.BigDecimal|
-|Date|java.util.Date|
-|DateTime|java.time.LocalDateTime|
+|Date|java.time.LocalDate|
+|DateTime|java.time.OffsetDateTime|
|File|java.io.File|
|LocalDate|java.time.LocalDate|
|LocalDateTime|java.time.LocalDateTime|
diff --git a/docs/generators/kotlin-vertx.md b/docs/generators/kotlin-vertx.md
index 56539f00d46..f92dadaf520 100644
--- a/docs/generators/kotlin-vertx.md
+++ b/docs/generators/kotlin-vertx.md
@@ -26,8 +26,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
| Type/Alias | Imports |
| ---------- | ------- |
|BigDecimal|java.math.BigDecimal|
-|Date|java.util.Date|
-|DateTime|java.time.LocalDateTime|
+|Date|java.time.LocalDate|
+|DateTime|java.time.OffsetDateTime|
|File|java.io.File|
|LocalDate|java.time.LocalDate|
|LocalDateTime|java.time.LocalDateTime|
diff --git a/docs/generators/kotlin.md b/docs/generators/kotlin.md
index cdf4968400b..ef76c9af691 100644
--- a/docs/generators/kotlin.md
+++ b/docs/generators/kotlin.md
@@ -34,8 +34,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
| Type/Alias | Imports |
| ---------- | ------- |
|BigDecimal|java.math.BigDecimal|
-|Date|java.util.Date|
-|DateTime|java.time.LocalDateTime|
+|Date|java.time.LocalDate|
+|DateTime|java.time.OffsetDateTime|
|File|java.io.File|
|LocalDate|java.time.LocalDate|
|LocalDateTime|java.time.LocalDateTime|
diff --git a/docs/generators/ktorm-schema.md b/docs/generators/ktorm-schema.md
index 4f65a1ecc81..7a45b88b69a 100644
--- a/docs/generators/ktorm-schema.md
+++ b/docs/generators/ktorm-schema.md
@@ -27,8 +27,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
| Type/Alias | Imports |
| ---------- | ------- |
|BigDecimal|java.math.BigDecimal|
-|Date|java.util.Date|
-|DateTime|java.time.LocalDateTime|
+|Date|java.time.LocalDate|
+|DateTime|java.time.OffsetDateTime|
|File|java.io.File|
|LocalDate|java.time.LocalDate|
|LocalDateTime|java.time.LocalDateTime|
diff --git a/docs/installation.md b/docs/installation.md
index 3eafc49080f..77db575d663 100644
--- a/docs/installation.md
+++ b/docs/installation.md
@@ -22,7 +22,7 @@ npm install @openapitools/openapi-generator-cli -g
To install a specific version of the tool, pass the version during installation:
```bash
-openapi-generator-cli version-manager set 4.3.1
+openapi-generator-cli version-manager set 5.0.1
```
To install the tool as a dev dependency in your current project:
@@ -80,18 +80,18 @@ docker run --rm \
If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 8 runtime at a minimum):
-JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/4.3.1/openapi-generator-cli-4.3.1.jar`
+JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.0.1/openapi-generator-cli-5.0.1.jar`
For **Mac/Linux** users:
```bash
-wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/4.3.1/openapi-generator-cli-4.3.1.jar -O openapi-generator-cli.jar
+wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.0.1/openapi-generator-cli-5.0.1.jar -O openapi-generator-cli.jar
```
For **Windows** users, you will need to install [wget](http://gnuwin32.sourceforge.net/packages/wget.htm) or you can use Invoke-WebRequest in PowerShell (3.0+), e.g.
```powershell
-Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/4.3.1/openapi-generator-cli-4.3.1.jar
+Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.0.1/openapi-generator-cli-5.0.1.jar
```
diff --git a/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingGenerator.java b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingGenerator.java
index 30927307e96..86f306a790b 100644
--- a/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingGenerator.java
+++ b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingGenerator.java
@@ -24,7 +24,7 @@ package org.openapitools.codegen.api;
*
* @deprecated as of 5.0, replaced by {@link TemplatingExecutor}.
*/
-@Deprecated()
+@Deprecated
public interface TemplatingGenerator extends TemplatingExecutor {
}
diff --git a/modules/openapi-generator-gradle-plugin/README.adoc b/modules/openapi-generator-gradle-plugin/README.adoc
index 5590516dc1d..310fd681dc7 100644
--- a/modules/openapi-generator-gradle-plugin/README.adoc
+++ b/modules/openapi-generator-gradle-plugin/README.adoc
@@ -97,7 +97,7 @@ task validateGoodSpec(type: org.openapitools.generator.gradle.plugin.tasks.Valid
[source,group]
----
plugins {
- id "org.openapi.generator" version "5.0.0"
+ id "org.openapi.generator" version "5.0.1"
}
----
@@ -113,7 +113,7 @@ buildscript {
// url "https://plugins.gradle.org/m2/"
}
dependencies {
- classpath "org.openapitools:openapi-generator-gradle-plugin:5.0.0"
+ classpath "org.openapitools:openapi-generator-gradle-plugin:5.0.1"
}
}
diff --git a/modules/openapi-generator-gradle-plugin/samples/local-spec/README.md b/modules/openapi-generator-gradle-plugin/samples/local-spec/README.md
index fcc990ab3d9..8e771002b13 100644
--- a/modules/openapi-generator-gradle-plugin/samples/local-spec/README.md
+++ b/modules/openapi-generator-gradle-plugin/samples/local-spec/README.md
@@ -18,5 +18,5 @@ gradle generateGoWithInvalidSpec # expected outcome: BUILD FAILED
The samples can be tested against other versions of the plugin using the `openApiGeneratorVersion` property. For example:
```bash
-gradle -PopenApiGeneratorVersion=5.0.0 openApiValidate
+gradle -PopenApiGeneratorVersion=5.0.1 openApiValidate
```
diff --git a/modules/openapi-generator-maven-plugin/README.md b/modules/openapi-generator-maven-plugin/README.md
index af03067ba5b..f740dbf340e 100644
--- a/modules/openapi-generator-maven-plugin/README.md
+++ b/modules/openapi-generator-maven-plugin/README.md
@@ -12,7 +12,7 @@ Add to your `build->plugins` section (default phase is `generate-sources` phase)
org.openapitools
openapi-generator-maven-plugin
-
5.0.0
+
5.0.1
diff --git a/modules/openapi-generator-online/src/main/java/org/openapitools/codegen/online/configuration/HomeController.java b/modules/openapi-generator-online/src/main/java/org/openapitools/codegen/online/configuration/HomeController.java
index 4d38f5aa116..e1e10377ca6 100644
--- a/modules/openapi-generator-online/src/main/java/org/openapitools/codegen/online/configuration/HomeController.java
+++ b/modules/openapi-generator-online/src/main/java/org/openapitools/codegen/online/configuration/HomeController.java
@@ -25,7 +25,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
*/
@Controller
public class HomeController {
- @RequestMapping(value = "/")
+ @RequestMapping("/")
public String index() {
return "redirect:index.html";
}
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java
index 32c7c3cff45..79152024e3e 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java
@@ -153,7 +153,7 @@ public abstract class AbstractKotlinCodegen extends DefaultCodegen implements Co
typeMapping.put("ByteArray", "kotlin.ByteArray");
typeMapping.put("number", "java.math.BigDecimal");
typeMapping.put("decimal", "java.math.BigDecimal");
- typeMapping.put("date-time", "java.time.LocalDateTime");
+ typeMapping.put("date-time", "java.time.OffsetDateTime");
typeMapping.put("date", "java.time.LocalDate");
typeMapping.put("file", "java.io.File");
typeMapping.put("array", "kotlin.Array");
@@ -163,7 +163,7 @@ public abstract class AbstractKotlinCodegen extends DefaultCodegen implements Co
typeMapping.put("object", "kotlin.Any");
typeMapping.put("binary", "kotlin.ByteArray");
typeMapping.put("Date", "java.time.LocalDate");
- typeMapping.put("DateTime", "java.time.LocalDateTime");
+ typeMapping.put("DateTime", "java.time.OffsetDateTime");
instantiationTypes.put("array", "kotlin.collections.ArrayList");
instantiationTypes.put("list", "kotlin.collections.ArrayList");
@@ -174,9 +174,9 @@ public abstract class AbstractKotlinCodegen extends DefaultCodegen implements Co
importMapping.put("UUID", "java.util.UUID");
importMapping.put("URI", "java.net.URI");
importMapping.put("File", "java.io.File");
- importMapping.put("Date", "java.util.Date");
+ importMapping.put("Date", "java.time.LocalDate");
importMapping.put("Timestamp", "java.sql.Timestamp");
- importMapping.put("DateTime", "java.time.LocalDateTime");
+ importMapping.put("DateTime", "java.time.OffsetDateTime");
importMapping.put("LocalDateTime", "java.time.LocalDateTime");
importMapping.put("LocalDate", "java.time.LocalDate");
importMapping.put("LocalTime", "java.time.LocalTime");
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CLibcurlClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CLibcurlClientCodegen.java
index dbc59ae281c..62d1a13f9c2 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CLibcurlClientCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CLibcurlClientCodegen.java
@@ -898,4 +898,19 @@ public class CLibcurlClientCodegen extends DefaultCodegen implements CodegenConf
}
}
}
+
+ @Override
+ public void postProcess() {
+ System.out.println("################################################################################");
+ System.out.println("# Thanks for using OpenAPI Generator. #");
+ System.out.println("# Please consider donation to help us maintain this project \uD83D\uDE4F #");
+ System.out.println("# https://opencollective.com/openapi_generator/donate #");
+ System.out.println("# #");
+ System.out.println("# This generator is contributed by Hemant Zope (https://github.com/zhemant) #");
+ System.out.println("# and Niklas Werner (https://github.com/PowerOfCreation). #");
+ System.out.println("# Please support their work directly \uD83D\uDE4F #");
+ System.out.println("# > Hemant Zope - https://www.patreon.com/zhemant #");
+ System.out.println("# > Niklas Werner - https://paypal.me/wernerdevelopment #");
+ System.out.println("################################################################################");
+ }
}
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppQt5ClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppQt5ClientCodegen.java
index 7a383a1e87e..bda75d399c2 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppQt5ClientCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppQt5ClientCodegen.java
@@ -46,6 +46,7 @@ public class CppQt5ClientCodegen extends CppQt5AbstractCodegen implements Codege
.includeSecurityFeatures(SecurityFeature.BasicAuth)
.includeSecurityFeatures(SecurityFeature.ApiKey)
.includeSecurityFeatures(SecurityFeature.BearerToken)
+ .includeGlobalFeatures(GlobalFeature.ParameterStyling)
);
// set the output folder here
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartClientCodegen.java
index 987110760d4..91b1f05dddb 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartClientCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartClientCodegen.java
@@ -141,14 +141,13 @@ public class DartClientCodegen extends DefaultCodegen {
"double",
"dynamic"
);
- instantiationTypes.put("array", "List");
- instantiationTypes.put("map", "Map");
typeMapping = new HashMap<>();
typeMapping.put("Array", "List");
typeMapping.put("array", "List");
typeMapping.put("map", "Map");
typeMapping.put("List", "List");
+ typeMapping.put("set", "Set");
typeMapping.put("boolean", "bool");
typeMapping.put("string", "String");
typeMapping.put("char", "String");
@@ -468,9 +467,10 @@ public class DartClientCodegen extends DefaultCodegen {
@Override
public String toDefaultValue(Schema schema) {
- if (ModelUtils.isMapSchema(schema)) {
+ if (ModelUtils.isMapSchema(schema) || ModelUtils.isSet(schema)) {
return "const {}";
- } else if (ModelUtils.isArraySchema(schema)) {
+ }
+ if (ModelUtils.isArraySchema(schema)) {
return "const []";
}
@@ -494,7 +494,8 @@ public class DartClientCodegen extends DefaultCodegen {
if (ModelUtils.isArraySchema(target)) {
Schema> items = getSchemaItems((ArraySchema) schema);
return getSchemaType(target) + "<" + getTypeDeclaration(items) + ">";
- } else if (ModelUtils.isMapSchema(target)) {
+ }
+ if (ModelUtils.isMapSchema(target)) {
// Note: ModelUtils.isMapSchema(p) returns true when p is a composed schema that also defines
// additionalproperties: true
Schema> inner = getAdditionalProperties(target);
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartDioClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartDioClientCodegen.java
index 582402c2251..66be8bc4184 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartDioClientCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartDioClientCodegen.java
@@ -127,6 +127,9 @@ public class DartDioClientCodegen extends DartClientCodegen {
public String toDefaultValue(Schema schema) {
if (schema.getDefault() != null) {
if (ModelUtils.isArraySchema(schema)) {
+ if (ModelUtils.isSet(schema)) {
+ return "SetBuilder()";
+ }
return "ListBuilder()";
}
if (ModelUtils.isMapSchema(schema)) {
@@ -318,6 +321,7 @@ public class DartDioClientCodegen extends DartClientCodegen {
if (param.isContainer) {
final Map serializer = new HashMap<>();
serializer.put("isArray", param.isArray);
+ serializer.put("uniqueItems", param.uniqueItems);
serializer.put("isMap", param.isMap);
serializer.put("baseType", param.baseType);
serializers.add(serializer);
@@ -347,7 +351,8 @@ public class DartDioClientCodegen extends DartClientCodegen {
if (op.returnContainer != null) {
final Map serializer = new HashMap<>();
- serializer.put("isArray", Objects.equals("array", op.returnContainer));
+ serializer.put("isArray", Objects.equals("array", op.returnContainer) || Objects.equals("set", op.returnContainer));
+ serializer.put("uniqueItems", op.uniqueItems);
serializer.put("isMap", Objects.equals("map", op.returnContainer));
serializer.put("baseType", op.returnBaseType);
serializers.add(serializer);
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/FsharpFunctionsServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/FsharpFunctionsServerCodegen.java
index 9d30ab7434d..4d732dbea8c 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/FsharpFunctionsServerCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/FsharpFunctionsServerCodegen.java
@@ -155,7 +155,7 @@ public class FsharpFunctionsServerCodegen extends AbstractFSharpCodegen {
return outputFolder + File.separator + sourceFolder + File.separator + "impl";
}
- @Override()
+ @Override
public String toModelImport(String name) {
return packageName + "." + modelPackage() + "." + name;
}
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/FsharpGiraffeServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/FsharpGiraffeServerCodegen.java
index 9985f428bff..d8d4f7fa3df 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/FsharpGiraffeServerCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/FsharpGiraffeServerCodegen.java
@@ -229,7 +229,7 @@ public class FsharpGiraffeServerCodegen extends AbstractFSharpCodegen {
return outputFolder + File.separator + sourceFolder + File.separator + "impl";
}
- @Override()
+ @Override
public String toModelImport(String name) {
return packageName + "." + modelPackage() + "." + name;
}
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaVertXServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaVertXServerCodegen.java
index fe44c4e9bab..d38f05ecfc6 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaVertXServerCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaVertXServerCodegen.java
@@ -24,9 +24,14 @@ import io.swagger.v3.oas.models.PathItem.HttpMethod;
import io.swagger.v3.oas.models.media.Schema;
import io.swagger.v3.oas.models.servers.Server;
import org.openapitools.codegen.*;
+import org.openapitools.codegen.meta.GeneratorMetadata;
+import org.openapitools.codegen.meta.Stability;
import org.openapitools.codegen.meta.features.DocumentationFeature;
import org.openapitools.codegen.utils.URLPathUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import java.io.File;
import java.net.URL;
import java.util.List;
@@ -37,6 +42,7 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class JavaVertXServerCodegen extends AbstractJavaCodegen {
+ private static final Logger LOGGER = LoggerFactory.getLogger(JavaVertXServerCodegen.class);
protected String resourceFolder = "src/main/resources";
protected String rootPackage = "org.openapitools.server.api";
@@ -61,6 +67,10 @@ public class JavaVertXServerCodegen extends AbstractJavaCodegen {
modifyFeatureSet(features -> features.includeDocumentationFeatures(DocumentationFeature.Readme));
+ generatorMetadata = GeneratorMetadata.newBuilder(generatorMetadata)
+ .stability(Stability.DEPRECATED)
+ .build();
+
// set the output folder here
outputFolder = "generated-code" + File.separator + "javaVertXServer";
@@ -134,6 +144,8 @@ public class JavaVertXServerCodegen extends AbstractJavaCodegen {
public void processOpts() {
super.processOpts();
+ LOGGER.warn("IMPORTANT: This generator has been deprecated. Please use `java-vertx-web` instead");
+
apiTestTemplateFiles.clear();
importMapping.remove("JsonCreator");
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinSpringServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinSpringServerCodegen.java
index 909c1f59cf2..29f2bc72c8a 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinSpringServerCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinSpringServerCodegen.java
@@ -125,17 +125,9 @@ public class KotlinSpringServerCodegen extends AbstractKotlinCodegen
typeMapping.put("array", "kotlin.collections.List");
typeMapping.put("list", "kotlin.collections.List");
- typeMapping.put("date", "java.time.LocalDate");
- typeMapping.put("date-time", "java.time.OffsetDateTime");
- typeMapping.put("Date", "java.time.LocalDate");
- typeMapping.put("DateTime", "java.time.OffsetDateTime");
-
// use resource for file handling
typeMapping.put("file", "org.springframework.core.io.Resource");
- importMapping.put("Date", "java.time.LocalDate");
- importMapping.put("DateTime", "java.time.OffsetDateTime");
-
addOption(TITLE, "server title name or client service name", title);
addOption(BASE_PACKAGE, "base package (invokerPackage) for generated code", basePackage);
addOption(SERVER_PORT, "configuration the port in which the sever is to run on", serverPort);
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/LuaClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/LuaClientCodegen.java
index f69352db3a9..e295bf61693 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/LuaClientCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/LuaClientCodegen.java
@@ -581,4 +581,16 @@ public class LuaClientCodegen extends DefaultCodegen implements CodegenConfig {
return name;
}
+
+ @Override
+ public void postProcess() {
+ System.out.println("################################################################################");
+ System.out.println("# Thanks for using OpenAPI Generator. #");
+ System.out.println("# Please consider donation to help us maintain this project \uD83D\uDE4F #");
+ System.out.println("# https://opencollective.com/openapi_generator/donate #");
+ System.out.println("# #");
+ System.out.println("# This generator is contributed by daurnimator (https://github.com/daurnimator)#");
+ System.out.println("# Pls support his work directly via https://github.com/sponsors/daurnimator \uD83D\uDE4F #");
+ System.out.println("################################################################################");
+ }
}
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java
index 796a005260f..a5967578311 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java
@@ -1107,4 +1107,16 @@ public class Swift5ClientCodegen extends DefaultCodegen implements CodegenConfig
example += ")";
return example;
}
+
+ @Override
+ public void postProcess() {
+ System.out.println("################################################################################");
+ System.out.println("# Thanks for using OpenAPI Generator. #");
+ System.out.println("# Please consider donation to help us maintain this project \uD83D\uDE4F #");
+ System.out.println("# https://opencollective.com/openapi_generator/donate #");
+ System.out.println("# #");
+ System.out.println("# swift5 generator is contributed by Bruno Coelho (https://github.com/4brunu). #");
+ System.out.println("# Please support his work directly via https://paypal.com/paypalme/4brunu \uD83D\uDE4F #");
+ System.out.println("################################################################################");
+ }
}
diff --git a/modules/openapi-generator/src/main/resources/Ada/client-body.mustache b/modules/openapi-generator/src/main/resources/Ada/client-body.mustache
index 1ae60a71fde..71b3e314a95 100644
--- a/modules/openapi-generator/src/main/resources/Ada/client-body.mustache
+++ b/modules/openapi-generator/src/main/resources/Ada/client-body.mustache
@@ -1,6 +1,8 @@
{{>licenseInfo}}
+pragma Warnings (Off, "*is not referenced");
with Swagger.Streams;
package body {{package}}.Clients is
+ pragma Style_Checks ("-mr");
{{#apiInfo}}
{{#apis}}
{{#operations}}
diff --git a/modules/openapi-generator/src/main/resources/Ada/client-spec.mustache b/modules/openapi-generator/src/main/resources/Ada/client-spec.mustache
index 9d41b9671f3..46559f0dcad 100644
--- a/modules/openapi-generator/src/main/resources/Ada/client-spec.mustache
+++ b/modules/openapi-generator/src/main/resources/Ada/client-spec.mustache
@@ -4,6 +4,7 @@
with {{package}}.Models;
with Swagger.Clients;
package {{package}}.Clients is
+ pragma Style_Checks ("-mr");
type Client_Type is new Swagger.Clients.Client_Type with null record;
diff --git a/modules/openapi-generator/src/main/resources/Ada/config.gpr b/modules/openapi-generator/src/main/resources/Ada/config.gpr
index e2f60ea1b6a..e46b6311ef5 100644
--- a/modules/openapi-generator/src/main/resources/Ada/config.gpr
+++ b/modules/openapi-generator/src/main/resources/Ada/config.gpr
@@ -3,17 +3,16 @@ abstract project Config is
type Yes_No is ("yes", "no");
- type Library_Type_Type is ("relocatable", "static");
+ type Library_Type_Type is ("relocatable", "static", "static-pic");
- type Mode_Type is ("distrib", "debug", "optimize", "profile");
- Mode : Mode_Type := external ("MODE", "debug");
+ type Build_Type is ("distrib", "debug", "optimize", "profile", "coverage");
+ Mode : Build_Type := external ("BUILD", "debug");
- Coverage : Yes_No := External ("COVERAGE", "no");
Processors := External ("PROCESSORS", "1");
package Builder is
case Mode is
- when "debug" =>
+ when "debug" =>
for Default_Switches ("Ada") use ("-g", "-j" & Processors);
when others =>
for Default_Switches ("Ada") use ("-g", "-O2", "-j" & Processors);
@@ -29,7 +28,12 @@ abstract project Config is
when "debug" =>
for Default_Switches ("Ada") use defaults & warnings
- & ("-gnata", "-gnatVaMI", "-gnaty3abcefhiklmnprstxM99");
+ & ("-gnata", "-gnatVaMI", "-gnaty3abcefhiklmnprstxM127");
+
+ when "coverage" =>
+ for Default_Switches ("Ada") use defaults & warnings
+ & ("-gnata", "-gnatVaMI", "-gnaty3abcefhiklmnprstxM127",
+ "-fprofile-arcs", "-ftest-coverage");
when "optimize" =>
for Default_Switches ("Ada") use defaults & warnings
@@ -37,13 +41,7 @@ abstract project Config is
when "profile" =>
for Default_Switches ("Ada") use defaults & warnings & ("-pg");
- end case;
- case Coverage is
- when "yes" =>
- for Default_Switches ("ada") use Compiler'Default_Switches ("Ada") &
- ("-fprofile-arcs", "-ftest-coverage");
- when others =>
end case;
end compiler;
@@ -69,18 +67,15 @@ abstract project Config is
when "optimize" =>
for Default_Switches ("Ada") use ("-Wl,--gc-sections");
+ when "coverage" =>
+ for Default_Switches ("ada") use ("-fprofile-arcs");
+
when others =>
null;
end case;
- case Coverage is
- when "yes" =>
- for Default_Switches ("ada") use Linker'Default_Switches ("ada") &
- ("-fprofile-arcs");
- when others =>
- end case;
- end linker;
-
+ end linker;
+
package Ide is
for VCS_Kind use "git";
end Ide;
diff --git a/modules/openapi-generator/src/main/resources/Ada/licenseInfo.mustache b/modules/openapi-generator/src/main/resources/Ada/licenseInfo.mustache
index 3508727b17c..df913f4d712 100644
--- a/modules/openapi-generator/src/main/resources/Ada/licenseInfo.mustache
+++ b/modules/openapi-generator/src/main/resources/Ada/licenseInfo.mustache
@@ -2,7 +2,7 @@
-- {{{appDescription}}}
--
-- {{#version}}The version of the OpenAPI document: {{{version}}}{{/version}}
--- {{#infoEmail}}Contact: {{{infoEmail}}}{{/infoEmail}}
+--{{#infoEmail}} Contact: {{{infoEmail}}}{{/infoEmail}}
--
-- NOTE: This package is auto generated by OpenAPI-Generator {{{generatorVersion}}}.
-- https://openapi-generator.tech
diff --git a/modules/openapi-generator/src/main/resources/Ada/model-body.mustache b/modules/openapi-generator/src/main/resources/Ada/model-body.mustache
index 4c744def310..fafae8dbf8a 100644
--- a/modules/openapi-generator/src/main/resources/Ada/model-body.mustache
+++ b/modules/openapi-generator/src/main/resources/Ada/model-body.mustache
@@ -1,6 +1,9 @@
{{>licenseInfo}}
package body {{package}}.Models is
+ pragma Style_Checks ("-mr");
+
+ pragma Warnings (Off, "*use clause for package*");
use Swagger.Streams;
diff --git a/modules/openapi-generator/src/main/resources/Ada/model-spec.mustache b/modules/openapi-generator/src/main/resources/Ada/model-spec.mustache
index a29428e2df7..3852b0767e4 100644
--- a/modules/openapi-generator/src/main/resources/Ada/model-spec.mustache
+++ b/modules/openapi-generator/src/main/resources/Ada/model-spec.mustache
@@ -4,6 +4,7 @@
with Swagger.Streams;
with Ada.Containers.Vectors;
package {{package}}.Models is
+ pragma Style_Checks ("-mr");
{{#orderedModels}}{{#model}}{{^isArray}}
{{#title}} -- ------------------------------
diff --git a/modules/openapi-generator/src/main/resources/Ada/server-skeleton-body.mustache b/modules/openapi-generator/src/main/resources/Ada/server-skeleton-body.mustache
index d332d31d217..b24ba9815da 100644
--- a/modules/openapi-generator/src/main/resources/Ada/server-skeleton-body.mustache
+++ b/modules/openapi-generator/src/main/resources/Ada/server-skeleton-body.mustache
@@ -1,7 +1,12 @@
{{>licenseInfo}}
+pragma Warnings (Off, "*is not referenced");
with Swagger.Streams;
with Swagger.Servers.Operation;
package body {{package}}.Skeletons is
+ pragma Style_Checks ("-mr");
+ pragma Warnings (Off, "*use clause for package*");
+
+ use Swagger.Streams;
package body Skeleton is
@@ -58,7 +63,7 @@ package body {{package}}.Skeletons is
{{#hasParams}}
{{#hasBodyParam}}
Swagger.Servers.Read (Req, Input);
- {{#bodyParams}}{{#vendorExtensions.x-is-model-type}}
+{{#bodyParams}}{{#vendorExtensions.x-is-model-type}}
{{package}}.Models.Deserialize (Input, "{{baseName}}", {{paramName}});{{/vendorExtensions.x-is-model-type}}{{^vendorExtensions.x-is-model-type}}{{#isFile}}
-- TODO: Serialize (Input.Stream, "{{basename}}", {{paramName}});{{/isFile}}{{^isFile}}{{^isLong}}
Deserialize (Input, "{{baseName}}", {{paramName}});{{/isLong}}{{#isLong}}
diff --git a/modules/openapi-generator/src/main/resources/Ada/server-skeleton-spec.mustache b/modules/openapi-generator/src/main/resources/Ada/server-skeleton-spec.mustache
index 20a1a18f273..d266f3b3dd2 100644
--- a/modules/openapi-generator/src/main/resources/Ada/server-skeleton-spec.mustache
+++ b/modules/openapi-generator/src/main/resources/Ada/server-skeleton-spec.mustache
@@ -1,10 +1,14 @@
{{>licenseInfo}}
{{#imports}}with {{import}};
{{/imports}}
+pragma Warnings (Off, "*is not referenced");
+pragma Warnings (Off, "*no entities of*are referenced");
with Swagger.Servers;
with {{package}}.Models;
with Security.Permissions;
package {{package}}.Skeletons is
+ pragma Style_Checks ("-mr");
+ pragma Warnings (Off, "*use clause for package*");
use {{package}}.Models;
type Server_Type is limited interface;
{{#authMethods}}{{#scopes}}
diff --git a/modules/openapi-generator/src/main/resources/Ada/server-spec.mustache b/modules/openapi-generator/src/main/resources/Ada/server-spec.mustache
index 3344038a792..7b08b6cd046 100644
--- a/modules/openapi-generator/src/main/resources/Ada/server-spec.mustache
+++ b/modules/openapi-generator/src/main/resources/Ada/server-spec.mustache
@@ -15,6 +15,7 @@ with Swagger.Servers;
with {{package}}.Models;
with {{package}}.Skeletons;
package {{package}}.Servers is
+ pragma Warnings (Off, "*use clause for package*");
use {{package}}.Models;
type Server_Type is limited new {{package}}.Skeletons.Server_Type with null record;
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/AbstractOpenApiSchema.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/AbstractOpenApiSchema.mustache
index 5b2198dedb5..d7d9ee9e740 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/native/AbstractOpenApiSchema.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/native/AbstractOpenApiSchema.mustache
@@ -1,6 +1,6 @@
{{>licenseInfo}}
-package {{invokerPackage}}.model;
+package {{modelPackage}};
import {{invokerPackage}}.ApiException;
import java.util.Objects;
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/ApiClient.mustache
index 4fff8b5e962..abdea5d8f27 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/native/ApiClient.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/native/ApiClient.mustache
@@ -18,6 +18,10 @@ import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.charset.Charset;
import java.time.Duration;
+{{#java8}}
+import java.time.OffsetDateTime;
+import java.time.format.DateTimeFormatter;
+{{/java8}}
import java.util.Collection;
import java.util.Collections;
import java.util.List;
@@ -57,6 +61,11 @@ public class ApiClient {
if (value == null) {
return "";
}
+ {{#java8}}
+ if (value instanceof OffsetDateTime) {
+ return ((OffsetDateTime) value).format(DateTimeFormatter.ISO_OFFSET_DATE_TIME);
+ }
+ {{/java8}}
return value.toString();
}
@@ -87,7 +96,7 @@ public class ApiClient {
if (name == null || name.isEmpty() || value == null) {
return Collections.emptyList();
}
- return Collections.singletonList(new Pair(urlEncode(name), urlEncode(value.toString())));
+ return Collections.singletonList(new Pair(urlEncode(name), urlEncode(valueToString(value))));
}
/**
@@ -156,6 +165,7 @@ public class ApiClient {
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);
+ mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE);
mapper.registerModule(new JavaTimeModule());
{{#openApiNullable}}
JsonNullableModule jnm = new JsonNullableModule();
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/pom.mustache
index d99f278244e..74a1b796dcd 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/pom.mustache
@@ -330,16 +330,16 @@
{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}
${java.version}
${java.version}
- 1.8.4
- 1.5.24
- 3.14.7
+ 1.8.5
+ 1.6.2
+ 4.9.1
2.8.6
- 3.10
+ 3.11
{{#joda}}
- 2.9.9
+ 2.10.9
{{/joda}}
{{#threetenbp}}
- 1.4.3
+ 1.5.0
{{/threetenbp}}
1.3.2
4.13.1
diff --git a/modules/openapi-generator/src/main/resources/Javascript/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Javascript/ApiClient.mustache
index 3c1751b70a5..49f0c1f17e0 100644
--- a/modules/openapi-generator/src/main/resources/Javascript/ApiClient.mustache
+++ b/modules/openapi-generator/src/main/resources/Javascript/ApiClient.mustache
@@ -576,7 +576,7 @@
*/
{{/emitJSDoc}} exports.parseDate = function(str) {
if (isNaN(str)) {
- return new Date(str.replace(/T/i, ' '));
+ return new Date(str.replace(/(\d)(T)(\d)/i, '$1 $3'));
}
return new Date(+str);
};
diff --git a/modules/openapi-generator/src/main/resources/Javascript/es6/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Javascript/es6/ApiClient.mustache
index a226cfc08aa..35325e5276d 100644
--- a/modules/openapi-generator/src/main/resources/Javascript/es6/ApiClient.mustache
+++ b/modules/openapi-generator/src/main/resources/Javascript/es6/ApiClient.mustache
@@ -556,7 +556,7 @@ class ApiClient {
*/{{/emitJSDoc}}
static parseDate(str) {
if (isNaN(str)) {
- return new Date(str);
+ return new Date(str.replace(/(\d)(T)(\d)/i, '$1 $3'));
}
return new Date(+str);
}
diff --git a/modules/openapi-generator/src/main/resources/cpp-qt5-client/api-body.mustache b/modules/openapi-generator/src/main/resources/cpp-qt5-client/api-body.mustache
index 08ae9aa8ddb..42c30bfba38 100644
--- a/modules/openapi-generator/src/main/resources/cpp-qt5-client/api-body.mustache
+++ b/modules/openapi-generator/src/main/resources/cpp-qt5-client/api-body.mustache
@@ -139,15 +139,73 @@ void {{classname}}::abortRequests(){
emit abortRequestsSignal();
}
+QString {{classname}}::getParamStylePrefix(QString style){
+
+ if(style == "matrix"){
+ return ";";
+ }else if(style == "label"){
+ return ".";
+ }else if(style == "form"){
+ return "&";
+ }else if(style == "simple"){
+ return "";
+ }else if(style == "spaceDelimited"){
+ return "&";
+ }else if(style == "pipeDelimited"){
+ return "&";
+ }else
+ return "none";
+}
+
+QString {{classname}}::getParamStyleSuffix(QString style){
+
+ if(style == "matrix"){
+ return "=";
+ }else if(style == "label"){
+ return "";
+ }else if(style == "form"){
+ return "=";
+ }else if(style == "simple"){
+ return "";
+ }else if(style == "spaceDelimited"){
+ return "=";
+ }else if(style == "pipeDelimited"){
+ return "=";
+ }else
+ return "none";
+}
+
+QString {{classname}}::getParamStyleDelimiter(QString style, QString name, bool isExplode){
+
+ if(style == "matrix"){
+ return (isExplode) ? ";" + name + "=" : ",";
+
+ }else if(style == "label"){
+ return (isExplode) ? "." : ",";
+
+ }else if(style == "form"){
+ return (isExplode) ? "&" + name + "=" : ",";
+
+ }else if(style == "simple"){
+ return ",";
+ }else if(style == "spaceDelimited"){
+ return (isExplode) ? "&" + name + "=" : " ";
+
+ }else if(style == "pipeDelimited"){
+ return (isExplode) ? "&" + name + "=" : "|";
+
+ }else if(style == "deepObject"){
+ return (isExplode) ? "&" : "none";
+
+ }else
+ return "none";
+}
+
{{#operations}}
{{#operation}}
void {{classname}}::{{nickname}}({{#allParams}}const {{{dataType}}} &{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) {
QString fullPath = QString(_serverConfigs["{{nickname}}"][_serverIndices.value("{{nickname}}")].URL()+"{{{path}}}");
- {{#pathParams}}
- QString {{paramName}}PathParam("{");
- {{paramName}}PathParam.append("{{baseName}}").append("}");
- fullPath.replace({{paramName}}PathParam, QUrl::toPercentEncoding(::{{cppNamespace}}::toStringValue({{paramName}})));
- {{/pathParams}}{{#authMethods}}{{#isApiKey}}{{#isKeyInHeader}}
+ {{#authMethods}}{{#isApiKey}}{{#isKeyInHeader}}
if(_apiKeys.contains("{{name}}")){
addHeaders("{{name}}",_apiKeys.find("{{name}}").value());
}
@@ -168,18 +226,148 @@ void {{classname}}::{{nickname}}({{#allParams}}const {{{dataType}}} &{{paramName
b64.append(_username.toUtf8() + ":" + _password.toUtf8());
addHeaders("Authorization","Basic " + b64.toBase64());
}{{/isBasicBasic}}{{/authMethods}}
-{{#queryParams}}{{^collectionFormat}}
+ {{#pathParams}}
+ QString {{paramName}}PathParam("{");
+ {{paramName}}PathParam.append("{{baseName}}").append("}");
+ QString pathPrefix, pathSuffix, pathDelimiter;
+ QString pathStyle = "{{style}}";
+ if(pathStyle == "")
+ pathStyle = "simple";
+ pathPrefix = getParamStylePrefix(pathStyle);
+ pathSuffix = getParamStyleSuffix(pathStyle);
+ pathDelimiter = getParamStyleDelimiter(pathStyle, "{{baseName}}", {{isExplode}});
+ {{^collectionFormat}}
+ {{^isPrimitiveType}}
+ QString paramString = (pathStyle == "matrix" && {{isExplode}}) ? pathPrefix : pathPrefix+"{{baseName}}"+pathSuffix;
+ QJsonObject parameter = {{paramName}}.asJsonObject();
+ qint32 count = 0;
+ foreach(const QString& key, parameter.keys()) {
+ if (count > 0) {
+ pathDelimiter = (pathStyle == "matrix" && {{isExplode}}) ? ";" : getParamStyleDelimiter(pathStyle, key, {{isExplode}});
+ paramString.append(pathDelimiter);
+ }
+ QString assignOperator = ({{isExplode}}) ? "=" : ",";
+ switch(parameter.value(key).type()) {
+ case QJsonValue::String:
+ {
+ paramString.append(key+assignOperator+parameter.value(key).toString());
+ break;
+ }
+ case QJsonValue::Double:
+ {
+ paramString.append(key+assignOperator+QString::number(parameter.value(key).toDouble()));
+ break;
+ }
+ case QJsonValue::Bool:
+ {
+ paramString.append(key+assignOperator+QVariant(parameter.value(key).toBool()).toString());
+ break;
+ }
+ case QJsonValue::Array:
+ {
+ paramString.append(key+assignOperator+QVariant(parameter.value(key).toArray()).toString());
+ break;
+ }
+ case QJsonValue::Object:
+ {
+ paramString.append(key+assignOperator+QVariant(parameter.value(key).toObject()).toString());
+ break;
+ }
+ case QJsonValue::Null:
+ case QJsonValue::Undefined:
+ break;
+ }
+ count++;
+ }
+ fullPath.replace({{paramName}}PathParam, QUrl::toPercentEncoding(paramString));
+ {{/isPrimitiveType}}
+ {{#isPrimitiveType}}
+ QString paramString = (pathStyle == "matrix") ? pathPrefix+"{{baseName}}"+pathSuffix : pathPrefix;
+ fullPath.replace({{paramName}}PathParam, paramString+QUrl::toPercentEncoding(::{{cppNamespace}}::toStringValue({{paramName}})));
+{{/isPrimitiveType}}{{/collectionFormat}}{{#collectionFormat}}
+ if ({{{paramName}}}.size() > 0) {
+ QString paramString = (pathStyle == "matrix") ? pathPrefix+"{{baseName}}"+pathSuffix : pathPrefix;
+ qint32 count = 0;
+ foreach ({{{baseType}}} t, {{paramName}}) {
+ if (count > 0) {
+ fullPath.append(pathDelimiter);
+ }
+ fullPath.append(QUrl::toPercentEncoding(::{{cppNamespace}}::toStringValue(t)));
+ count++;
+ }
+ fullPath.replace({{paramName}}PathParam, paramString);
+ }
+{{/collectionFormat}}{{/pathParams}}
+ {{#hasQueryParams}}
+ QString queryPrefix, querySuffix, queryDelimiter, queryStyle;
+ {{/hasQueryParams}}
+{{#queryParams}}
+ queryStyle = "{{style}}";
+ if(queryStyle == "")
+ queryStyle = "form";
+ queryPrefix = getParamStylePrefix(queryStyle);
+ querySuffix = getParamStyleSuffix(queryStyle);
+ queryDelimiter = getParamStyleDelimiter(queryStyle, "{{baseName}}", {{isExplode}});
+{{^collectionFormat}}
if (fullPath.indexOf("?") > 0)
- fullPath.append("&");
+ fullPath.append(queryPrefix);
else
fullPath.append("?");
- fullPath.append(QUrl::toPercentEncoding("{{baseName}}")).append("=").append(QUrl::toPercentEncoding(::{{cppNamespace}}::toStringValue({{paramName}})));
-{{/collectionFormat}}{{#collectionFormat}}
+ {{^isPrimitiveType}}
+ QString paramString = (queryStyle == "form" && {{isExplode}}) ? "" : (queryStyle == "form" && !({{isExplode}})) ? "{{baseName}}"+querySuffix : "";
+ QJsonObject parameter = {{paramName}}.asJsonObject();
+ qint32 count = 0;
+ foreach(const QString& key, parameter.keys()) {
+ if (count > 0) {
+ queryDelimiter = ((queryStyle == "form" || queryStyle == "deepObject") && {{isExplode}}) ? "&" : getParamStyleDelimiter(queryStyle, key, {{isExplode}});
+ paramString.append(queryDelimiter);
+ }
+ QString assignOperator;
+ if (queryStyle == "form")
+ assignOperator = ({{isExplode}}) ? "=" : ",";
+ else if (queryStyle == "deepObject")
+ assignOperator = ({{isExplode}}) ? "=" : "none";
+ switch(parameter.value(key).type()) {
+ case QJsonValue::String:
+ {
+ paramString.append(((queryStyle == "form") ? key : QString("{{baseName}}").append("[").append(key).append("]"))+assignOperator+parameter.value(key).toString());
+ break;
+ }
+ case QJsonValue::Double:
+ {
+ paramString.append(((queryStyle == "form") ? key : QString("{{baseName}}").append("[").append(key).append("]"))+assignOperator+QString::number(parameter.value(key).toDouble()));
+ break;
+ }
+ case QJsonValue::Bool:
+ {
+ paramString.append(((queryStyle == "form") ? key : QString("{{baseName}}").append("[").append(key).append("]"))+assignOperator+QVariant(parameter.value(key).toBool()).toString());
+ break;
+ }
+ case QJsonValue::Array:
+ {
+ paramString.append(((queryStyle == "form") ? key : QString("{{baseName}}").append("[").append(key).append("]"))+assignOperator+QVariant(parameter.value(key).toArray()).toString());
+ break;
+ }
+ case QJsonValue::Object:
+ {
+ paramString.append(((queryStyle == "form") ? key : QString("{{baseName}}").append("[").append(key).append("]"))+assignOperator+QVariant(parameter.value(key).toObject()).toString());
+ break;
+ }
+ case QJsonValue::Null:
+ case QJsonValue::Undefined:
+ break;
+ }
+ count++;
+ }
+ fullPath.append(paramString);
+ {{/isPrimitiveType}}{{#isPrimitiveType}}
+ fullPath.append(QUrl::toPercentEncoding("{{baseName}}")).append(querySuffix).append(QUrl::toPercentEncoding(::{{cppNamespace}}::toStringValue({{paramName}})));
+{{/isPrimitiveType}}{{/collectionFormat}}{{#collectionFormat}}
if ({{{paramName}}}.size() > 0) {
if (QString("{{collectionFormat}}").indexOf("multi") == 0) {
foreach ({{{baseType}}} t, {{paramName}}) {
if (fullPath.indexOf("?") > 0)
- fullPath.append("&");
+ fullPath.append(queryPrefix);
else
fullPath.append("?");
fullPath.append("{{{baseName}}}=").append(::{{cppNamespace}}::toStringValue(t));
@@ -188,28 +376,67 @@ void {{classname}}::{{nickname}}({{#allParams}}const {{{dataType}}} &{{paramName
if (fullPath.indexOf("?") > 0)
fullPath.append("&");
else
- fullPath.append("?");
- fullPath.append("{{baseName}}=");
+ fullPath.append("?").append(queryPrefix).append("{{baseName}}").append(querySuffix);
qint32 count = 0;
foreach ({{{baseType}}} t, {{paramName}}) {
if (count > 0) {
- fullPath.append(" ");
+ fullPath.append(({{isExplode}})? queryDelimiter : QUrl::toPercentEncoding(queryDelimiter));
}
fullPath.append(::{{cppNamespace}}::toStringValue(t));
+ count++;
}
} else if (QString("{{collectionFormat}}").indexOf("tsv") == 0) {
if (fullPath.indexOf("?") > 0)
fullPath.append("&");
else
- fullPath.append("?");
- fullPath.append("{{baseName}}=");
+ fullPath.append("?").append(queryPrefix).append("{{baseName}}").append(querySuffix);
qint32 count = 0;
foreach ({{{baseType}}} t, {{paramName}}) {
if (count > 0) {
fullPath.append("\t");
}
fullPath.append(::{{cppNamespace}}::toStringValue(t));
+ count++;
}
+ } else if (QString("{{collectionFormat}}").indexOf("csv") == 0) {
+ if (fullPath.indexOf("?") > 0)
+ fullPath.append("&");
+ else
+ fullPath.append("?").append(queryPrefix).append("{{baseName}}").append(querySuffix);
+ qint32 count = 0;
+ foreach ({{{baseType}}} t, {{paramName}}) {
+ if (count > 0) {
+ fullPath.append(queryDelimiter);
+ }
+ fullPath.append(::{{cppNamespace}}::toStringValue(t));
+ count++;
+ }
+ } else if (QString("{{collectionFormat}}").indexOf("pipes") == 0) {
+ if (fullPath.indexOf("?") > 0)
+ fullPath.append("&");
+ else
+ fullPath.append("?").append(queryPrefix).append("{{baseName}}").append(querySuffix);
+ qint32 count = 0;
+ foreach ({{{baseType}}} t, {{paramName}}) {
+ if (count > 0) {
+ fullPath.append(queryDelimiter);
+ }
+ fullPath.append(::{{cppNamespace}}::toStringValue(t));
+ count++;
+ }
+ } else if (QString("{{collectionFormat}}").indexOf("deepObject") == 0) {
+ if (fullPath.indexOf("?") > 0)
+ fullPath.append("&");
+ else
+ fullPath.append("?").append(queryPrefix).append("{{baseName}}").append(querySuffix);
+ qint32 count = 0;
+ foreach ({{{baseType}}} t, {{paramName}}) {
+ if (count > 0) {
+ fullPath.append(queryDelimiter);
+ }
+ fullPath.append(::{{cppNamespace}}::toStringValue(t));
+ count++;
+ }
}
}
{{/collectionFormat}}{{/queryParams}}
@@ -219,7 +446,18 @@ void {{classname}}::{{nickname}}({{#allParams}}const {{{dataType}}} &{{paramName
worker->setResponseCompressionEnabled(isResponseCompressionEnabled);
worker->setRequestCompressionEnabled(isRequestCompressionEnabled);{{/contentCompression}}
{{prefix}}HttpRequestInput input(fullPath, "{{httpMethod}}");
-{{#formParams}}{{^isFile}}
+
+{{#formParams}}
+ {{#first}}
+ QString formPrefix,formSuffix, formDelimiter;
+ QString formStyle = "{{style}}";
+ if(formStyle == "")
+ formStyle = "form";
+ formPrefix = getParamStylePrefix(formStyle);
+ formSuffix = getParamStyleSuffix(formStyle);
+ formDelimiter = getParamStyleDelimiter(formStyle, "{{baseName}}", {{isExplode}});
+ {{/first}}
+{{^isFile}}
input.add_var("{{baseName}}", ::{{cppNamespace}}::toStringValue({{paramName}}));{{/isFile}}{{#isFile}}
input.add_file("{{baseName}}", {{paramName}}.local_filename, {{paramName}}.request_filename, {{paramName}}.mime_type);{{/isFile}}{{/formParams}}{{#bodyParams}}{{#isContainer}}{{#isArray}}
QJsonDocument doc(::{{cppNamespace}}::toJsonValue({{paramName}}).toArray());{{/isArray}}{{#isMap}}
@@ -232,11 +470,130 @@ void {{classname}}::{{nickname}}({{#allParams}}const {{{dataType}}} &{{paramName
QByteArray output = {{paramName}}.asByteArray();{{/isFile}}
input.request_body.append(output);
{{/isContainer}}{{/bodyParams}}{{#headerParams}}
+{{^collectionFormat}}{{^isPrimitiveType}}
+ QString headerString;
+ QJsonObject parameter = {{paramName}}.asJsonObject();
+ qint32 count = 0;
+ foreach(const QString& key, parameter.keys()) {
+ if (count > 0) {
+ headerString.append(",");
+ }
+ QString assignOperator = ({{isExplode}}) ? "=" : ",";
+ switch(parameter.value(key).type()) {
+ case QJsonValue::String:
+ {
+ headerString.append(key+assignOperator+parameter.value(key).toString());
+ break;
+ }
+ case QJsonValue::Double:
+ {
+ headerString.append(key+assignOperator+QString::number(parameter.value(key).toDouble()));
+ break;
+ }
+ case QJsonValue::Bool:
+ {
+ headerString.append(key+assignOperator+QVariant(parameter.value(key).toBool()).toString());
+ break;
+ }
+ case QJsonValue::Array:
+ {
+ headerString.append(key+assignOperator+QVariant(parameter.value(key).toArray()).toString());
+ break;
+ }
+ case QJsonValue::Object:
+ {
+ headerString.append(key+assignOperator+QVariant(parameter.value(key).toObject()).toString());
+ break;
+ }
+ case QJsonValue::Null:
+ case QJsonValue::Undefined:
+ break;
+ }
+ count++;
+ }
+ input.headers.insert("{{baseName}}", headerString);
+{{/isPrimitiveType}}{{#isPrimitiveType}}
if (!::{{cppNamespace}}::toStringValue({{paramName}}).isEmpty()) {
input.headers.insert("{{baseName}}", ::{{cppNamespace}}::toStringValue({{paramName}}));
}
+{{/isPrimitiveType}}{{/collectionFormat}}{{#collectionFormat}}
+ QString headerString;
+ if ({{{paramName}}}.size() > 0) {
+ qint32 count = 0;
+ foreach ({{{baseType}}} t, {{paramName}}) {
+ if (count > 0) {
+ headerString.append(",");
+ }
+ headerString.append(::{{cppNamespace}}::toStringValue(t));
+ count++;
+ }
+ input.headers.insert("{{baseName}}", headerString);
+ }
+{{/collectionFormat}}
{{/headerParams}}
-
+{{#cookieParams}}
+if(QString("{{style}}").indexOf("form") == 0){
+{{^collectionFormat}}{{^isPrimitiveType}}{{^isExplode}}
+ QString cookieString = "{{baseName}}=";
+ QJsonObject parameter = {{paramName}}.asJsonObject();
+ qint32 count = 0;
+ foreach(const QString& key, parameter.keys()) {
+ if (count > 0) {
+ cookieString.append(",");
+ }
+ switch(parameter.value(key).type()) {
+ case QJsonValue::String:
+ {
+ cookieString.append(key+","+parameter.value(key).toString());
+ break;
+ }
+ case QJsonValue::Double:
+ {
+ cookieString.append(key+","+QString::number(parameter.value(key).toDouble()));
+ break;
+ }
+ case QJsonValue::Bool:
+ {
+ cookieString.append(key+","+QVariant(parameter.value(key).toBool()).toString());
+ break;
+ }
+ case QJsonValue::Array:
+ {
+ cookieString.append(key+","+QVariant(parameter.value(key).toArray()).toString());
+ break;
+ }
+ case QJsonValue::Object:
+ {
+ cookieString.append(key+","+QVariant(parameter.value(key).toObject()).toString());
+ break;
+ }
+ case QJsonValue::Null:
+ case QJsonValue::Undefined:
+ break;
+ }
+ count++;
+ }
+ input.headers.insert("Cookie", cookieString);
+{{/isExplode}}{{/isPrimitiveType}}{{#isPrimitiveType}}
+ if (!::{{cppNamespace}}::toStringValue({{paramName}}).isEmpty()) {
+ input.headers.insert("Cookie", "{{baseName}}="+::{{cppNamespace}}::toStringValue({{paramName}}));
+ }
+{{/isPrimitiveType}}{{/collectionFormat}}{{#collectionFormat}}{{^isExplode}}
+ QString cookieString = "{{baseName}}=";
+ if ({{{paramName}}}.size() > 0) {
+ qint32 count = 0;
+ foreach ({{{baseType}}} t, {{paramName}}) {
+ if (count > 0) {
+ cookieString.append(",");
+ }
+ cookieString.append(::{{cppNamespace}}::toStringValue(t));
+ count++;
+ }
+ input.headers.insert("Cookie", cookieString);
+ }
+{{/isExplode}}{{/collectionFormat}}
+}
+{{/cookieParams}}
foreach (QString key, this->defaultHeaders.keys()) { input.headers.insert(key, this->defaultHeaders.value(key)); }
connect(worker, &{{prefix}}HttpRequestWorker::on_execution_finished, this, &{{classname}}::{{nickname}}Callback);
diff --git a/modules/openapi-generator/src/main/resources/cpp-qt5-client/api-header.mustache b/modules/openapi-generator/src/main/resources/cpp-qt5-client/api-header.mustache
index f802c2015da..2a8b5e0f8b1 100644
--- a/modules/openapi-generator/src/main/resources/cpp-qt5-client/api-header.mustache
+++ b/modules/openapi-generator/src/main/resources/cpp-qt5-client/api-header.mustache
@@ -43,6 +43,9 @@ public:
void enableRequestCompression();
void enableResponseCompression();
void abortRequests();
+ QString getParamStylePrefix(QString style);
+ QString getParamStyleSuffix(QString style);
+ QString getParamStyleDelimiter(QString style, QString name, bool isExplode);
{{#operations}}{{#operation}}
void {{nickname}}({{#allParams}}const {{{dataType}}} &{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{/operation}}{{/operations}}
diff --git a/modules/openapi-generator/src/main/resources/crystal/api.mustache b/modules/openapi-generator/src/main/resources/crystal/api.mustache
index 550f017c4c6..8b8daabb5f3 100644
--- a/modules/openapi-generator/src/main/resources/crystal/api.mustache
+++ b/modules/openapi-generator/src/main/resources/crystal/api.mustache
@@ -55,7 +55,7 @@ module {{moduleName}}
{{^isContainer}}
# verify enum value
allowable_values = [{{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}]
- if @api_client.config.client_side_validation && !allowable_values.include?({{{paramName}}})
+ if @api_client.config.client_side_validation && !allowable_values.includes?({{{paramName}}})
raise ArgumentError.new("invalid value for \"{{{paramName}}}\", must be one of #{allowable_values}")
end
{{/isContainer}}
@@ -66,13 +66,13 @@ module {{moduleName}}
{{#isEnum}}
{{#collectionFormat}}
allowable_values = [{{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}]
- if @api_client.config.client_side_validation && {{{paramName}}} && {{{paramName}}}.all? { |item| allowable_values.include?(item) }
+ if @api_client.config.client_side_validation && {{{paramName}}} && {{{paramName}}}.all? { |item| allowable_values.includes?(item) }
raise ArgumentError.new("invalid value for \"{{{paramName}}}\", must include one of #{allowable_values}")
end
{{/collectionFormat}}
{{^collectionFormat}}
allowable_values = [{{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}]
- if @api_client.config.client_side_validation && {{{paramName}}} && !allowable_values.include?({{{paramName}}}])
+ if @api_client.config.client_side_validation && {{{paramName}}} && !allowable_values.includes?({{{paramName}}})
raise ArgumentError.new("invalid value for \"{{{paramName}}}\", must be one of #{allowable_values}")
end
{{/collectionFormat}}
diff --git a/modules/openapi-generator/src/main/resources/crystal/api_client.mustache b/modules/openapi-generator/src/main/resources/crystal/api_client.mustache
index 5352175b00e..6831e51bae0 100644
--- a/modules/openapi-generator/src/main/resources/crystal/api_client.mustache
+++ b/modules/openapi-generator/src/main/resources/crystal/api_client.mustache
@@ -342,7 +342,7 @@ module {{moduleName}}
:verbose => @config.debugging
}
- if [:post, :patch, :put, :delete].include?(http_method)
+ if [:post, :patch, :put, :delete].includes?(http_method)
req_body = build_request_body(header_params, form_params, opts[:body])
req_opts.update body: req_body
if @config.debugging
diff --git a/modules/openapi-generator/src/main/resources/crystal/api_client_faraday_partial.mustache b/modules/openapi-generator/src/main/resources/crystal/api_client_faraday_partial.mustache
index dfef217e037..d1782b5e348 100644
--- a/modules/openapi-generator/src/main/resources/crystal/api_client_faraday_partial.mustache
+++ b/modules/openapi-generator/src/main/resources/crystal/api_client_faraday_partial.mustache
@@ -81,7 +81,7 @@
:verbose => @config.debugging
}
- if [:post, :patch, :put, :delete].include?(http_method)
+ if [:post, :patch, :put, :delete].includes?(http_method)
req_body = build_request_body(header_params, form_params, opts[:body])
req_opts.update body: req_body
if @config.debugging
diff --git a/modules/openapi-generator/src/main/resources/crystal/api_client_typhoeus_partial.mustache b/modules/openapi-generator/src/main/resources/crystal/api_client_typhoeus_partial.mustache
index d8e95e77461..e076e92c9fd 100644
--- a/modules/openapi-generator/src/main/resources/crystal/api_client_typhoeus_partial.mustache
+++ b/modules/openapi-generator/src/main/resources/crystal/api_client_typhoeus_partial.mustache
@@ -73,7 +73,7 @@
# set custom cert, if provided
req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert
- if [:post, :patch, :put, :delete].include?(http_method)
+ if [:post, :patch, :put, :delete].includes?(http_method)
req_body = build_request_body(header_params, form_params, opts[:body])
req_opts.update body: req_body
if @config.debugging
diff --git a/modules/openapi-generator/src/main/resources/crystal/base_object.mustache b/modules/openapi-generator/src/main/resources/crystal/base_object.mustache
index c7abd09b36b..22dafd41120 100644
--- a/modules/openapi-generator/src/main/resources/crystal/base_object.mustache
+++ b/modules/openapi-generator/src/main/resources/crystal/base_object.mustache
@@ -14,7 +14,7 @@
super(attributes)
{{/parent}}
self.class.openapi_types.each_pair do |key, type|
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
+ if !attributes[self.class.attribute_map[key]]? && self.class.openapi_nullable.includes?(key)
self.send("#{key}=", nil)
elsif type =~ /\AArray<(.*)>/i
# check to ensure the input is an array given that the attribute
@@ -92,7 +92,7 @@
self.class.attribute_map.each_pair do |attr, param|
value = self.send(attr)
if value.nil?
- is_nullable = self.class.openapi_nullable.include?(attr)
+ is_nullable = self.class.openapi_nullable.includes?(attr)
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
end
diff --git a/modules/openapi-generator/src/main/resources/crystal/configuration.mustache b/modules/openapi-generator/src/main/resources/crystal/configuration.mustache
index a3a815fc042..7111ba75e75 100644
--- a/modules/openapi-generator/src/main/resources/crystal/configuration.mustache
+++ b/modules/openapi-generator/src/main/resources/crystal/configuration.mustache
@@ -334,12 +334,12 @@ module {{moduleName}}
server = servers[index]
url = server[:url]
- return url unless server.key? :variables
+ return url unless server.has_key? :variables
# go through variable and assign a value
server[:variables].each do |name, variable|
- if variables.key?(name)
- if (!server[:variables][name].key?(:enum_values) || server[:variables][name][:enum_values].include?(variables[name]))
+ if variables.has_key?(name)
+ if (!server[:variables][name].has_key?(:enum_values) || server[:variables][name][:enum_values].includes?(variables[name]))
url.gsub! "{" + name.to_s + "}", variables[name]
else
raise ArgumentError.new("The variable `#{name}` in the server URL has invalid value #{variables[name]}. Must be #{server[:variables][name][:enum_values]}.")
diff --git a/modules/openapi-generator/src/main/resources/crystal/partial_model_generic.mustache b/modules/openapi-generator/src/main/resources/crystal/partial_model_generic.mustache
index 18f00b1d529..c36181c48dc 100644
--- a/modules/openapi-generator/src/main/resources/crystal/partial_model_generic.mustache
+++ b/modules/openapi-generator/src/main/resources/crystal/partial_model_generic.mustache
@@ -30,7 +30,7 @@
end
def valid?(value)
- !value || allowable_values.include?(value)
+ !value || allowable_values.includes?(value)
end
end
@@ -225,7 +225,7 @@
{{/isNullable}}
{{#maxLength}}
if {{^required}}!{{{name}}}.nil? && {{/required}}{{{name}}}.to_s.length > {{{maxLength}}}
- raise ArgumentError.new("invalid value for "{{{name}}}", the character length must be smaller than or equal to {{{maxLength}}}.")
+ raise ArgumentError.new("invalid value for \"{{{name}}}\", the character length must be smaller than or equal to {{{maxLength}}}.")
end
{{/maxLength}}
diff --git a/modules/openapi-generator/src/main/resources/crystal/partial_oneof_module.mustache b/modules/openapi-generator/src/main/resources/crystal/partial_oneof_module.mustache
index 14dc1635bb7..18c0a0cffdb 100644
--- a/modules/openapi-generator/src/main/resources/crystal/partial_oneof_module.mustache
+++ b/modules/openapi-generator/src/main/resources/crystal/partial_oneof_module.mustache
@@ -75,7 +75,7 @@
end
end
- openapi_one_of.include?(:AnyType) ? data : nil
+ openapi_one_of.includes?(:AnyType) ? data : nil
{{/discriminator}}
end
{{^discriminator}}
diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/ApiClient.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/ApiClient.mustache
index c1d025d7f03..1b5571eff72 100644
--- a/modules/openapi-generator/src/main/resources/csharp-netcore/ApiClient.mustache
+++ b/modules/openapi-generator/src/main/resources/csharp-netcore/ApiClient.mustache
@@ -472,6 +472,19 @@ namespace {{packageName}}.Client
response = client.Execute(req);
}
+ // if the response type is oneOf/anyOf, call FromJSON to deserialize the data
+ if (typeof({{{packageName}}}.{{modelPackage}}.AbstractOpenAPISchema).IsAssignableFrom(typeof(T)))
+ {
+ T instance = (T)Activator.CreateInstance(typeof(T));
+ MethodInfo method = typeof(T).GetMethod("FromJson");
+ method.Invoke(instance, new object[] { response.Content });
+ response.Data = instance;
+ }
+ else if (typeof(T).Name == "Stream") // for binary response
+ {
+ response.Data = (T)(object)new MemoryStream(response.RawBytes);
+ }
+
InterceptResponse(req, response);
var result = ToApiResponse(response);
@@ -583,6 +596,10 @@ namespace {{packageName}}.Client
method.Invoke(instance, new object[] { response.Content });
response.Data = instance;
}
+ else if (typeof(T).Name == "Stream") // for binary response
+ {
+ response.Data = (T)(object)new MemoryStream(response.RawBytes);
+ }
InterceptResponse(req, response);
diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/HttpSigningConfiguration.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/HttpSigningConfiguration.mustache
index b621c92d6bf..4ddd16be310 100644
--- a/modules/openapi-generator/src/main/resources/csharp-netcore/HttpSigningConfiguration.mustache
+++ b/modules/openapi-generator/src/main/resources/csharp-netcore/HttpSigningConfiguration.mustache
@@ -329,9 +329,22 @@ namespace {{packageName}}.Client
#if (NETCOREAPP3_0 || NETCOREAPP3_1 || NET5_0)
var byteCount = 0;
- if (configuration.KeyPassPhrase != null)
+ if (KeyPassPhrase != null)
{
- ecdsa.ImportEncryptedPkcs8PrivateKey(keyPassPhrase, keyBytes, out byteCount);
+ IntPtr unmanagedString = IntPtr.Zero;
+ try
+ {
+ // convert secure string to byte array
+ unmanagedString = Marshal.SecureStringToGlobalAllocUnicode(KeyPassPhrase);
+ ecdsa.ImportEncryptedPkcs8PrivateKey(Encoding.UTF8.GetBytes(Marshal.PtrToStringUni(unmanagedString)), keyBytes, out byteCount);
+ }
+ finally
+ {
+ if (unmanagedString != IntPtr.Zero)
+ {
+ Marshal.ZeroFreeBSTR(unmanagedString);
+ }
+ }
}
else
{
diff --git a/modules/openapi-generator/src/main/resources/dart-dio/api.mustache b/modules/openapi-generator/src/main/resources/dart-dio/api.mustache
index dcfedc065ed..95dc66a46e1 100644
--- a/modules/openapi-generator/src/main/resources/dart-dio/api.mustache
+++ b/modules/openapi-generator/src/main/resources/dart-dio/api.mustache
@@ -11,10 +11,12 @@ import 'package:built_value/serializer.dart';
{{/fullImports}}
class {{classname}} {
- final Dio _dio;
- Serializers _serializers;
- {{classname}}(this._dio, this._serializers);
+ final Dio _dio;
+
+ final Serializers _serializers;
+
+ const {{classname}}(this._dio, this._serializers);
{{#operation}}
/// {{{summary}}}
@@ -69,7 +71,7 @@ class {{classname}} {
{{#isContainer}}
{{#isArray}}
- const type = FullType(BuiltList, [FullType({{baseType}})]);
+ const type = FullType(Built{{#uniqueItems}}Built{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}, [FullType({{baseType}})]);
final serializedBody = _serializers.serialize({{paramName}}, specifiedType: type);
{{/isArray}}
{{#isMap}}
@@ -135,8 +137,7 @@ class {{classname}} {
{{/returnTypeIsPrimitive}}
{{/returnSimpleType}}
{{^returnSimpleType}}
- const collectionType = {{#isMap}}BuiltMap{{/isMap}}{{^isMap}}BuiltList{{/isMap}};
- const type = FullType(collectionType, [{{#isMap}}FullType(String), {{/isMap}}FullType({{{returnBaseType}}})]);
+ const type = FullType(Built{{#isMap}}Map{{/isMap}}{{#isArray}}{{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}{{/isArray}}, [{{#isMap}}FullType(String), {{/isMap}}FullType({{{returnBaseType}}})]);
final data = _serializers.deserialize(
response.data is String
? jsonDecode(response.data as String)
@@ -149,6 +150,7 @@ class {{classname}} {
return Response<{{{returnType}}}>(
data: data,
headers: response.headers,
+ isRedirect: response.isRedirect,
request: response.request,
redirects: response.redirects,
statusCode: response.statusCode,
diff --git a/modules/openapi-generator/src/main/resources/dart-dio/apilib.mustache b/modules/openapi-generator/src/main/resources/dart-dio/apilib.mustache
index 645a5fe7877..62f2bfc06bc 100644
--- a/modules/openapi-generator/src/main/resources/dart-dio/apilib.mustache
+++ b/modules/openapi-generator/src/main/resources/dart-dio/apilib.mustache
@@ -10,31 +10,37 @@ import 'package:{{pubName}}/auth/oauth.dart';
{{#apiInfo}}{{#apis}}import 'package:{{pubName}}/api/{{classFilename}}.dart';
{{/apis}}{{/apiInfo}}
-final _defaultInterceptors = [OAuthInterceptor(), BasicAuthInterceptor(), ApiKeyAuthInterceptor()];
+final _defaultInterceptors = [
+ OAuthInterceptor(),
+ BasicAuthInterceptor(),
+ ApiKeyAuthInterceptor(),
+];
class {{clientName}} {
- Dio dio;
- Serializers serializers;
- String basePath = '{{{basePath}}}';
+ static const String basePath = r'{{{basePath}}}';
- {{clientName}}({this.dio, Serializers serializers, String basePathOverride, List interceptors}) {
- if (dio == null) {
- BaseOptions options = new BaseOptions(
+ final Dio dio;
+
+ final Serializers serializers;
+
+ {{clientName}}({
+ Dio dio,
+ Serializers serializers,
+ String basePathOverride,
+ List interceptors,
+ }) : this.serializers = serializers ?? standardSerializers,
+ this.dio = dio ??
+ Dio(BaseOptions(
baseUrl: basePathOverride ?? basePath,
connectTimeout: 5000,
receiveTimeout: 3000,
- );
- this.dio = new Dio(options);
- }
-
- if (interceptors == null) {
- this.dio.interceptors.addAll(_defaultInterceptors);
- } else {
- this.dio.interceptors.addAll(interceptors);
- }
-
- this.serializers = serializers ?? standardSerializers;
+ )) {
+ if (interceptors == null) {
+ this.dio.interceptors.addAll(_defaultInterceptors);
+ } else {
+ this.dio.interceptors.addAll(interceptors);
+ }
}
void setOAuthToken(String name, String token) {
diff --git a/modules/openapi-generator/src/main/resources/dart-dio/local_date_serializer.mustache b/modules/openapi-generator/src/main/resources/dart-dio/local_date_serializer.mustache
index 31440035f4a..68cfd5e31c6 100644
--- a/modules/openapi-generator/src/main/resources/dart-dio/local_date_serializer.mustache
+++ b/modules/openapi-generator/src/main/resources/dart-dio/local_date_serializer.mustache
@@ -4,6 +4,9 @@ import 'package:built_value/serializer.dart';
import 'package:time_machine/time_machine.dart';
class OffsetDateSerializer implements PrimitiveSerializer {
+
+ const OffsetDateSerializer();
+
@override
Iterable get types => BuiltList([OffsetDate]);
@@ -25,6 +28,9 @@ class OffsetDateSerializer implements PrimitiveSerializer {
}
class OffsetDateTimeSerializer implements PrimitiveSerializer {
+
+ const OffsetDateTimeSerializer();
+
@override
Iterable get types => BuiltList([OffsetDateTime]);
diff --git a/modules/openapi-generator/src/main/resources/dart-dio/serializers.mustache b/modules/openapi-generator/src/main/resources/dart-dio/serializers.mustache
index eb73bd7453a..4697d00c323 100644
--- a/modules/openapi-generator/src/main/resources/dart-dio/serializers.mustache
+++ b/modules/openapi-generator/src/main/resources/dart-dio/serializers.mustache
@@ -18,16 +18,16 @@ part 'serializers.g.dart';
Serializers serializers = (_$serializers.toBuilder(){{#apiInfo}}{{#apis}}{{#serializers}}
..addBuilderFactory(
{{#isArray}}
- const FullType(BuiltList, [FullType({{baseType}})]),
- () => ListBuilder<{{baseType}}>(),
+ const FullType(Built{{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}, [FullType({{baseType}})]),
+ () => {{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}Builder<{{baseType}}>(),
{{/isArray}}
{{#isMap}}
const FullType(BuiltMap, [FullType(String), FullType({{baseType}})]),
() => MapBuilder(),
{{/isMap}}
){{/serializers}}{{/apis}}{{/apiInfo}}{{#timeMachine}}
- ..add(OffsetDateSerializer())
- ..add(OffsetDateTimeSerializer()){{/timeMachine}}
+ ..add(const OffsetDateSerializer())
+ ..add(const OffsetDateTimeSerializer()){{/timeMachine}}
..add(Iso8601DateTimeSerializer()))
.build();
diff --git a/modules/openapi-generator/src/main/resources/dart2/api.mustache b/modules/openapi-generator/src/main/resources/dart2/api.mustache
index 716118fa428..cc0bba98b46 100644
--- a/modules/openapi-generator/src/main/resources/dart2/api.mustache
+++ b/modules/openapi-generator/src/main/resources/dart2/api.mustache
@@ -187,8 +187,8 @@ class {{{classname}}} {
if (response.body != null && response.statusCode != HttpStatus.noContent) {
{{#isArray}}
return (apiClient.deserialize(_decodeBodyBytes(response), '{{{returnType}}}') as List)
- .map((item) => item as {{{returnBaseType}}})
- .toList(growable: false);
+ .cast<{{{returnBaseType}}}>()
+ .{{#uniqueItems}}toSet(){{/uniqueItems}}{{^uniqueItems}}toList(growable: false){{/uniqueItems}};
{{/isArray}}
{{^isArray}}
{{#isMap}}
diff --git a/modules/openapi-generator/src/main/resources/dart2/api_client.mustache b/modules/openapi-generator/src/main/resources/dart2/api_client.mustache
index 44af2418ca9..e289a31b63a 100644
--- a/modules/openapi-generator/src/main/resources/dart2/api_client.mustache
+++ b/modules/openapi-generator/src/main/resources/dart2/api_client.mustache
@@ -194,6 +194,12 @@ class ApiClient {
.map((v) => _deserialize(v, newTargetType, growable: growable))
.toList(growable: true == growable);
}
+ if (value is Set && (match = _regSet.firstMatch(targetType)) != null) {
+ final newTargetType = match[1];
+ return value
+ .map((v) => _deserialize(v, newTargetType, growable: growable))
+ .toSet();
+ }
if (value is Map && (match = _regMap.firstMatch(targetType)) != null) {
final newTargetType = match[1];
return Map.fromIterables(
diff --git a/modules/openapi-generator/src/main/resources/dart2/apilib.mustache b/modules/openapi-generator/src/main/resources/dart2/apilib.mustache
index 7502f877acd..5329912c5a2 100644
--- a/modules/openapi-generator/src/main/resources/dart2/apilib.mustache
+++ b/modules/openapi-generator/src/main/resources/dart2/apilib.mustache
@@ -26,6 +26,7 @@ const _delimiters = {'csv': ',', 'ssv': ' ', 'tsv': '\t', 'pipes': '|'};
const _dateEpochMarker = 'epoch';
final _dateFormatter = DateFormat('yyyy-MM-dd');
final _regList = RegExp(r'^List<(.*)>$');
+final _regSet = RegExp(r'^Set<(.*)>$');
final _regMap = RegExp(r'^Map$');
ApiClient defaultApiClient = ApiClient();
diff --git a/modules/openapi-generator/src/main/resources/dart2/class.mustache b/modules/openapi-generator/src/main/resources/dart2/class.mustache
index 5376a17691b..834200b592c 100644
--- a/modules/openapi-generator/src/main/resources/dart2/class.mustache
+++ b/modules/openapi-generator/src/main/resources/dart2/class.mustache
@@ -156,7 +156,7 @@ class {{{classname}}} {
{{^isEnum}}
{{{name}}}: json[r'{{{baseName}}}'] == null
? null
- : (json[r'{{{baseName}}}'] as List).cast<{{{items.datatype}}}>(),
+ : (json[r'{{{baseName}}}'] as {{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}).cast<{{{items.datatype}}}>(),
{{/isEnum}}
{{/isArray}}
{{^isArray}}
diff --git a/modules/openapi-generator/src/main/resources/go/signing.mustache b/modules/openapi-generator/src/main/resources/go/signing.mustache
index db486a16b20..22477a06f38 100644
--- a/modules/openapi-generator/src/main/resources/go/signing.mustache
+++ b/modules/openapi-generator/src/main/resources/go/signing.mustache
@@ -116,6 +116,11 @@ type HttpSignatureAuth struct {
privateKey crypto.PrivateKey // The private key used to sign HTTP requests.
}
+// SetPrivateKey accepts a private key string and sets it.
+func (h *HttpSignatureAuth) SetPrivateKey(privateKey string) error {
+ return h.parsePrivateKey([]byte(privateKey))
+}
+
// ContextWithValue validates the HttpSignatureAuth configuration parameters and returns a context
// suitable for HTTP signature. An error is returned if the HttpSignatureAuth configuration parameters
// are invalid.
@@ -123,7 +128,7 @@ func (h *HttpSignatureAuth) ContextWithValue(ctx context.Context) (context.Conte
if h.KeyId == "" {
return nil, fmt.Errorf("Key ID must be specified")
}
- if h.PrivateKeyPath == "" {
+ if h.PrivateKeyPath == "" && h.privateKey == nil {
return nil, fmt.Errorf("Private key path must be specified")
}
if _, ok := supportedSigningSchemes[h.SigningScheme]; !ok {
@@ -168,7 +173,11 @@ func (h *HttpSignatureAuth) GetPublicKey() (crypto.PublicKey, error) {
}
// loadPrivateKey reads the private key from the file specified in the HttpSignatureAuth.
+// The key is loaded only when privateKey is not already set.
func (h *HttpSignatureAuth) loadPrivateKey() (err error) {
+ if h.privateKey != nil {
+ return nil
+ }
var file *os.File
file, err = os.Open(h.PrivateKeyPath)
if err != nil {
@@ -182,12 +191,18 @@ func (h *HttpSignatureAuth) loadPrivateKey() (err error) {
if err != nil {
return err
}
+ return h.parsePrivateKey(priv)
+}
+
+// parsePrivateKey decodes privateKey byte array to crypto.PrivateKey type.
+func (h *HttpSignatureAuth) parsePrivateKey(priv []byte) error {
pemBlock, _ := pem.Decode(priv)
if pemBlock == nil {
// No PEM data has been found.
return fmt.Errorf("File '%s' does not contain PEM data", h.PrivateKeyPath)
}
var privKey []byte
+ var err error
if x509.IsEncryptedPEMBlock(pemBlock) {
// The PEM data is encrypted.
privKey, err = x509.DecryptPEMBlock(pemBlock, []byte(h.Passphrase))
diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/build.gradle.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/build.gradle.mustache
index a81f05ba352..7e71248dd1c 100644
--- a/modules/openapi-generator/src/main/resources/kotlin-client/build.gradle.mustache
+++ b/modules/openapi-generator/src/main/resources/kotlin-client/build.gradle.mustache
@@ -2,23 +2,23 @@ group '{{groupId}}'
version '{{artifactVersion}}'
wrapper {
- gradleVersion = '4.9'
+ gradleVersion = '6.8.2'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}
buildscript {
- ext.kotlin_version = '1.3.61'
+ ext.kotlin_version = '1.4.20'
{{#jvm-retrofit2}}
- ext.retrofitVersion = '2.6.2'
+ ext.retrofitVersion = '2.7.2'
{{/jvm-retrofit2}}
{{#useRxJava}}
ext.rxJavaVersion = '1.3.8'
{{/useRxJava}}
{{#useRxJava2}}
- ext.rxJava2Version = '2.2.17'
+ ext.rxJava2Version = '2.2.20'
{{/useRxJava2}}
{{#useRxJava3}}
- ext.rxJava3Version = '3.0.4'
+ ext.rxJava3Version = '3.0.10'
{{/useRxJava3}}
repositories {
@@ -33,6 +33,9 @@ apply plugin: 'kotlin'
{{#moshiCodeGen}}
apply plugin: 'kotlin-kapt'
{{/moshiCodeGen}}
+{{#parcelizeModels}}
+apply plugin: 'kotlin-parcelize'
+{{/parcelizeModels}}
repositories {
maven { url "https://repo1.maven.org/maven2" }
@@ -47,52 +50,36 @@ dependencies {
{{#moshi}}
{{^moshiCodeGen}}
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
- compile "com.squareup.moshi:moshi-kotlin:1.9.2"
+ compile "com.squareup.moshi:moshi-kotlin:1.11.0"
{{/moshiCodeGen}}
- compile "com.squareup.moshi:moshi-adapters:1.9.2"
{{#moshiCodeGen}}
- compile "com.squareup.moshi:moshi:1.9.2"
- kapt "com.squareup.moshi:moshi-kotlin-codegen:1.9.2"
+ compile "com.squareup.moshi:moshi:1.11.0"
+ kapt "com.squareup.moshi:moshi-kotlin-codegen:1.11.0"
{{/moshiCodeGen}}
{{/moshi}}
{{#gson}}
compile "com.google.code.gson:gson:2.8.6"
{{/gson}}
{{#jackson}}
+ compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "com.fasterxml.jackson.module:jackson-module-kotlin:2.10.2"
compile "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.10.2"
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.10.2"
{{/jackson}}
{{#jvm-okhttp3}}
- {{^moshi}}
- compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
- {{/moshi}}
- {{#moshi}}
- {{#modeCodeGen}}
- compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
- {{/modeCodeGen}}
- {{/moshi}}
- compile "com.squareup.okhttp3:okhttp:3.12.6"
+ compile "com.squareup.okhttp3:okhttp:3.12.13"
{{/jvm-okhttp3}}
{{#jvm-okhttp4}}
- {{^moshi}}
- compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
- {{/moshi}}
- {{#moshi}}
- {{#modeCodeGen}}
- compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
- {{/modeCodeGen}}
- {{/moshi}}
- compile "com.squareup.okhttp3:okhttp:4.2.2"
+ compile "com.squareup.okhttp3:okhttp:4.9.0"
{{/jvm-okhttp4}}
{{#threetenbp}}
- compile "org.threeten:threetenbp:1.4.0"
+ compile "org.threeten:threetenbp:1.5.0"
{{/threetenbp}}
{{#jvm-retrofit2}}
{{#hasOAuthMethods}}
compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.0"
{{/hasOAuthMethods}}
- compile "com.squareup.okhttp3:logging-interceptor:4.4.0"
+ compile "com.squareup.okhttp3:logging-interceptor:4.9.0"
{{#useRxJava}}
compile "io.reactivex:rxjava:$rxJavaVersion"
compile "com.squareup.retrofit2:adapter-rxjava:$retrofitVersion"
@@ -114,5 +101,5 @@ dependencies {
{{/moshi}}
compile "com.squareup.retrofit2:converter-scalars:$retrofitVersion"
{{/jvm-retrofit2}}
- testCompile "io.kotlintest:kotlintest-runner-junit5:3.1.0"
+ testCompile "io.kotlintest:kotlintest-runner-junit5:3.4.2"
}
diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/data_class.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/data_class.mustache
index 3cf85565431..2dd048a74f5 100644
--- a/modules/openapi-generator/src/main/resources/kotlin-client/data_class.mustache
+++ b/modules/openapi-generator/src/main/resources/kotlin-client/data_class.mustache
@@ -17,7 +17,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo
{{/jackson}}
{{#parcelizeModels}}
import android.os.Parcelable
-import kotlinx.android.parcel.Parcelize
+import kotlinx.parcelize.Parcelize
{{/parcelizeModels}}
{{/multiplatform}}
diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/infrastructure/RequestConfig.kt.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/infrastructure/RequestConfig.kt.mustache
index 435583e9726..61677c22aff 100644
--- a/modules/openapi-generator/src/main/resources/kotlin-client/infrastructure/RequestConfig.kt.mustache
+++ b/modules/openapi-generator/src/main/resources/kotlin-client/infrastructure/RequestConfig.kt.mustache
@@ -12,5 +12,6 @@ package {{packageName}}.infrastructure
val method: RequestMethod,
val path: String,
val headers: MutableMap = mutableMapOf(),
- val query: MutableMap> = mutableMapOf()
+ val query: MutableMap> = mutableMapOf(),
+ val body: kotlin.Any? = null
)
\ No newline at end of file
diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/jvm-common/infrastructure/Serializer.kt.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/jvm-common/infrastructure/Serializer.kt.mustache
index 7ccd5079677..3074614db75 100644
--- a/modules/openapi-generator/src/main/resources/kotlin-client/jvm-common/infrastructure/Serializer.kt.mustache
+++ b/modules/openapi-generator/src/main/resources/kotlin-client/jvm-common/infrastructure/Serializer.kt.mustache
@@ -2,7 +2,6 @@ package {{packageName}}.infrastructure
{{#moshi}}
import com.squareup.moshi.Moshi
-import com.squareup.moshi.adapters.Rfc3339DateJsonAdapter
{{^moshiCodeGen}}
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
{{/moshiCodeGen}}
@@ -36,7 +35,6 @@ import java.util.Date
{{#moshi}}
@JvmStatic
val moshiBuilder: Moshi.Builder = Moshi.Builder()
- .add(Date::class.java, Rfc3339DateJsonAdapter().nullSafe())
.add(OffsetDateTimeAdapter())
.add(LocalDateTimeAdapter())
.add(LocalDateAdapter())
@@ -54,7 +52,6 @@ import java.util.Date
{{#gson}}
@JvmStatic
val gsonBuilder: GsonBuilder = GsonBuilder()
- .registerTypeAdapter(Date::class.java, DateAdapter())
.registerTypeAdapter(OffsetDateTime::class.java, OffsetDateTimeAdapter())
.registerTypeAdapter(LocalDateTime::class.java, LocalDateTimeAdapter())
.registerTypeAdapter(LocalDate::class.java, LocalDateAdapter())
diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-okhttp/api.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-okhttp/api.mustache
index 13c9c560407..8adf1980e42 100644
--- a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-okhttp/api.mustache
+++ b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-okhttp/api.mustache
@@ -41,6 +41,37 @@ import {{packageName}}.infrastructure.toMultiValue
@Deprecated(message = "This operation is deprecated.")
{{/isDeprecated}}
{{^doNotUseRxAndCoroutines}}{{#useCoroutines}}suspend {{/useCoroutines}}{{/doNotUseRxAndCoroutines}}fun {{operationId}}({{#allParams}}{{{paramName}}}: {{{dataType}}}{{^required}}?{{/required}}{{^-last}}, {{/-last}}{{/allParams}}) : {{#returnType}}{{{returnType}}}{{#nullableReturnType}}?{{/nullableReturnType}}{{/returnType}}{{^returnType}}Unit{{/returnType}} {
+ val localVariableConfig = {{operationId}}RequestConfig({{#allParams}}{{{paramName}}} = {{{paramName}}}{{^-last}}, {{/-last}}{{/allParams}})
+
+ val localVarResponse = request<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Any?{{/returnType}}>(
+ localVariableConfig
+ )
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> {{#returnType}}(localVarResponse as Success<*>).data as {{{returnType}}}{{#nullableReturnType}}?{{/nullableReturnType}}{{/returnType}}{{^returnType}}Unit{{/returnType}}
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * To obtain the request config of the operation {{operationId}}
+ *
+ {{#allParams}}* @param {{{paramName}}} {{description}} {{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
+ {{/allParams}}* @return RequestConfig
+ */
+ {{#isDeprecated}}
+ @Deprecated(message = "This operation is deprecated.")
+ {{/isDeprecated}}
+ fun {{operationId}}RequestConfig({{#allParams}}{{{paramName}}}: {{{dataType}}}{{^required}}?{{/required}}{{^-last}}, {{/-last}}{{/allParams}}) : RequestConfig {
val localVariableBody: kotlin.Any? = {{#hasBodyParam}}{{#bodyParams}}{{{paramName}}}{{/bodyParams}}{{/hasBodyParam}}{{^hasBodyParam}}{{^hasFormParams}}null{{/hasFormParams}}{{#hasFormParams}}mapOf({{#formParams}}"{{{baseName}}}" to {{{paramName}}}{{^-last}}, {{/-last}}{{/formParams}}){{/hasFormParams}}{{/hasBodyParam}}
val localVariableQuery: MultiValueMap = {{^hasQueryParams}}mutableMapOf()
{{/hasQueryParams}}{{#hasQueryParams}}mutableMapOf>()
@@ -68,30 +99,16 @@ import {{packageName}}.infrastructure.toMultiValue
{{#headerParams}}
{{{paramName}}}?.apply { localVariableHeaders["{{baseName}}"] = {{#isContainer}}this.joinToString(separator = collectionDelimiter("{{collectionFormat}}")){{/isContainer}}{{^isContainer}}this.toString(){{/isContainer}} }
{{/headerParams}}
+
val localVariableConfig = RequestConfig(
- RequestMethod.{{httpMethod}},
- "{{path}}"{{#pathParams}}.replace("{"+"{{baseName}}"+"}", "${{{paramName}}}"){{/pathParams}},
+ method = RequestMethod.{{httpMethod}},
+ path = "{{path}}"{{#pathParams}}.replace("{"+"{{baseName}}"+"}", "${{{paramName}}}"){{/pathParams}},
query = localVariableQuery,
- headers = localVariableHeaders
- )
- val localVarResponse = request<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Any?{{/returnType}}>(
- localVariableConfig,
- localVariableBody
+ headers = localVariableHeaders,
+ body = localVariableBody
)
- return when (localVarResponse.responseType) {
- ResponseType.Success -> {{#returnType}}(localVarResponse as Success<*>).data as {{{returnType}}}{{#nullableReturnType}}?{{/nullableReturnType}}{{/returnType}}{{^returnType}}Unit{{/returnType}}
- ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
- ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
- ResponseType.ClientError -> {
- val localVarError = localVarResponse as ClientError<*>
- throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
- }
- ResponseType.ServerError -> {
- val localVarError = localVarResponse as ServerError<*>
- throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
- }
- }
+ return localVariableConfig
}
{{/operation}}
diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-okhttp/infrastructure/ApiClient.kt.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-okhttp/infrastructure/ApiClient.kt.mustache
index 3bff3d10d97..cfc573b9f82 100644
--- a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-okhttp/infrastructure/ApiClient.kt.mustache
+++ b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-okhttp/infrastructure/ApiClient.kt.mustache
@@ -232,7 +232,7 @@ import org.threeten.bp.OffsetTime
}
{{/hasAuthMethods}}
- protected inline fun request(requestConfig: RequestConfig, body : Any? = null): ApiInfrastructureResponse {
+ protected inline fun request(requestConfig: RequestConfig): ApiInfrastructureResponse {
{{#jvm-okhttp3}}
val httpUrl = HttpUrl.parse(baseUrl) ?: throw IllegalStateException("baseUrl is invalid.")
{{/jvm-okhttp3}}
@@ -276,12 +276,12 @@ import org.threeten.bp.OffsetTime
val contentType = (headers[ContentType] as String).substringBefore(";").toLowerCase()
val request = when (requestConfig.method) {
- RequestMethod.DELETE -> Request.Builder().url(url).delete(requestBody(body, contentType))
+ RequestMethod.DELETE -> Request.Builder().url(url).delete(requestBody(requestConfig.body, contentType))
RequestMethod.GET -> Request.Builder().url(url)
RequestMethod.HEAD -> Request.Builder().url(url).head()
- RequestMethod.PATCH -> Request.Builder().url(url).patch(requestBody(body, contentType))
- RequestMethod.PUT -> Request.Builder().url(url).put(requestBody(body, contentType))
- RequestMethod.POST -> Request.Builder().url(url).post(requestBody(body, contentType))
+ RequestMethod.PATCH -> Request.Builder().url(url).patch(requestBody(requestConfig.body, contentType))
+ RequestMethod.PUT -> Request.Builder().url(url).put(requestBody(requestConfig.body, contentType))
+ RequestMethod.POST -> Request.Builder().url(url).post(requestBody(requestConfig.body, contentType))
RequestMethod.OPTIONS -> Request.Builder().url(url).method("OPTIONS", null)
}.apply {
headers.forEach { header -> addHeader(header.key, header.value) }
diff --git a/modules/openapi-generator/src/main/resources/kotlin-server/data_class.mustache b/modules/openapi-generator/src/main/resources/kotlin-server/data_class.mustache
index 6c251cee2a6..d9e9d591b7b 100644
--- a/modules/openapi-generator/src/main/resources/kotlin-server/data_class.mustache
+++ b/modules/openapi-generator/src/main/resources/kotlin-server/data_class.mustache
@@ -1,6 +1,6 @@
{{#parcelizeModels}}
import android.os.Parcelable
-import kotlinx.android.parcel.Parcelize
+import kotlinx.parcelize.Parcelize
{{/parcelizeModels}}
{{#serializableModel}}
diff --git a/modules/openapi-generator/src/main/resources/kotlin-vertx-server/data_class.mustache b/modules/openapi-generator/src/main/resources/kotlin-vertx-server/data_class.mustache
index 74aa6aa1f26..67a6a37c7e0 100644
--- a/modules/openapi-generator/src/main/resources/kotlin-vertx-server/data_class.mustache
+++ b/modules/openapi-generator/src/main/resources/kotlin-vertx-server/data_class.mustache
@@ -1,7 +1,7 @@
{{#parcelizeModels}}
import android.os.Parcelable
-import kotlinx.android.parcel.Parcelize
+import kotlinx.parcelize.Parcelize
{{/parcelizeModels}}
import com.google.gson.annotations.SerializedName
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
diff --git a/modules/openapi-generator/src/main/resources/powershell/api_doc.mustache b/modules/openapi-generator/src/main/resources/powershell/api_doc.mustache
index 14f96341ead..c892573091e 100644
--- a/modules/openapi-generator/src/main/resources/powershell/api_doc.mustache
+++ b/modules/openapi-generator/src/main/resources/powershell/api_doc.mustache
@@ -23,8 +23,6 @@ Method | HTTP request | Description
### Example
```powershell
-Import-Module -Name {{{packageName}}}
-
{{#hasAuthMethods}}
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
diff --git a/modules/openapi-generator/src/main/resources/python/configuration.mustache b/modules/openapi-generator/src/main/resources/python/configuration.mustache
index 2f698db3fec..9ab0a840899 100644
--- a/modules/openapi-generator/src/main/resources/python/configuration.mustache
+++ b/modules/openapi-generator/src/main/resources/python/configuration.mustache
@@ -163,6 +163,7 @@ conf = {{{packageName}}}.Configuration(
def __init__(self, host=None,
api_key=None, api_key_prefix=None,
+ access_token=None,
username=None, password=None,
discard_unknown_keys=False,
disabled_client_side_validations="",
@@ -190,6 +191,7 @@ conf = {{{packageName}}}.Configuration(
"""Temp file folder for downloading files
"""
# Authentication Settings
+ self.access_token = access_token
self.api_key = {}
if api_key:
self.api_key = api_key
@@ -218,18 +220,6 @@ conf = {{{packageName}}}.Configuration(
"""The HTTP signing configuration
"""
{{/hasHttpSignatureMethods}}
-{{#hasOAuthMethods}}
- self.access_token = None
- """access token for OAuth/Bearer
- """
-{{/hasOAuthMethods}}
-{{^hasOAuthMethods}}
-{{#hasBearerMethods}}
- self.access_token = None
- """access token for OAuth/Bearer
- """
-{{/hasBearerMethods}}
-{{/hasOAuthMethods}}
self.logger = {}
"""Logging Settings
"""
diff --git a/modules/openapi-generator/src/main/resources/ruby-client/partial_model_generic.mustache b/modules/openapi-generator/src/main/resources/ruby-client/partial_model_generic.mustache
index 9963d883d6c..647963b4745 100644
--- a/modules/openapi-generator/src/main/resources/ruby-client/partial_model_generic.mustache
+++ b/modules/openapi-generator/src/main/resources/ruby-client/partial_model_generic.mustache
@@ -197,13 +197,13 @@
{{/pattern}}
{{#maxItems}}
if {{^required}}!@{{{name}}}.nil? && {{/required}}@{{{name}}}.length > {{{maxItems}}}
- invalid_properties.push('invalid value for "{{{name}}}", number of items must be less than or equal to {{{maxItems}}}.'
+ invalid_properties.push('invalid value for "{{{name}}}", number of items must be less than or equal to {{{maxItems}}}.')
end
{{/maxItems}}
{{#minItems}}
if {{^required}}!@{{{name}}}.nil? && {{/required}}@{{{name}}}.length < {{{minItems}}}
- invalid_properties.push('invalid value for "{{{name}}}", number of items must be greater than or equal to {{{minItems}}}.'
+ invalid_properties.push('invalid value for "{{{name}}}", number of items must be greater than or equal to {{{minItems}}}.')
end
{{/minItems}}
diff --git a/modules/openapi-generator/src/main/resources/rust/reqwest/api.mustache b/modules/openapi-generator/src/main/resources/rust/reqwest/api.mustache
index 54a1518f85b..977f0b6edbc 100644
--- a/modules/openapi-generator/src/main/resources/rust/reqwest/api.mustache
+++ b/modules/openapi-generator/src/main/resources/rust/reqwest/api.mustache
@@ -283,7 +283,7 @@ pub {{#supportAsync}}async {{/supportAsync}}fn {{{operationId}}}(configuration:
let local_var_status = local_var_resp.status();
let local_var_content = local_var_resp.text(){{#supportAsync}}.await{{/supportAsync}}?;
- if local_var_status.is_success() {
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
{{^supportMultipleResponses}}
{{^returnType}}
Ok(())
diff --git a/modules/openapi-generator/src/main/resources/rust/reqwest/api_mod.mustache b/modules/openapi-generator/src/main/resources/rust/reqwest/api_mod.mustache
index 5bf951361d9..e4daf80c8f6 100644
--- a/modules/openapi-generator/src/main/resources/rust/reqwest/api_mod.mustache
+++ b/modules/openapi-generator/src/main/resources/rust/reqwest/api_mod.mustache
@@ -1,5 +1,3 @@
-use reqwest;
-use serde_json;
use std::error;
use std::fmt;
diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/runtime.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/runtime.mustache
index 04001417a82..3fd6265e636 100644
--- a/modules/openapi-generator/src/main/resources/typescript-fetch/runtime.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-fetch/runtime.mustache
@@ -216,6 +216,9 @@ export function querystring(params: HTTPQuery, prefix: string = ''): string {
.join(`&${encodeURIComponent(fullKey)}=`);
return `${encodeURIComponent(fullKey)}=${multiValue}`;
}
+ if (value instanceof Date) {
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
+ }
if (value instanceof Object) {
return querystring(value as HTTPQuery, fullKey);
}
diff --git a/modules/openapi-generator/src/main/resources/typescript-nestjs/api.module.mustache b/modules/openapi-generator/src/main/resources/typescript-nestjs/api.module.mustache
index 0226f69fb1f..120cae581c0 100644
--- a/modules/openapi-generator/src/main/resources/typescript-nestjs/api.module.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-nestjs/api.module.mustache
@@ -11,13 +11,13 @@ import { {{classname}} } from './{{importPath}}';
@Global
@Module({
imports: [ HttpModule ],
- exports: [
- {{#apiInfo}}{{#apis}}{{classname}}{{#hasMore}},
- {{/hasMore}}{{/apis}}{{/apiInfo}}
+ exports: [
+ {{#apiInfo}}{{#apis}}{{classname}}{{^-last}},
+ {{/-last}}{{/apis}}{{/apiInfo}}
],
providers: [
- {{#apiInfo}}{{#apis}}{{classname}}{{#hasMore}},
- {{/hasMore}}{{/apis}}{{/apiInfo}}
+ {{#apiInfo}}{{#apis}}{{classname}}{{^-last}},
+ {{/-last}}{{/apis}}{{/apiInfo}}
]
})
export class ApiModule {
diff --git a/modules/openapi-generator/src/main/resources/typescript-nestjs/api.service.mustache b/modules/openapi-generator/src/main/resources/typescript-nestjs/api.service.mustache
index 3bc043bddb1..7e1fc2514b6 100644
--- a/modules/openapi-generator/src/main/resources/typescript-nestjs/api.service.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-nestjs/api.service.mustache
@@ -107,7 +107,7 @@ export class {{classname}} {
{{/isListContainer}}
{{^isListContainer}}
if ({{paramName}} !== undefined && {{paramName}} !== null) {
- headers['{{baseName}}'] String({{paramName}});
+ headers['{{baseName}}'] = String({{paramName}});
}
{{/isListContainer}}
{{/headerParams}}
@@ -147,7 +147,7 @@ export class {{classname}} {
// to determine the Accept header
let httpHeaderAccepts: string[] = [
{{#produces}}
- '{{{mediaType}}}'{{#hasMore}},{{/hasMore}}
+ '{{{mediaType}}}'{{^-last}},{{/-last}}
{{/produces}}
];
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
@@ -158,7 +158,7 @@ export class {{classname}} {
// to determine the Content-Type header
const consumes: string[] = [
{{#consumes}}
- '{{{mediaType}}}'{{#hasMore}},{{/hasMore}}
+ '{{{mediaType}}}'{{^-last}},{{/-last}}
{{/consumes}}
];
{{#bodyParam}}
@@ -167,8 +167,8 @@ export class {{classname}} {
headers['Content-Type'] = httpContentTypeSelected;
}
{{/bodyParam}}
-
{{#hasFormParams}}
+
const canConsumeForm = this.canConsumeForm(consumes);
let formParams: { append(param: string, value: any): void; };
@@ -176,6 +176,7 @@ export class {{classname}} {
let convertFormParamsToString = false;
{{#formParams}}
{{#isFile}}
+
// use FormData to transmit files using content-type "multipart/form-data"
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
useForm = canConsumeForm;
@@ -186,8 +187,8 @@ export class {{classname}} {
} else {
// formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
}
-
{{#formParams}}
+
{{#isListContainer}}
if ({{paramName}}) {
{{#isCollectionFormatMulti}}
diff --git a/modules/openapi-generator/src/main/resources/typescript-node/models.mustache b/modules/openapi-generator/src/main/resources/typescript-node/models.mustache
index 93f3790d667..e803dfeb664 100644
--- a/modules/openapi-generator/src/main/resources/typescript-node/models.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-node/models.mustache
@@ -113,9 +113,9 @@ export class ObjectSerializer {
let subType: string = type.replace("Array<", ""); // Array => Type>
subType = subType.substring(0, subType.length - 1); // Type> => Type
let transformedData: any[] = [];
- for (let index in data) {
- let date = data[index];
- transformedData.push(ObjectSerializer.serialize(date, subType));
+ for (let index = 0; index < data.length; index++) {
+ let datum = data[index];
+ transformedData.push(ObjectSerializer.serialize(datum, subType));
}
return transformedData;
} else if (type === "Date") {
@@ -134,7 +134,7 @@ export class ObjectSerializer {
// get the map for the correct type.
let attributeTypes = typeMap[type].getAttributeTypeMap();
let instance: {[index: string]: any} = {};
- for (let index in attributeTypes) {
+ for (let index = 0; index < attributeTypes.length; index++) {
let attributeType = attributeTypes[index];
instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type);
}
@@ -153,9 +153,9 @@ export class ObjectSerializer {
let subType: string = type.replace("Array<", ""); // Array => Type>
subType = subType.substring(0, subType.length - 1); // Type> => Type
let transformedData: any[] = [];
- for (let index in data) {
- let date = data[index];
- transformedData.push(ObjectSerializer.deserialize(date, subType));
+ for (let index = 0; index < data.length; index++) {
+ let datum = data[index];
+ transformedData.push(ObjectSerializer.deserialize(datum, subType));
}
return transformedData;
} else if (type === "Date") {
@@ -170,7 +170,7 @@ export class ObjectSerializer {
}
let instance = new typeMap[type]();
let attributeTypes = typeMap[type].getAttributeTypeMap();
- for (let index in attributeTypes) {
+ for (let index = 0; index < attributeTypes.length; index++) {
let attributeType = attributeTypes[index];
instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type);
}
diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/dart/DartModelTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/dart/DartModelTest.java
index c8438e80a0f..36daa8b1335 100644
--- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/dart/DartModelTest.java
+++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/dart/DartModelTest.java
@@ -142,6 +142,45 @@ public class DartModelTest {
Assert.assertTrue(property2.isContainer);
}
+ @Test(description = "convert a model with set property")
+ public void setPropertyTest() {
+ final Schema model = new Schema()
+ .description("a sample model")
+ .addProperties("id", new IntegerSchema())
+ .addProperties("urls", new ArraySchema().items(new StringSchema()).uniqueItems(true))
+ .addRequiredItem("id");
+
+ final DefaultCodegen codegen = new DartClientCodegen();
+ OpenAPI openAPI = TestUtils.createOpenAPIWithOneSchema("sample", model);
+ codegen.setOpenAPI(openAPI);
+ final CodegenModel cm = codegen.fromModel("sample", model);
+
+ Assert.assertEquals(cm.name, "sample");
+ Assert.assertEquals(cm.classname, "Sample");
+ Assert.assertEquals(cm.description, "a sample model");
+ Assert.assertEquals(cm.vars.size(), 2);
+
+ final CodegenProperty property1 = cm.vars.get(0);
+ Assert.assertEquals(property1.baseName, "id");
+ Assert.assertEquals(property1.dataType, "int");
+ Assert.assertEquals(property1.name, "id");
+ Assert.assertNull(property1.defaultValue);
+ Assert.assertEquals(property1.baseType, "int");
+ Assert.assertTrue(property1.required);
+ Assert.assertTrue(property1.isPrimitiveType);
+ Assert.assertFalse(property1.isContainer);
+
+ final CodegenProperty property2 = cm.vars.get(1);
+ Assert.assertEquals(property2.baseName, "urls");
+ Assert.assertEquals(property2.dataType, "Set");
+ Assert.assertEquals(property2.name, "urls");
+ Assert.assertEquals(property2.baseType, "Set");
+ Assert.assertEquals(property2.containerType, "set");
+ Assert.assertFalse(property2.required);
+ Assert.assertTrue(property2.isPrimitiveType);
+ Assert.assertTrue(property2.isContainer);
+ }
+
@Test(description = "convert a model with a map property")
public void mapPropertyTest() {
final Schema model = new Schema()
diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/dartdio/DartDioModelTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/dartdio/DartDioModelTest.java
index 3faa4d477a0..7aac98353d6 100644
--- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/dartdio/DartDioModelTest.java
+++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/dartdio/DartDioModelTest.java
@@ -204,6 +204,44 @@ public class DartDioModelTest {
Assert.assertTrue(property2.isContainer);
}
+ @Test(description = "convert a model with set property")
+ public void setPropertyTest() {
+ final Schema model = new Schema()
+ .description("a sample model")
+ .addProperties("id", new IntegerSchema())
+ .addProperties("urls", new ArraySchema().items(new StringSchema()).uniqueItems(true))
+ .addRequiredItem("id");
+ final DefaultCodegen codegen = new DartDioClientCodegen();
+ OpenAPI openAPI = TestUtils.createOpenAPIWithOneSchema("sample", model);
+ codegen.setOpenAPI(openAPI);
+ final CodegenModel cm = codegen.fromModel("sample", model);
+
+ Assert.assertEquals(cm.name, "sample");
+ Assert.assertEquals(cm.classname, "Sample");
+ Assert.assertEquals(cm.description, "a sample model");
+ Assert.assertEquals(cm.vars.size(), 2);
+
+ final CodegenProperty property1 = cm.vars.get(0);
+ Assert.assertEquals(property1.baseName, "id");
+ Assert.assertEquals(property1.dataType, "int");
+ Assert.assertEquals(property1.name, "id");
+ Assert.assertNull(property1.defaultValue);
+ Assert.assertEquals(property1.baseType, "int");
+ Assert.assertTrue(property1.required);
+ Assert.assertTrue(property1.isPrimitiveType);
+ Assert.assertFalse(property1.isContainer);
+
+ final CodegenProperty property2 = cm.vars.get(1);
+ Assert.assertEquals(property2.baseName, "urls");
+ Assert.assertEquals(property2.dataType, "BuiltSet");
+ Assert.assertEquals(property2.name, "urls");
+ Assert.assertEquals(property2.baseType, "BuiltSet");
+ Assert.assertEquals(property2.containerType, "set");
+ Assert.assertFalse(property2.required);
+ Assert.assertTrue(property2.isPrimitiveType);
+ Assert.assertTrue(property2.isContainer);
+ }
+
@Test(description = "convert a model with a map property")
public void mapPropertyTest() {
final Schema model = new Schema()
diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/jaxrs/JavaJAXRSCXFExtServerCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/jaxrs/JavaJAXRSCXFExtServerCodegenTest.java
index 03b472b2212..0c040954612 100644
--- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/jaxrs/JavaJAXRSCXFExtServerCodegenTest.java
+++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/jaxrs/JavaJAXRSCXFExtServerCodegenTest.java
@@ -368,7 +368,7 @@ public class JavaJAXRSCXFExtServerCodegenTest extends JavaJaxrsBaseTest {
assertEquals(testerCodegen.getTestDataControlFile(), new File(curdir, "my/test-data-control.json"));
}
- @Test()
+ @Test
public void testGenerateOperationBodyWithCodedTestData() throws Exception {
File output = Files.createTempDirectory("test").toFile().getCanonicalFile();
output.deleteOnExit();
@@ -412,7 +412,7 @@ public class JavaJAXRSCXFExtServerCodegenTest extends JavaJaxrsBaseTest {
checkFile(Paths.get(outputPath + "/test-data-control.json"), false);
}
- @Test()
+ @Test
public void testGenerateOperationBodyWithJsonTestData() throws Exception {
File output = Files.createTempDirectory("test").toFile().getCanonicalFile();
output.deleteOnExit();
diff --git a/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml b/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
index a729d26077b..4b984814471 100644
--- a/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
+++ b/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
@@ -134,6 +134,7 @@ paths:
type: array
items:
type: string
+ uniqueItems: true
responses:
'200':
description: successful operation
@@ -143,11 +144,13 @@ paths:
type: array
items:
$ref: '#/components/schemas/Pet'
+ uniqueItems: true
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Pet'
+ uniqueItems: true
'400':
description: Invalid tag value
security:
@@ -1313,6 +1316,7 @@ components:
wrapped: true
items:
type: string
+ uniqueItems: true
tags:
type: array
xml:
@@ -1623,6 +1627,8 @@ components:
type: array
items:
type: string
+ minItems: 0
+ maxItems: 3
array_array_of_integer:
type: array
items:
diff --git a/pom.xml b/pom.xml
index 31206b962b2..b6294d4f800 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1181,6 +1181,8 @@
+ samples/client/petstore/typescript-axios/builds/with-npm-version
+ samples/client/petstore/typescript-axios/tests/default
samples/client/petstore/crystal
samples/server/petstore/python-aiohttp
@@ -1222,7 +1224,6 @@
samples/client/petstore/typescript-fetch/builds/es6-target
samples/client/petstore/typescript-fetch/builds/with-npm-version
samples/client/petstore/typescript-fetch/tests/default
- samples/client/petstore/typescript-axios/tests/default
samples/client/petstore/typescript-node/npm
samples/client/petstore/typescript-rxjs/builds/with-npm-version
- samples/client/petstore/kotlin-threetenbp/
- samples/client/petstore/kotlin-string/
@@ -1259,8 +1258,7 @@
samples/server/petstore/jaxrs-spec
samples/server/petstore/jaxrs-spec-interface
samples/server/petstore/jaxrs-spec-interface-response
- samples/server/petstore/java-vertx/rx
- samples/server/petstore/java-vertx/async
+ samples/server/petstore/java-vertx-web
samples/server/petstore/java-inflector
samples/server/petstore/java-pkmst
samples/server/petstore/java-play-framework
@@ -1302,7 +1300,6 @@
samples/server/petstore/scala-play-server
samples/server/petstore/scala-akka-http-server
samples/server/petstore/scalatra
- samples/server/petstore/java-vertx-web
samples/server/petstore/scala-finch
@@ -1378,17 +1375,21 @@
samples/client/petstore/erlang-client
samples/client/petstore/erlang-proper
+ samples/client/petstore/kotlin
+ samples/client/petstore/kotlin-gson
+ samples/client/petstore/kotlin-jackson
+ samples/client/petstore/kotlin-json-request-string
+ samples/client/petstore/kotlin-jvm-okhttp4-coroutines
+ samples/client/petstore/kotlin-moshi-codegen
samples/client/petstore/kotlin-multiplatform
-
+ samples/client/petstore/kotlin-nonpublic
+ samples/client/petstore/kotlin-nullable
+ samples/client/petstore/kotlin-okhttp3
samples/client/petstore/kotlin-retrofit2
samples/client/petstore/kotlin-retrofit2-rx3
- samples/client/petstore/kotlin-jackson/
- samples/client/petstore/kotlin-gson/
- samples/client/petstore/kotlin-nonpublic/
- samples/client/petstore/kotlin-nullable/
- samples/client/petstore/kotlin-okhttp3/
- samples/client/petstore/kotlin-moshi-codegen/
- samples/client/petstore/kotlin-json-request-string/
+ samples/client/petstore/kotlin-string
+ samples/client/petstore/kotlin-threetenbp
+ samples/client/petstore/kotlin-uppercase-enum
diff --git a/samples/client/petstore/c/.openapi-generator/VERSION b/samples/client/petstore/c/.openapi-generator/VERSION
index 3fa3b389a57..c30f0ec2be7 100644
--- a/samples/client/petstore/c/.openapi-generator/VERSION
+++ b/samples/client/petstore/c/.openapi-generator/VERSION
@@ -1 +1 @@
-5.0.1-SNAPSHOT
\ No newline at end of file
+5.1.0-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/cpp-qt5/client/PFXPetApi.cpp b/samples/client/petstore/cpp-qt5/client/PFXPetApi.cpp
index 14e5285627b..fa389e1c4dd 100644
--- a/samples/client/petstore/cpp-qt5/client/PFXPetApi.cpp
+++ b/samples/client/petstore/cpp-qt5/client/PFXPetApi.cpp
@@ -145,8 +145,71 @@ void PFXPetApi::abortRequests(){
emit abortRequestsSignal();
}
+QString PFXPetApi::getParamStylePrefix(QString style){
+
+ if(style == "matrix"){
+ return ";";
+ }else if(style == "label"){
+ return ".";
+ }else if(style == "form"){
+ return "&";
+ }else if(style == "simple"){
+ return "";
+ }else if(style == "spaceDelimited"){
+ return "&";
+ }else if(style == "pipeDelimited"){
+ return "&";
+ }else
+ return "none";
+}
+
+QString PFXPetApi::getParamStyleSuffix(QString style){
+
+ if(style == "matrix"){
+ return "=";
+ }else if(style == "label"){
+ return "";
+ }else if(style == "form"){
+ return "=";
+ }else if(style == "simple"){
+ return "";
+ }else if(style == "spaceDelimited"){
+ return "=";
+ }else if(style == "pipeDelimited"){
+ return "=";
+ }else
+ return "none";
+}
+
+QString PFXPetApi::getParamStyleDelimiter(QString style, QString name, bool isExplode){
+
+ if(style == "matrix"){
+ return (isExplode) ? ";" + name + "=" : ",";
+
+ }else if(style == "label"){
+ return (isExplode) ? "." : ",";
+
+ }else if(style == "form"){
+ return (isExplode) ? "&" + name + "=" : ",";
+
+ }else if(style == "simple"){
+ return ",";
+ }else if(style == "spaceDelimited"){
+ return (isExplode) ? "&" + name + "=" : " ";
+
+ }else if(style == "pipeDelimited"){
+ return (isExplode) ? "&" + name + "=" : "|";
+
+ }else if(style == "deepObject"){
+ return (isExplode) ? "&" : "none";
+
+ }else
+ return "none";
+}
+
void PFXPetApi::addPet(const PFXPet &body) {
QString fullPath = QString(_serverConfigs["addPet"][_serverIndices.value("addPet")].URL()+"/pet");
+
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
@@ -154,9 +217,9 @@ void PFXPetApi::addPet(const PFXPet &body) {
worker->setWorkingDirectory(_workingDirectory);
PFXHttpRequestInput input(fullPath, "POST");
+
QByteArray output = body.asJson().toUtf8();
input.request_body.append(output);
-
foreach (QString key, this->defaultHeaders.keys()) { input.headers.insert(key, this->defaultHeaders.value(key)); }
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::addPetCallback);
@@ -188,20 +251,30 @@ void PFXPetApi::addPetCallback(PFXHttpRequestWorker *worker) {
void PFXPetApi::deletePet(const qint64 &pet_id, const QString &api_key) {
QString fullPath = QString(_serverConfigs["deletePet"][_serverIndices.value("deletePet")].URL()+"/pet/{petId}");
+
QString pet_idPathParam("{");
pet_idPathParam.append("petId").append("}");
- fullPath.replace(pet_idPathParam, QUrl::toPercentEncoding(::test_namespace::toStringValue(pet_id)));
-
+ QString pathPrefix, pathSuffix, pathDelimiter;
+ QString pathStyle = "";
+ if(pathStyle == "")
+ pathStyle = "simple";
+ pathPrefix = getParamStylePrefix(pathStyle);
+ pathSuffix = getParamStyleSuffix(pathStyle);
+ pathDelimiter = getParamStyleDelimiter(pathStyle, "petId", false);
+ QString paramString = (pathStyle == "matrix") ? pathPrefix+"petId"+pathSuffix : pathPrefix;
+ fullPath.replace(pet_idPathParam, paramString+QUrl::toPercentEncoding(::test_namespace::toStringValue(pet_id)));
+
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
worker->setTimeOut(_timeOut);
worker->setWorkingDirectory(_workingDirectory);
PFXHttpRequestInput input(fullPath, "DELETE");
+
+
if (!::test_namespace::toStringValue(api_key).isEmpty()) {
input.headers.insert("api_key", ::test_namespace::toStringValue(api_key));
}
-
foreach (QString key, this->defaultHeaders.keys()) { input.headers.insert(key, this->defaultHeaders.value(key)); }
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::deletePetCallback);
@@ -233,13 +306,21 @@ void PFXPetApi::deletePetCallback(PFXHttpRequestWorker *worker) {
void PFXPetApi::findPetsByStatus(const QList &status) {
QString fullPath = QString(_serverConfigs["findPetsByStatus"][_serverIndices.value("findPetsByStatus")].URL()+"/pet/findByStatus");
+
+ QString queryPrefix, querySuffix, queryDelimiter, queryStyle;
+ queryStyle = "form";
+ if(queryStyle == "")
+ queryStyle = "form";
+ queryPrefix = getParamStylePrefix(queryStyle);
+ querySuffix = getParamStyleSuffix(queryStyle);
+ queryDelimiter = getParamStyleDelimiter(queryStyle, "status", false);
if (status.size() > 0) {
if (QString("csv").indexOf("multi") == 0) {
foreach (QString t, status) {
if (fullPath.indexOf("?") > 0)
- fullPath.append("&");
+ fullPath.append(queryPrefix);
else
fullPath.append("?");
fullPath.append("status=").append(::test_namespace::toStringValue(t));
@@ -248,28 +329,67 @@ void PFXPetApi::findPetsByStatus(const QList &status) {
if (fullPath.indexOf("?") > 0)
fullPath.append("&");
else
- fullPath.append("?");
- fullPath.append("status=");
+ fullPath.append("?").append(queryPrefix).append("status").append(querySuffix);
qint32 count = 0;
foreach (QString t, status) {
if (count > 0) {
- fullPath.append(" ");
+ fullPath.append((false)? queryDelimiter : QUrl::toPercentEncoding(queryDelimiter));
}
fullPath.append(::test_namespace::toStringValue(t));
+ count++;
}
} else if (QString("csv").indexOf("tsv") == 0) {
if (fullPath.indexOf("?") > 0)
fullPath.append("&");
else
- fullPath.append("?");
- fullPath.append("status=");
+ fullPath.append("?").append(queryPrefix).append("status").append(querySuffix);
qint32 count = 0;
foreach (QString t, status) {
if (count > 0) {
fullPath.append("\t");
}
fullPath.append(::test_namespace::toStringValue(t));
+ count++;
}
+ } else if (QString("csv").indexOf("csv") == 0) {
+ if (fullPath.indexOf("?") > 0)
+ fullPath.append("&");
+ else
+ fullPath.append("?").append(queryPrefix).append("status").append(querySuffix);
+ qint32 count = 0;
+ foreach (QString t, status) {
+ if (count > 0) {
+ fullPath.append(queryDelimiter);
+ }
+ fullPath.append(::test_namespace::toStringValue(t));
+ count++;
+ }
+ } else if (QString("csv").indexOf("pipes") == 0) {
+ if (fullPath.indexOf("?") > 0)
+ fullPath.append("&");
+ else
+ fullPath.append("?").append(queryPrefix).append("status").append(querySuffix);
+ qint32 count = 0;
+ foreach (QString t, status) {
+ if (count > 0) {
+ fullPath.append(queryDelimiter);
+ }
+ fullPath.append(::test_namespace::toStringValue(t));
+ count++;
+ }
+ } else if (QString("csv").indexOf("deepObject") == 0) {
+ if (fullPath.indexOf("?") > 0)
+ fullPath.append("&");
+ else
+ fullPath.append("?").append(queryPrefix).append("status").append(querySuffix);
+ qint32 count = 0;
+ foreach (QString t, status) {
+ if (count > 0) {
+ fullPath.append(queryDelimiter);
+ }
+ fullPath.append(::test_namespace::toStringValue(t));
+ count++;
+ }
}
}
@@ -319,13 +439,21 @@ void PFXPetApi::findPetsByStatusCallback(PFXHttpRequestWorker *worker) {
void PFXPetApi::findPetsByTags(const QList &tags) {
QString fullPath = QString(_serverConfigs["findPetsByTags"][_serverIndices.value("findPetsByTags")].URL()+"/pet/findByTags");
+
+ QString queryPrefix, querySuffix, queryDelimiter, queryStyle;
+ queryStyle = "form";
+ if(queryStyle == "")
+ queryStyle = "form";
+ queryPrefix = getParamStylePrefix(queryStyle);
+ querySuffix = getParamStyleSuffix(queryStyle);
+ queryDelimiter = getParamStyleDelimiter(queryStyle, "tags", false);
if (tags.size() > 0) {
if (QString("csv").indexOf("multi") == 0) {
foreach (QString t, tags) {
if (fullPath.indexOf("?") > 0)
- fullPath.append("&");
+ fullPath.append(queryPrefix);
else
fullPath.append("?");
fullPath.append("tags=").append(::test_namespace::toStringValue(t));
@@ -334,28 +462,67 @@ void PFXPetApi::findPetsByTags(const QList &tags) {
if (fullPath.indexOf("?") > 0)
fullPath.append("&");
else
- fullPath.append("?");
- fullPath.append("tags=");
+ fullPath.append("?").append(queryPrefix).append("tags").append(querySuffix);
qint32 count = 0;
foreach (QString t, tags) {
if (count > 0) {
- fullPath.append(" ");
+ fullPath.append((false)? queryDelimiter : QUrl::toPercentEncoding(queryDelimiter));
}
fullPath.append(::test_namespace::toStringValue(t));
+ count++;
}
} else if (QString("csv").indexOf("tsv") == 0) {
if (fullPath.indexOf("?") > 0)
fullPath.append("&");
else
- fullPath.append("?");
- fullPath.append("tags=");
+ fullPath.append("?").append(queryPrefix).append("tags").append(querySuffix);
qint32 count = 0;
foreach (QString t, tags) {
if (count > 0) {
fullPath.append("\t");
}
fullPath.append(::test_namespace::toStringValue(t));
+ count++;
}
+ } else if (QString("csv").indexOf("csv") == 0) {
+ if (fullPath.indexOf("?") > 0)
+ fullPath.append("&");
+ else
+ fullPath.append("?").append(queryPrefix).append("tags").append(querySuffix);
+ qint32 count = 0;
+ foreach (QString t, tags) {
+ if (count > 0) {
+ fullPath.append(queryDelimiter);
+ }
+ fullPath.append(::test_namespace::toStringValue(t));
+ count++;
+ }
+ } else if (QString("csv").indexOf("pipes") == 0) {
+ if (fullPath.indexOf("?") > 0)
+ fullPath.append("&");
+ else
+ fullPath.append("?").append(queryPrefix).append("tags").append(querySuffix);
+ qint32 count = 0;
+ foreach (QString t, tags) {
+ if (count > 0) {
+ fullPath.append(queryDelimiter);
+ }
+ fullPath.append(::test_namespace::toStringValue(t));
+ count++;
+ }
+ } else if (QString("csv").indexOf("deepObject") == 0) {
+ if (fullPath.indexOf("?") > 0)
+ fullPath.append("&");
+ else
+ fullPath.append("?").append(queryPrefix).append("tags").append(querySuffix);
+ qint32 count = 0;
+ foreach (QString t, tags) {
+ if (count > 0) {
+ fullPath.append(queryDelimiter);
+ }
+ fullPath.append(::test_namespace::toStringValue(t));
+ count++;
+ }
}
}
@@ -405,14 +572,23 @@ void PFXPetApi::findPetsByTagsCallback(PFXHttpRequestWorker *worker) {
void PFXPetApi::getPetById(const qint64 &pet_id) {
QString fullPath = QString(_serverConfigs["getPetById"][_serverIndices.value("getPetById")].URL()+"/pet/{petId}");
- QString pet_idPathParam("{");
- pet_idPathParam.append("petId").append("}");
- fullPath.replace(pet_idPathParam, QUrl::toPercentEncoding(::test_namespace::toStringValue(pet_id)));
if(_apiKeys.contains("api_key")){
addHeaders("api_key",_apiKeys.find("api_key").value());
}
+ QString pet_idPathParam("{");
+ pet_idPathParam.append("petId").append("}");
+ QString pathPrefix, pathSuffix, pathDelimiter;
+ QString pathStyle = "";
+ if(pathStyle == "")
+ pathStyle = "simple";
+ pathPrefix = getParamStylePrefix(pathStyle);
+ pathSuffix = getParamStyleSuffix(pathStyle);
+ pathDelimiter = getParamStyleDelimiter(pathStyle, "petId", false);
+ QString paramString = (pathStyle == "matrix") ? pathPrefix+"petId"+pathSuffix : pathPrefix;
+ fullPath.replace(pet_idPathParam, paramString+QUrl::toPercentEncoding(::test_namespace::toStringValue(pet_id)));
+
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
worker->setTimeOut(_timeOut);
@@ -451,6 +627,7 @@ void PFXPetApi::getPetByIdCallback(PFXHttpRequestWorker *worker) {
void PFXPetApi::updatePet(const PFXPet &body) {
QString fullPath = QString(_serverConfigs["updatePet"][_serverIndices.value("updatePet")].URL()+"/pet");
+
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
@@ -458,9 +635,9 @@ void PFXPetApi::updatePet(const PFXPet &body) {
worker->setWorkingDirectory(_workingDirectory);
PFXHttpRequestInput input(fullPath, "PUT");
+
QByteArray output = body.asJson().toUtf8();
input.request_body.append(output);
-
foreach (QString key, this->defaultHeaders.keys()) { input.headers.insert(key, this->defaultHeaders.value(key)); }
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::updatePetCallback);
@@ -492,19 +669,26 @@ void PFXPetApi::updatePetCallback(PFXHttpRequestWorker *worker) {
void PFXPetApi::updatePetWithForm(const qint64 &pet_id, const QString &name, const QString &status) {
QString fullPath = QString(_serverConfigs["updatePetWithForm"][_serverIndices.value("updatePetWithForm")].URL()+"/pet/{petId}");
+
QString pet_idPathParam("{");
pet_idPathParam.append("petId").append("}");
- fullPath.replace(pet_idPathParam, QUrl::toPercentEncoding(::test_namespace::toStringValue(pet_id)));
-
+ QString pathPrefix, pathSuffix, pathDelimiter;
+ QString pathStyle = "";
+ if(pathStyle == "")
+ pathStyle = "simple";
+ pathPrefix = getParamStylePrefix(pathStyle);
+ pathSuffix = getParamStyleSuffix(pathStyle);
+ pathDelimiter = getParamStyleDelimiter(pathStyle, "petId", false);
+ QString paramString = (pathStyle == "matrix") ? pathPrefix+"petId"+pathSuffix : pathPrefix;
+ fullPath.replace(pet_idPathParam, paramString+QUrl::toPercentEncoding(::test_namespace::toStringValue(pet_id)));
+
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
worker->setTimeOut(_timeOut);
worker->setWorkingDirectory(_workingDirectory);
PFXHttpRequestInput input(fullPath, "POST");
- input.add_var("name", ::test_namespace::toStringValue(name));
- input.add_var("status", ::test_namespace::toStringValue(status));
- foreach (QString key, this->defaultHeaders.keys()) { input.headers.insert(key, this->defaultHeaders.value(key)); }
+ input.add_var("name", ::test_namespace::toStringValue(name)); input.add_var("status", ::test_namespace::toStringValue(status)); foreach (QString key, this->defaultHeaders.keys()) { input.headers.insert(key, this->defaultHeaders.value(key)); }
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::updatePetWithFormCallback);
connect(this, &PFXPetApi::abortRequestsSignal, worker, &QObject::deleteLater);
@@ -535,10 +719,19 @@ void PFXPetApi::updatePetWithFormCallback(PFXHttpRequestWorker *worker) {
void PFXPetApi::uploadFile(const qint64 &pet_id, const QString &additional_metadata, const PFXHttpFileElement &file) {
QString fullPath = QString(_serverConfigs["uploadFile"][_serverIndices.value("uploadFile")].URL()+"/pet/{petId}/uploadImage");
+
QString pet_idPathParam("{");
pet_idPathParam.append("petId").append("}");
- fullPath.replace(pet_idPathParam, QUrl::toPercentEncoding(::test_namespace::toStringValue(pet_id)));
-
+ QString pathPrefix, pathSuffix, pathDelimiter;
+ QString pathStyle = "";
+ if(pathStyle == "")
+ pathStyle = "simple";
+ pathPrefix = getParamStylePrefix(pathStyle);
+ pathSuffix = getParamStyleSuffix(pathStyle);
+ pathDelimiter = getParamStyleDelimiter(pathStyle, "petId", false);
+ QString paramString = (pathStyle == "matrix") ? pathPrefix+"petId"+pathSuffix : pathPrefix;
+ fullPath.replace(pet_idPathParam, paramString+QUrl::toPercentEncoding(::test_namespace::toStringValue(pet_id)));
+
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
worker->setTimeOut(_timeOut);
@@ -546,8 +739,7 @@ void PFXPetApi::uploadFile(const qint64 &pet_id, const QString &additional_metad
PFXHttpRequestInput input(fullPath, "POST");
input.add_var("additionalMetadata", ::test_namespace::toStringValue(additional_metadata));
- input.add_file("file", file.local_filename, file.request_filename, file.mime_type);
- foreach (QString key, this->defaultHeaders.keys()) { input.headers.insert(key, this->defaultHeaders.value(key)); }
+ input.add_file("file", file.local_filename, file.request_filename, file.mime_type); foreach (QString key, this->defaultHeaders.keys()) { input.headers.insert(key, this->defaultHeaders.value(key)); }
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::uploadFileCallback);
connect(this, &PFXPetApi::abortRequestsSignal, worker, &QObject::deleteLater);
diff --git a/samples/client/petstore/cpp-qt5/client/PFXPetApi.h b/samples/client/petstore/cpp-qt5/client/PFXPetApi.h
index 7c3e9b331f3..fc0ea8f738a 100644
--- a/samples/client/petstore/cpp-qt5/client/PFXPetApi.h
+++ b/samples/client/petstore/cpp-qt5/client/PFXPetApi.h
@@ -53,6 +53,9 @@ public:
void enableRequestCompression();
void enableResponseCompression();
void abortRequests();
+ QString getParamStylePrefix(QString style);
+ QString getParamStyleSuffix(QString style);
+ QString getParamStyleDelimiter(QString style, QString name, bool isExplode);
void addPet(const PFXPet &body);
void deletePet(const qint64 &pet_id, const QString &api_key);
diff --git a/samples/client/petstore/cpp-qt5/client/PFXStoreApi.cpp b/samples/client/petstore/cpp-qt5/client/PFXStoreApi.cpp
index 211e318b688..8be10eb33bb 100644
--- a/samples/client/petstore/cpp-qt5/client/PFXStoreApi.cpp
+++ b/samples/client/petstore/cpp-qt5/client/PFXStoreApi.cpp
@@ -133,12 +133,83 @@ void PFXStoreApi::abortRequests(){
emit abortRequestsSignal();
}
+QString PFXStoreApi::getParamStylePrefix(QString style){
+
+ if(style == "matrix"){
+ return ";";
+ }else if(style == "label"){
+ return ".";
+ }else if(style == "form"){
+ return "&";
+ }else if(style == "simple"){
+ return "";
+ }else if(style == "spaceDelimited"){
+ return "&";
+ }else if(style == "pipeDelimited"){
+ return "&";
+ }else
+ return "none";
+}
+
+QString PFXStoreApi::getParamStyleSuffix(QString style){
+
+ if(style == "matrix"){
+ return "=";
+ }else if(style == "label"){
+ return "";
+ }else if(style == "form"){
+ return "=";
+ }else if(style == "simple"){
+ return "";
+ }else if(style == "spaceDelimited"){
+ return "=";
+ }else if(style == "pipeDelimited"){
+ return "=";
+ }else
+ return "none";
+}
+
+QString PFXStoreApi::getParamStyleDelimiter(QString style, QString name, bool isExplode){
+
+ if(style == "matrix"){
+ return (isExplode) ? ";" + name + "=" : ",";
+
+ }else if(style == "label"){
+ return (isExplode) ? "." : ",";
+
+ }else if(style == "form"){
+ return (isExplode) ? "&" + name + "=" : ",";
+
+ }else if(style == "simple"){
+ return ",";
+ }else if(style == "spaceDelimited"){
+ return (isExplode) ? "&" + name + "=" : " ";
+
+ }else if(style == "pipeDelimited"){
+ return (isExplode) ? "&" + name + "=" : "|";
+
+ }else if(style == "deepObject"){
+ return (isExplode) ? "&" : "none";
+
+ }else
+ return "none";
+}
+
void PFXStoreApi::deleteOrder(const QString &order_id) {
QString fullPath = QString(_serverConfigs["deleteOrder"][_serverIndices.value("deleteOrder")].URL()+"/store/order/{orderId}");
+
QString order_idPathParam("{");
order_idPathParam.append("orderId").append("}");
- fullPath.replace(order_idPathParam, QUrl::toPercentEncoding(::test_namespace::toStringValue(order_id)));
-
+ QString pathPrefix, pathSuffix, pathDelimiter;
+ QString pathStyle = "";
+ if(pathStyle == "")
+ pathStyle = "simple";
+ pathPrefix = getParamStylePrefix(pathStyle);
+ pathSuffix = getParamStyleSuffix(pathStyle);
+ pathDelimiter = getParamStyleDelimiter(pathStyle, "orderId", false);
+ QString paramString = (pathStyle == "matrix") ? pathPrefix+"orderId"+pathSuffix : pathPrefix;
+ fullPath.replace(order_idPathParam, paramString+QUrl::toPercentEncoding(::test_namespace::toStringValue(order_id)));
+
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
worker->setTimeOut(_timeOut);
@@ -176,12 +247,13 @@ void PFXStoreApi::deleteOrderCallback(PFXHttpRequestWorker *worker) {
void PFXStoreApi::getInventory() {
QString fullPath = QString(_serverConfigs["getInventory"][_serverIndices.value("getInventory")].URL()+"/store/inventory");
-
+
if(_apiKeys.contains("api_key")){
addHeaders("api_key",_apiKeys.find("api_key").value());
}
+
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
worker->setTimeOut(_timeOut);
worker->setWorkingDirectory(_workingDirectory);
@@ -228,10 +300,19 @@ void PFXStoreApi::getInventoryCallback(PFXHttpRequestWorker *worker) {
void PFXStoreApi::getOrderById(const qint64 &order_id) {
QString fullPath = QString(_serverConfigs["getOrderById"][_serverIndices.value("getOrderById")].URL()+"/store/order/{orderId}");
+
QString order_idPathParam("{");
order_idPathParam.append("orderId").append("}");
- fullPath.replace(order_idPathParam, QUrl::toPercentEncoding(::test_namespace::toStringValue(order_id)));
-
+ QString pathPrefix, pathSuffix, pathDelimiter;
+ QString pathStyle = "";
+ if(pathStyle == "")
+ pathStyle = "simple";
+ pathPrefix = getParamStylePrefix(pathStyle);
+ pathSuffix = getParamStyleSuffix(pathStyle);
+ pathDelimiter = getParamStyleDelimiter(pathStyle, "orderId", false);
+ QString paramString = (pathStyle == "matrix") ? pathPrefix+"orderId"+pathSuffix : pathPrefix;
+ fullPath.replace(order_idPathParam, paramString+QUrl::toPercentEncoding(::test_namespace::toStringValue(order_id)));
+
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
worker->setTimeOut(_timeOut);
@@ -270,6 +351,7 @@ void PFXStoreApi::getOrderByIdCallback(PFXHttpRequestWorker *worker) {
void PFXStoreApi::placeOrder(const PFXOrder &body) {
QString fullPath = QString(_serverConfigs["placeOrder"][_serverIndices.value("placeOrder")].URL()+"/store/order");
+
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
@@ -277,9 +359,9 @@ void PFXStoreApi::placeOrder(const PFXOrder &body) {
worker->setWorkingDirectory(_workingDirectory);
PFXHttpRequestInput input(fullPath, "POST");
+
QByteArray output = body.asJson().toUtf8();
input.request_body.append(output);
-
foreach (QString key, this->defaultHeaders.keys()) { input.headers.insert(key, this->defaultHeaders.value(key)); }
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXStoreApi::placeOrderCallback);
diff --git a/samples/client/petstore/cpp-qt5/client/PFXStoreApi.h b/samples/client/petstore/cpp-qt5/client/PFXStoreApi.h
index d065169e181..55a248e60a7 100644
--- a/samples/client/petstore/cpp-qt5/client/PFXStoreApi.h
+++ b/samples/client/petstore/cpp-qt5/client/PFXStoreApi.h
@@ -52,6 +52,9 @@ public:
void enableRequestCompression();
void enableResponseCompression();
void abortRequests();
+ QString getParamStylePrefix(QString style);
+ QString getParamStyleSuffix(QString style);
+ QString getParamStyleDelimiter(QString style, QString name, bool isExplode);
void deleteOrder(const QString &order_id);
void getInventory();
diff --git a/samples/client/petstore/cpp-qt5/client/PFXUserApi.cpp b/samples/client/petstore/cpp-qt5/client/PFXUserApi.cpp
index 389e99f83d2..ab8723212fd 100644
--- a/samples/client/petstore/cpp-qt5/client/PFXUserApi.cpp
+++ b/samples/client/petstore/cpp-qt5/client/PFXUserApi.cpp
@@ -145,8 +145,71 @@ void PFXUserApi::abortRequests(){
emit abortRequestsSignal();
}
+QString PFXUserApi::getParamStylePrefix(QString style){
+
+ if(style == "matrix"){
+ return ";";
+ }else if(style == "label"){
+ return ".";
+ }else if(style == "form"){
+ return "&";
+ }else if(style == "simple"){
+ return "";
+ }else if(style == "spaceDelimited"){
+ return "&";
+ }else if(style == "pipeDelimited"){
+ return "&";
+ }else
+ return "none";
+}
+
+QString PFXUserApi::getParamStyleSuffix(QString style){
+
+ if(style == "matrix"){
+ return "=";
+ }else if(style == "label"){
+ return "";
+ }else if(style == "form"){
+ return "=";
+ }else if(style == "simple"){
+ return "";
+ }else if(style == "spaceDelimited"){
+ return "=";
+ }else if(style == "pipeDelimited"){
+ return "=";
+ }else
+ return "none";
+}
+
+QString PFXUserApi::getParamStyleDelimiter(QString style, QString name, bool isExplode){
+
+ if(style == "matrix"){
+ return (isExplode) ? ";" + name + "=" : ",";
+
+ }else if(style == "label"){
+ return (isExplode) ? "." : ",";
+
+ }else if(style == "form"){
+ return (isExplode) ? "&" + name + "=" : ",";
+
+ }else if(style == "simple"){
+ return ",";
+ }else if(style == "spaceDelimited"){
+ return (isExplode) ? "&" + name + "=" : " ";
+
+ }else if(style == "pipeDelimited"){
+ return (isExplode) ? "&" + name + "=" : "|";
+
+ }else if(style == "deepObject"){
+ return (isExplode) ? "&" : "none";
+
+ }else
+ return "none";
+}
+
void PFXUserApi::createUser(const PFXUser &body) {
QString fullPath = QString(_serverConfigs["createUser"][_serverIndices.value("createUser")].URL()+"/user");
+
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
@@ -154,9 +217,9 @@ void PFXUserApi::createUser(const PFXUser &body) {
worker->setWorkingDirectory(_workingDirectory);
PFXHttpRequestInput input(fullPath, "POST");
+
QByteArray output = body.asJson().toUtf8();
input.request_body.append(output);
-
foreach (QString key, this->defaultHeaders.keys()) { input.headers.insert(key, this->defaultHeaders.value(key)); }
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXUserApi::createUserCallback);
@@ -188,6 +251,7 @@ void PFXUserApi::createUserCallback(PFXHttpRequestWorker *worker) {
void PFXUserApi::createUsersWithArrayInput(const QList &body) {
QString fullPath = QString(_serverConfigs["createUsersWithArrayInput"][_serverIndices.value("createUsersWithArrayInput")].URL()+"/user/createWithArray");
+
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
@@ -195,10 +259,10 @@ void PFXUserApi::createUsersWithArrayInput(const QList &body) {
worker->setWorkingDirectory(_workingDirectory);
PFXHttpRequestInput input(fullPath, "POST");
+
QJsonDocument doc(::test_namespace::toJsonValue(body).toArray());
QByteArray bytes = doc.toJson();
input.request_body.append(bytes);
-
foreach (QString key, this->defaultHeaders.keys()) { input.headers.insert(key, this->defaultHeaders.value(key)); }
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXUserApi::createUsersWithArrayInputCallback);
@@ -230,6 +294,7 @@ void PFXUserApi::createUsersWithArrayInputCallback(PFXHttpRequestWorker *worker)
void PFXUserApi::createUsersWithListInput(const QList &body) {
QString fullPath = QString(_serverConfigs["createUsersWithListInput"][_serverIndices.value("createUsersWithListInput")].URL()+"/user/createWithList");
+
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
@@ -237,10 +302,10 @@ void PFXUserApi::createUsersWithListInput(const QList &body) {
worker->setWorkingDirectory(_workingDirectory);
PFXHttpRequestInput input(fullPath, "POST");
+
QJsonDocument doc(::test_namespace::toJsonValue(body).toArray());
QByteArray bytes = doc.toJson();
input.request_body.append(bytes);
-
foreach (QString key, this->defaultHeaders.keys()) { input.headers.insert(key, this->defaultHeaders.value(key)); }
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXUserApi::createUsersWithListInputCallback);
@@ -272,10 +337,19 @@ void PFXUserApi::createUsersWithListInputCallback(PFXHttpRequestWorker *worker)
void PFXUserApi::deleteUser(const QString &username) {
QString fullPath = QString(_serverConfigs["deleteUser"][_serverIndices.value("deleteUser")].URL()+"/user/{username}");
+
QString usernamePathParam("{");
usernamePathParam.append("username").append("}");
- fullPath.replace(usernamePathParam, QUrl::toPercentEncoding(::test_namespace::toStringValue(username)));
-
+ QString pathPrefix, pathSuffix, pathDelimiter;
+ QString pathStyle = "";
+ if(pathStyle == "")
+ pathStyle = "simple";
+ pathPrefix = getParamStylePrefix(pathStyle);
+ pathSuffix = getParamStyleSuffix(pathStyle);
+ pathDelimiter = getParamStyleDelimiter(pathStyle, "username", false);
+ QString paramString = (pathStyle == "matrix") ? pathPrefix+"username"+pathSuffix : pathPrefix;
+ fullPath.replace(usernamePathParam, paramString+QUrl::toPercentEncoding(::test_namespace::toStringValue(username)));
+
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
worker->setTimeOut(_timeOut);
@@ -313,10 +387,19 @@ void PFXUserApi::deleteUserCallback(PFXHttpRequestWorker *worker) {
void PFXUserApi::getUserByName(const QString &username) {
QString fullPath = QString(_serverConfigs["getUserByName"][_serverIndices.value("getUserByName")].URL()+"/user/{username}");
+
QString usernamePathParam("{");
usernamePathParam.append("username").append("}");
- fullPath.replace(usernamePathParam, QUrl::toPercentEncoding(::test_namespace::toStringValue(username)));
-
+ QString pathPrefix, pathSuffix, pathDelimiter;
+ QString pathStyle = "";
+ if(pathStyle == "")
+ pathStyle = "simple";
+ pathPrefix = getParamStylePrefix(pathStyle);
+ pathSuffix = getParamStyleSuffix(pathStyle);
+ pathDelimiter = getParamStyleDelimiter(pathStyle, "username", false);
+ QString paramString = (pathStyle == "matrix") ? pathPrefix+"username"+pathSuffix : pathPrefix;
+ fullPath.replace(usernamePathParam, paramString+QUrl::toPercentEncoding(::test_namespace::toStringValue(username)));
+
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
worker->setTimeOut(_timeOut);
@@ -355,19 +438,33 @@ void PFXUserApi::getUserByNameCallback(PFXHttpRequestWorker *worker) {
void PFXUserApi::loginUser(const QString &username, const QString &password) {
QString fullPath = QString(_serverConfigs["loginUser"][_serverIndices.value("loginUser")].URL()+"/user/login");
+
-
+ QString queryPrefix, querySuffix, queryDelimiter, queryStyle;
+ queryStyle = "";
+ if(queryStyle == "")
+ queryStyle = "form";
+ queryPrefix = getParamStylePrefix(queryStyle);
+ querySuffix = getParamStyleSuffix(queryStyle);
+ queryDelimiter = getParamStyleDelimiter(queryStyle, "username", false);
if (fullPath.indexOf("?") > 0)
- fullPath.append("&");
+ fullPath.append(queryPrefix);
else
fullPath.append("?");
- fullPath.append(QUrl::toPercentEncoding("username")).append("=").append(QUrl::toPercentEncoding(::test_namespace::toStringValue(username)));
+ fullPath.append(QUrl::toPercentEncoding("username")).append(querySuffix).append(QUrl::toPercentEncoding(::test_namespace::toStringValue(username)));
+ queryStyle = "";
+ if(queryStyle == "")
+ queryStyle = "form";
+ queryPrefix = getParamStylePrefix(queryStyle);
+ querySuffix = getParamStyleSuffix(queryStyle);
+ queryDelimiter = getParamStyleDelimiter(queryStyle, "password", false);
if (fullPath.indexOf("?") > 0)
- fullPath.append("&");
+ fullPath.append(queryPrefix);
else
fullPath.append("?");
- fullPath.append(QUrl::toPercentEncoding("password")).append("=").append(QUrl::toPercentEncoding(::test_namespace::toStringValue(password)));
+
+ fullPath.append(QUrl::toPercentEncoding("password")).append(querySuffix).append(QUrl::toPercentEncoding(::test_namespace::toStringValue(password)));
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
worker->setTimeOut(_timeOut);
@@ -407,6 +504,7 @@ void PFXUserApi::loginUserCallback(PFXHttpRequestWorker *worker) {
void PFXUserApi::logoutUser() {
QString fullPath = QString(_serverConfigs["logoutUser"][_serverIndices.value("logoutUser")].URL()+"/user/logout");
+
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
@@ -445,19 +543,28 @@ void PFXUserApi::logoutUserCallback(PFXHttpRequestWorker *worker) {
void PFXUserApi::updateUser(const QString &username, const PFXUser &body) {
QString fullPath = QString(_serverConfigs["updateUser"][_serverIndices.value("updateUser")].URL()+"/user/{username}");
+
QString usernamePathParam("{");
usernamePathParam.append("username").append("}");
- fullPath.replace(usernamePathParam, QUrl::toPercentEncoding(::test_namespace::toStringValue(username)));
-
+ QString pathPrefix, pathSuffix, pathDelimiter;
+ QString pathStyle = "";
+ if(pathStyle == "")
+ pathStyle = "simple";
+ pathPrefix = getParamStylePrefix(pathStyle);
+ pathSuffix = getParamStyleSuffix(pathStyle);
+ pathDelimiter = getParamStyleDelimiter(pathStyle, "username", false);
+ QString paramString = (pathStyle == "matrix") ? pathPrefix+"username"+pathSuffix : pathPrefix;
+ fullPath.replace(usernamePathParam, paramString+QUrl::toPercentEncoding(::test_namespace::toStringValue(username)));
+
PFXHttpRequestWorker *worker = new PFXHttpRequestWorker(this, _manager);
worker->setTimeOut(_timeOut);
worker->setWorkingDirectory(_workingDirectory);
PFXHttpRequestInput input(fullPath, "PUT");
+
QByteArray output = body.asJson().toUtf8();
input.request_body.append(output);
-
foreach (QString key, this->defaultHeaders.keys()) { input.headers.insert(key, this->defaultHeaders.value(key)); }
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXUserApi::updateUserCallback);
diff --git a/samples/client/petstore/cpp-qt5/client/PFXUserApi.h b/samples/client/petstore/cpp-qt5/client/PFXUserApi.h
index aada5d8f3bf..9e742cf5e49 100644
--- a/samples/client/petstore/cpp-qt5/client/PFXUserApi.h
+++ b/samples/client/petstore/cpp-qt5/client/PFXUserApi.h
@@ -52,6 +52,9 @@ public:
void enableRequestCompression();
void enableResponseCompression();
void abortRequests();
+ QString getParamStylePrefix(QString style);
+ QString getParamStyleSuffix(QString style);
+ QString getParamStyleDelimiter(QString style, QString name, bool isExplode);
void createUser(const PFXUser &body);
void createUsersWithArrayInput(const QList &body);
diff --git a/samples/client/petstore/crystal/src/petstore/api_client.cr b/samples/client/petstore/crystal/src/petstore/api_client.cr
index be6f1ad1434..a93932fbe4d 100644
--- a/samples/client/petstore/crystal/src/petstore/api_client.cr
+++ b/samples/client/petstore/crystal/src/petstore/api_client.cr
@@ -350,7 +350,7 @@ module Petstore
:verbose => @config.debugging
}
- if [:post, :patch, :put, :delete].include?(http_method)
+ if [:post, :patch, :put, :delete].includes?(http_method)
req_body = build_request_body(header_params, form_params, opts[:body])
req_opts.update body: req_body
if @config.debugging
diff --git a/samples/client/petstore/crystal/src/petstore/configuration.cr b/samples/client/petstore/crystal/src/petstore/configuration.cr
index b28963a80a5..833cd490005 100644
--- a/samples/client/petstore/crystal/src/petstore/configuration.cr
+++ b/samples/client/petstore/crystal/src/petstore/configuration.cr
@@ -249,12 +249,12 @@ module Petstore
server = servers[index]
url = server[:url]
- return url unless server.key? :variables
+ return url unless server.has_key? :variables
# go through variable and assign a value
server[:variables].each do |name, variable|
- if variables.key?(name)
- if (!server[:variables][name].key?(:enum_values) || server[:variables][name][:enum_values].include?(variables[name]))
+ if variables.has_key?(name)
+ if (!server[:variables][name].has_key?(:enum_values) || server[:variables][name][:enum_values].includes?(variables[name]))
url.gsub! "{" + name.to_s + "}", variables[name]
else
raise ArgumentError.new("The variable `#{name}` in the server URL has invalid value #{variables[name]}. Must be #{server[:variables][name][:enum_values]}.")
diff --git a/samples/client/petstore/crystal/src/petstore/models/api_response.cr b/samples/client/petstore/crystal/src/petstore/models/api_response.cr
index 0ec8e3171a2..30ffb012154 100644
--- a/samples/client/petstore/crystal/src/petstore/models/api_response.cr
+++ b/samples/client/petstore/crystal/src/petstore/models/api_response.cr
@@ -78,7 +78,7 @@ module Petstore
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)
self.class.openapi_types.each_pair do |key, type|
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
+ if !attributes[self.class.attribute_map[key]]? && self.class.openapi_nullable.includes?(key)
self.send("#{key}=", nil)
elsif type =~ /\AArray<(.*)>/i
# check to ensure the input is an array given that the attribute
@@ -156,7 +156,7 @@ module Petstore
self.class.attribute_map.each_pair do |attr, param|
value = self.send(attr)
if value.nil?
- is_nullable = self.class.openapi_nullable.include?(attr)
+ is_nullable = self.class.openapi_nullable.includes?(attr)
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
end
diff --git a/samples/client/petstore/crystal/src/petstore/models/category.cr b/samples/client/petstore/crystal/src/petstore/models/category.cr
index 812f5e3d1fb..9e52c988bbb 100644
--- a/samples/client/petstore/crystal/src/petstore/models/category.cr
+++ b/samples/client/petstore/crystal/src/petstore/models/category.cr
@@ -90,7 +90,7 @@ module Petstore
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)
self.class.openapi_types.each_pair do |key, type|
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
+ if !attributes[self.class.attribute_map[key]]? && self.class.openapi_nullable.includes?(key)
self.send("#{key}=", nil)
elsif type =~ /\AArray<(.*)>/i
# check to ensure the input is an array given that the attribute
@@ -168,7 +168,7 @@ module Petstore
self.class.attribute_map.each_pair do |attr, param|
value = self.send(attr)
if value.nil?
- is_nullable = self.class.openapi_nullable.include?(attr)
+ is_nullable = self.class.openapi_nullable.includes?(attr)
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
end
diff --git a/samples/client/petstore/crystal/src/petstore/models/order.cr b/samples/client/petstore/crystal/src/petstore/models/order.cr
index 1884a9251a5..31f9b155e53 100644
--- a/samples/client/petstore/crystal/src/petstore/models/order.cr
+++ b/samples/client/petstore/crystal/src/petstore/models/order.cr
@@ -57,7 +57,7 @@ module Petstore
end
def valid?(value)
- !value || allowable_values.include?(value)
+ !value || allowable_values.includes?(value)
end
end
@@ -129,7 +129,7 @@ module Petstore
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)
self.class.openapi_types.each_pair do |key, type|
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
+ if !attributes[self.class.attribute_map[key]]? && self.class.openapi_nullable.includes?(key)
self.send("#{key}=", nil)
elsif type =~ /\AArray<(.*)>/i
# check to ensure the input is an array given that the attribute
@@ -207,7 +207,7 @@ module Petstore
self.class.attribute_map.each_pair do |attr, param|
value = self.send(attr)
if value.nil?
- is_nullable = self.class.openapi_nullable.include?(attr)
+ is_nullable = self.class.openapi_nullable.includes?(attr)
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
end
diff --git a/samples/client/petstore/crystal/src/petstore/models/pet.cr b/samples/client/petstore/crystal/src/petstore/models/pet.cr
index 82514fa6138..8d15de33c87 100644
--- a/samples/client/petstore/crystal/src/petstore/models/pet.cr
+++ b/samples/client/petstore/crystal/src/petstore/models/pet.cr
@@ -57,7 +57,7 @@ module Petstore
end
def valid?(value)
- !value || allowable_values.include?(value)
+ !value || allowable_values.includes?(value)
end
end
@@ -139,7 +139,7 @@ module Petstore
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)
self.class.openapi_types.each_pair do |key, type|
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
+ if !attributes[self.class.attribute_map[key]]? && self.class.openapi_nullable.includes?(key)
self.send("#{key}=", nil)
elsif type =~ /\AArray<(.*)>/i
# check to ensure the input is an array given that the attribute
@@ -217,7 +217,7 @@ module Petstore
self.class.attribute_map.each_pair do |attr, param|
value = self.send(attr)
if value.nil?
- is_nullable = self.class.openapi_nullable.include?(attr)
+ is_nullable = self.class.openapi_nullable.includes?(attr)
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
end
diff --git a/samples/client/petstore/crystal/src/petstore/models/tag.cr b/samples/client/petstore/crystal/src/petstore/models/tag.cr
index 45fa5d74661..0a012104c5a 100644
--- a/samples/client/petstore/crystal/src/petstore/models/tag.cr
+++ b/samples/client/petstore/crystal/src/petstore/models/tag.cr
@@ -73,7 +73,7 @@ module Petstore
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)
self.class.openapi_types.each_pair do |key, type|
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
+ if !attributes[self.class.attribute_map[key]]? && self.class.openapi_nullable.includes?(key)
self.send("#{key}=", nil)
elsif type =~ /\AArray<(.*)>/i
# check to ensure the input is an array given that the attribute
@@ -151,7 +151,7 @@ module Petstore
self.class.attribute_map.each_pair do |attr, param|
value = self.send(attr)
if value.nil?
- is_nullable = self.class.openapi_nullable.include?(attr)
+ is_nullable = self.class.openapi_nullable.includes?(attr)
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
end
diff --git a/samples/client/petstore/crystal/src/petstore/models/user.cr b/samples/client/petstore/crystal/src/petstore/models/user.cr
index 7f54a64623f..12330d212d0 100644
--- a/samples/client/petstore/crystal/src/petstore/models/user.cr
+++ b/samples/client/petstore/crystal/src/petstore/models/user.cr
@@ -104,7 +104,7 @@ module Petstore
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)
self.class.openapi_types.each_pair do |key, type|
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
+ if !attributes[self.class.attribute_map[key]]? && self.class.openapi_nullable.includes?(key)
self.send("#{key}=", nil)
elsif type =~ /\AArray<(.*)>/i
# check to ensure the input is an array given that the attribute
@@ -182,7 +182,7 @@ module Petstore
self.class.attribute_map.each_pair do |attr, param|
value = self.send(attr)
if value.nil?
- is_nullable = self.class.openapi_nullable.include?(attr)
+ is_nullable = self.class.openapi_nullable.includes?(attr)
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
end
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/ApiClient.cs
index 53e4ce7fd45..d70c53adbdb 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/ApiClient.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/ApiClient.cs
@@ -477,6 +477,19 @@ namespace Org.OpenAPITools.Client
response = client.Execute(req);
}
+ // if the response type is oneOf/anyOf, call FromJSON to deserialize the data
+ if (typeof(Org.OpenAPITools.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T)))
+ {
+ T instance = (T)Activator.CreateInstance(typeof(T));
+ MethodInfo method = typeof(T).GetMethod("FromJson");
+ method.Invoke(instance, new object[] { response.Content });
+ response.Data = instance;
+ }
+ else if (typeof(T).Name == "Stream") // for binary response
+ {
+ response.Data = (T)(object)new MemoryStream(response.RawBytes);
+ }
+
InterceptResponse(req, response);
var result = ToApiResponse(response);
@@ -587,6 +600,10 @@ namespace Org.OpenAPITools.Client
method.Invoke(instance, new object[] { response.Content });
response.Data = instance;
}
+ else if (typeof(T).Name == "Stream") // for binary response
+ {
+ response.Data = (T)(object)new MemoryStream(response.RawBytes);
+ }
InterceptResponse(req, response);
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
index 584900d1a30..ba5fdee34d1 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
@@ -329,9 +329,22 @@ namespace Org.OpenAPITools.Client
#if (NETCOREAPP3_0 || NETCOREAPP3_1 || NET5_0)
var byteCount = 0;
- if (configuration.KeyPassPhrase != null)
+ if (KeyPassPhrase != null)
{
- ecdsa.ImportEncryptedPkcs8PrivateKey(keyPassPhrase, keyBytes, out byteCount);
+ IntPtr unmanagedString = IntPtr.Zero;
+ try
+ {
+ // convert secure string to byte array
+ unmanagedString = Marshal.SecureStringToGlobalAllocUnicode(KeyPassPhrase);
+ ecdsa.ImportEncryptedPkcs8PrivateKey(Encoding.UTF8.GetBytes(Marshal.PtrToStringUni(unmanagedString)), keyBytes, out byteCount);
+ }
+ finally
+ {
+ if (unmanagedString != IntPtr.Zero)
+ {
+ Marshal.ZeroFreeBSTR(unmanagedString);
+ }
+ }
}
else
{
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/.openapi-generator/FILES b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/.openapi-generator/FILES
index 60d0f82fefd..d258eb64b2f 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/.openapi-generator/FILES
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/.openapi-generator/FILES
@@ -2,17 +2,93 @@
Org.OpenAPITools.sln
README.md
appveyor.yml
+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/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
+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/Org.OpenAPITools.Test.csproj
+src/Org.OpenAPITools/Api/AnotherFakeApi.cs
+src/Org.OpenAPITools/Api/DefaultApi.cs
+src/Org.OpenAPITools/Api/FakeApi.cs
+src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs
src/Org.OpenAPITools/Api/PetApi.cs
src/Org.OpenAPITools/Api/StoreApi.cs
src/Org.OpenAPITools/Api/UserApi.cs
@@ -24,6 +100,7 @@ src/Org.OpenAPITools/Client/Configuration.cs
src/Org.OpenAPITools/Client/ExceptionFactory.cs
src/Org.OpenAPITools/Client/GlobalConfiguration.cs
src/Org.OpenAPITools/Client/HttpMethod.cs
+src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
src/Org.OpenAPITools/Client/IApiAccessor.cs
src/Org.OpenAPITools/Client/IAsynchronousClient.cs
src/Org.OpenAPITools/Client/IReadableConfiguration.cs
@@ -33,10 +110,78 @@ src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs
src/Org.OpenAPITools/Client/RequestOptions.cs
src/Org.OpenAPITools/Client/RetryConfiguration.cs
src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs
+src/Org.OpenAPITools/Model/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/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
+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
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/README.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/README.md
index fe99cf17868..cd422fe287d 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/README.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/README.md
@@ -1,6 +1,6 @@
# Org.OpenAPITools - the C# library for the OpenAPI Petstore
-This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
+This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
@@ -85,22 +85,19 @@ namespace Example
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
- // Configure OAuth2 access token for authorization: petstore_auth
- config.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi(config);
- var pet = new Pet(); // Pet | Pet object that needs to be added to the store
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new AnotherFakeApi(config);
+ var modelClient = new ModelClient(); // ModelClient | client model
try
{
- // Add a new pet to the store
- Pet result = apiInstance.AddPet(pet);
+ // To test special tags
+ ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling PetApi.AddPet: " + e.Message );
+ Debug.Print("Exception when calling AnotherFakeApi.Call123TestSpecialTags: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -113,10 +110,28 @@ namespace Example
## Documentation for API Endpoints
-All URIs are relative to *http://petstore.swagger.io/v2*
+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
+*DefaultApi* | [**FooGet**](docs/DefaultApi.md#fooget) | **GET** /foo |
+*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
+*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
+*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
+*FakeApi* | [**FakeOuterNumberSerialize**](docs/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
+*FakeApi* | [**FakeOuterStringSerialize**](docs/FakeApi.md#fakeouterstringserialize) | **POST** /fake/outer/string |
+*FakeApi* | [**GetArrayOfEnums**](docs/FakeApi.md#getarrayofenums) | **GET** /fake/array-of-enums | Array of Enums
+*FakeApi* | [**TestBodyWithFileSchema**](docs/FakeApi.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
+*FakeApi* | [**TestBodyWithQueryParams**](docs/FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
+*FakeApi* | [**TestClientModel**](docs/FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
+*FakeApi* | [**TestEndpointParameters**](docs/FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+*FakeApi* | [**TestEnumParameters**](docs/FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
+*FakeApi* | [**TestGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
+*FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
+*FakeApi* | [**TestJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data
+*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
+*FakeClassnameTags123Api* | [**TestClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case
*PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
*PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
*PetApi* | [**FindPetsByStatus**](docs/PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
@@ -125,9 +140,10 @@ Class | Method | HTTP request | Description
*PetApi* | [**UpdatePet**](docs/PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
*PetApi* | [**UpdatePetWithForm**](docs/PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
*PetApi* | [**UploadFile**](docs/PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
-*StoreApi* | [**DeleteOrder**](docs/StoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
+*PetApi* | [**UploadFileWithRequiredFile**](docs/PetApi.md#uploadfilewithrequiredfile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
+*StoreApi* | [**DeleteOrder**](docs/StoreApi.md#deleteorder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
*StoreApi* | [**GetInventory**](docs/StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
-*StoreApi* | [**GetOrderById**](docs/StoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID
+*StoreApi* | [**GetOrderById**](docs/StoreApi.md#getorderbyid) | **GET** /store/order/{order_id} | Find purchase order by ID
*StoreApi* | [**PlaceOrder**](docs/StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
*UserApi* | [**CreateUser**](docs/UserApi.md#createuser) | **POST** /user | Create user
*UserApi* | [**CreateUsersWithArrayInput**](docs/UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
@@ -142,12 +158,80 @@ Class | Method | HTTP request | Description
## Documentation for Models
+ - [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.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)
+ - [Model.OuterEnum](docs/OuterEnum.md)
+ - [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)
@@ -160,6 +244,27 @@ Class | Method | HTTP request | Description
- **API key parameter name**: api_key
- **Location**: HTTP header
+
+### api_key_query
+
+- **Type**: API key
+- **API key parameter name**: api_key_query
+- **Location**: URL query string
+
+
+### bearer_test
+
+- **Type**: Bearer Authentication
+
+
+### http_basic_test
+
+- **Type**: HTTP basic authentication
+
+
+### http_signature_test
+
+
### petstore_auth
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/AdditionalPropertiesClass.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/AdditionalPropertiesClass.md
new file mode 100644
index 00000000000..fbcf3be947a
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/AdditionalPropertiesClass.md
@@ -0,0 +1,16 @@
+# Org.OpenAPITools.Model.AdditionalPropertiesClass
+## Properties
+
+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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Animal.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Animal.md
new file mode 100644
index 00000000000..a97ce49b801
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Animal.md
@@ -0,0 +1,10 @@
+# Org.OpenAPITools.Model.Animal
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ClassName** | **string** | |
+**Color** | **string** | | [optional] [default to "red"]
+
+[[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-netcore/OpenAPIClient-net5.0/docs/AnotherFakeApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/AnotherFakeApi.md
new file mode 100644
index 00000000000..494fe14c5e6
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/AnotherFakeApi.md
@@ -0,0 +1,79 @@
+# Org.OpenAPITools.Api.AnotherFakeApi
+
+All URIs are relative to *http://petstore.swagger.io:80/v2*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**Call123TestSpecialTags**](AnotherFakeApi.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
+
+
+
+# **Call123TestSpecialTags**
+> ModelClient Call123TestSpecialTags (ModelClient modelClient)
+
+To test special tags
+
+To test special tags and operation ID starting with number
+
+### 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 Call123TestSpecialTagsExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new AnotherFakeApi(config);
+ var modelClient = new ModelClient(); // ModelClient | client model
+
+ try
+ {
+ // To test special tags
+ ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling AnotherFakeApi.Call123TestSpecialTags: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **modelClient** | [**ModelClient**](ModelClient.md)| client model |
+
+### Return type
+
+[**ModelClient**](ModelClient.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ApiResponse.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ApiResponse.md
index f00988a69e4..1ac0bfc8acd 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ApiResponse.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ApiResponse.md
@@ -1,5 +1,4 @@
# Org.OpenAPITools.Model.ApiResponse
-Describes the result of uploading an image resource
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Apple.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Apple.md
new file mode 100644
index 00000000000..1b3949b9f21
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Apple.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/AppleReq.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/AppleReq.md
new file mode 100644
index 00000000000..1a3f09548e8
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/AppleReq.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ArrayOfArrayOfNumberOnly.md
new file mode 100644
index 00000000000..a4acb4dfa7c
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ArrayOfArrayOfNumberOnly.md
@@ -0,0 +1,9 @@
+# Org.OpenAPITools.Model.ArrayOfArrayOfNumberOnly
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ArrayArrayNumber** | **List<List<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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ArrayOfNumberOnly.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ArrayOfNumberOnly.md
new file mode 100644
index 00000000000..c61636e3585
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ArrayOfNumberOnly.md
@@ -0,0 +1,9 @@
+# Org.OpenAPITools.Model.ArrayOfNumberOnly
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ArrayNumber** | **List<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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ArrayTest.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ArrayTest.md
new file mode 100644
index 00000000000..a5e9e5c244c
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ArrayTest.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.ArrayTest
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ArrayOfString** | **List<string>** | | [optional]
+**ArrayArrayOfInteger** | **List<List<long>>** | | [optional]
+**ArrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [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-netcore/OpenAPIClient-net5.0/docs/Banana.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Banana.md
new file mode 100644
index 00000000000..74aa8a86b74
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Banana.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/BananaReq.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/BananaReq.md
new file mode 100644
index 00000000000..10ea538f590
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/BananaReq.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/BasquePig.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/BasquePig.md
new file mode 100644
index 00000000000..36c2df9673a
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/BasquePig.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Capitalization.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Capitalization.md
new file mode 100644
index 00000000000..74c1ab66db2
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Capitalization.md
@@ -0,0 +1,14 @@
+# Org.OpenAPITools.Model.Capitalization
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**SmallCamel** | **string** | | [optional]
+**CapitalCamel** | **string** | | [optional]
+**SmallSnake** | **string** | | [optional]
+**CapitalSnake** | **string** | | [optional]
+**SCAETHFlowPoints** | **string** | | [optional]
+**ATT_NAME** | **string** | Name 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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Cat.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Cat.md
new file mode 100644
index 00000000000..8975864ba12
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Cat.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.Cat
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ClassName** | **string** | |
+**Color** | **string** | | [optional] [default to "red"]
+**Declawed** | **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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/CatAllOf.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/CatAllOf.md
new file mode 100644
index 00000000000..e6f320ac0de
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/CatAllOf.md
@@ -0,0 +1,9 @@
+# Org.OpenAPITools.Model.CatAllOf
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Declawed** | **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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Category.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Category.md
index 1cf7b04e32a..f7b8d4ebf74 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Category.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Category.md
@@ -1,11 +1,10 @@
# Org.OpenAPITools.Model.Category
-A category for a pet
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **long** | | [optional]
-**Name** | **string** | | [optional]
+**Name** | **string** | | [default to "default-name"]
[[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-netcore/OpenAPIClient-net5.0/docs/ChildCat.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ChildCat.md
new file mode 100644
index 00000000000..ff376beebad
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ChildCat.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ChildCatAllOf.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ChildCatAllOf.md
new file mode 100644
index 00000000000..18044560aa8
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ChildCatAllOf.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ClassModel.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ClassModel.md
new file mode 100644
index 00000000000..51e52f4b735
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ClassModel.md
@@ -0,0 +1,10 @@
+# Org.OpenAPITools.Model.ClassModel
+Model for testing model with \"_class\" property
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Class** | **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-netcore/OpenAPIClient-net5.0/docs/ComplexQuadrilateral.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ComplexQuadrilateral.md
new file mode 100644
index 00000000000..46da47c5124
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ComplexQuadrilateral.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/DanishPig.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/DanishPig.md
new file mode 100644
index 00000000000..53f6a754270
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/DanishPig.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/DefaultApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/DefaultApi.md
new file mode 100644
index 00000000000..d2447d2e0ac
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/DefaultApi.md
@@ -0,0 +1,72 @@
+# Org.OpenAPITools.Api.DefaultApi
+
+All URIs are relative to *http://petstore.swagger.io:80/v2*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**FooGet**](DefaultApi.md#fooget) | **GET** /foo |
+
+
+
+# **FooGet**
+> InlineResponseDefault FooGet ()
+
+
+
+### 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 FooGetExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new DefaultApi(config);
+
+ try
+ {
+ InlineResponseDefault result = apiInstance.FooGet();
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling DefaultApi.FooGet: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**InlineResponseDefault**](InlineResponseDefault.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Dog.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Dog.md
new file mode 100644
index 00000000000..aa5df1a927a
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Dog.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.Dog
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ClassName** | **string** | |
+**Color** | **string** | | [optional] [default to "red"]
+**Breed** | **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-netcore/OpenAPIClient-net5.0/docs/DogAllOf.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/DogAllOf.md
new file mode 100644
index 00000000000..ef32aeb7148
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/DogAllOf.md
@@ -0,0 +1,9 @@
+# Org.OpenAPITools.Model.DogAllOf
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Breed** | **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-netcore/OpenAPIClient-net5.0/docs/Drawing.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Drawing.md
new file mode 100644
index 00000000000..cdb1654356f
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Drawing.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/EnumArrays.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/EnumArrays.md
new file mode 100644
index 00000000000..2dfe0e22388
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/EnumArrays.md
@@ -0,0 +1,10 @@
+# Org.OpenAPITools.Model.EnumArrays
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**JustSymbol** | **string** | | [optional]
+**ArrayEnum** | **List<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-netcore/OpenAPIClient-net5.0/docs/EnumClass.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/EnumClass.md
new file mode 100644
index 00000000000..4fb1eae9c06
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/EnumClass.md
@@ -0,0 +1,8 @@
+# Org.OpenAPITools.Model.EnumClass
+## 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-netcore/OpenAPIClient-net5.0/docs/EnumTest.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/EnumTest.md
new file mode 100644
index 00000000000..5a6544a5172
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/EnumTest.md
@@ -0,0 +1,16 @@
+# Org.OpenAPITools.Model.EnumTest
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**EnumString** | **string** | | [optional]
+**EnumStringRequired** | **string** | |
+**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) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/EquilateralTriangle.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/EquilateralTriangle.md
new file mode 100644
index 00000000000..9899d7c5db5
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/EquilateralTriangle.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FakeApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FakeApi.md
new file mode 100644
index 00000000000..7f5e0f57cab
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FakeApi.md
@@ -0,0 +1,1111 @@
+# Org.OpenAPITools.Api.FakeApi
+
+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
+[**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
+[**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
+[**TestJsonFormData**](FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data
+[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
+
+
+
+# **FakeHealthGet**
+> HealthCheckResult FakeHealthGet ()
+
+Health check endpoint
+
+### 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 config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new FakeApi(config);
+
+ 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)
+
+
+# **FakeOuterBooleanSerialize**
+> bool FakeOuterBooleanSerialize (bool? body = null)
+
+
+
+Test serialization of outer boolean types
+
+### 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 FakeOuterBooleanSerializeExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new FakeApi(config);
+ var body = true; // bool? | Input boolean as post body (optional)
+
+ try
+ {
+ bool result = apiInstance.FakeOuterBooleanSerialize(body);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling FakeApi.FakeOuterBooleanSerialize: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **bool?**| Input boolean as post body | [optional]
+
+### Return type
+
+**bool**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: */*
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Output boolean | - |
+
+[[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)
+
+
+# **FakeOuterCompositeSerialize**
+> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
+
+
+
+Test serialization of object with outer number type
+
+### 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 FakeOuterCompositeSerializeExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new FakeApi(config);
+ var outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
+
+ try
+ {
+ OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling FakeApi.FakeOuterCompositeSerialize: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
+
+### Return type
+
+[**OuterComposite**](OuterComposite.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: */*
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Output composite | - |
+
+[[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)
+
+
+# **FakeOuterNumberSerialize**
+> decimal FakeOuterNumberSerialize (decimal? body = null)
+
+
+
+Test serialization of outer number types
+
+### 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 FakeOuterNumberSerializeExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new FakeApi(config);
+ var body = 8.14; // decimal? | Input number as post body (optional)
+
+ try
+ {
+ decimal result = apiInstance.FakeOuterNumberSerialize(body);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling FakeApi.FakeOuterNumberSerialize: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **decimal?**| Input number as post body | [optional]
+
+### Return type
+
+**decimal**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: */*
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Output number | - |
+
+[[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)
+
+
+# **FakeOuterStringSerialize**
+> string FakeOuterStringSerialize (string body = null)
+
+
+
+Test serialization of outer string types
+
+### 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 FakeOuterStringSerializeExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new FakeApi(config);
+ var body = body_example; // string | Input string as post body (optional)
+
+ try
+ {
+ string result = apiInstance.FakeOuterStringSerialize(body);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling FakeApi.FakeOuterStringSerialize: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **string**| Input string as post body | [optional]
+
+### Return type
+
+**string**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: */*
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Output string | - |
+
+[[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)
+
+
+# **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 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)
+
+
+# **TestBodyWithFileSchema**
+> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
+
+
+
+For this test, the body for this request much reference a schema named `File`.
+
+### 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 TestBodyWithFileSchemaExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new FakeApi(config);
+ var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
+
+ try
+ {
+ apiInstance.TestBodyWithFileSchema(fileSchemaTestClass);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling FakeApi.TestBodyWithFileSchema: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Success | - |
+
+[[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)
+
+
+# **TestBodyWithQueryParams**
+> void TestBodyWithQueryParams (string query, User user)
+
+
+
+### 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 TestBodyWithQueryParamsExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new FakeApi(config);
+ var query = query_example; // string |
+ var user = new User(); // User |
+
+ try
+ {
+ apiInstance.TestBodyWithQueryParams(query, user);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling FakeApi.TestBodyWithQueryParams: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **query** | **string**| |
+ **user** | [**User**](User.md)| |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Success | - |
+
+[[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)
+
+
+# **TestClientModel**
+> ModelClient TestClientModel (ModelClient modelClient)
+
+To test \"client\" model
+
+To test \"client\" model
+
+### 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 TestClientModelExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new FakeApi(config);
+ var modelClient = new ModelClient(); // ModelClient | client model
+
+ try
+ {
+ // To test \"client\" model
+ ModelClient result = apiInstance.TestClientModel(modelClient);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling FakeApi.TestClientModel: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **modelClient** | [**ModelClient**](ModelClient.md)| client model |
+
+### Return type
+
+[**ModelClient**](ModelClient.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+
+# **TestEndpointParameters**
+> 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 假端點 偽のエンドポイント 가짜 엔드 포인트
+
+### 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 TestEndpointParametersExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ // Configure HTTP basic authorization: http_basic_test
+ config.Username = "YOUR_USERNAME";
+ config.Password = "YOUR_PASSWORD";
+
+ var apiInstance = new FakeApi(config);
+ var number = 8.14; // decimal | None
+ var _double = 1.2D; // double | None
+ var patternWithoutDelimiter = patternWithoutDelimiter_example; // string | None
+ var _byte = BYTE_ARRAY_DATA_HERE; // byte[] | None
+ var integer = 56; // int? | None (optional)
+ var int32 = 56; // int? | None (optional)
+ var int64 = 789; // long? | None (optional)
+ var _float = 3.4F; // float? | None (optional)
+ 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) (default to "2010-02-01T10:20:10.111110+01:00")
+ var password = password_example; // string | None (optional)
+ var callback = callback_example; // string | None (optional)
+
+ try
+ {
+ // 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)
+ {
+ Debug.Print("Exception when calling FakeApi.TestEndpointParameters: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **number** | **decimal**| None |
+ **_double** | **double**| None |
+ **patternWithoutDelimiter** | **string**| None |
+ **_byte** | **byte[]**| None |
+ **integer** | **int?**| None | [optional]
+ **int32** | **int?**| None | [optional]
+ **int64** | **long?**| None | [optional]
+ **_float** | **float?**| None | [optional]
+ **_string** | **string**| None | [optional]
+ **binary** | **System.IO.Stream****System.IO.Stream**| None | [optional]
+ **date** | **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]
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[http_basic_test](../README.md#http_basic_test)
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: Not defined
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **400** | Invalid username supplied | - |
+| **404** | User not found | - |
+
+[[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)
+
+
+# **TestEnumParameters**
+> void TestEnumParameters (List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List enumFormStringArray = null, string enumFormString = null)
+
+To test enum parameters
+
+To test enum parameters
+
+### 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 TestEnumParametersExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new FakeApi(config);
+ var enumHeaderStringArray = enumHeaderStringArray_example; // List | Header parameter enum test (string array) (optional)
+ var enumHeaderString = enumHeaderString_example; // string | Header parameter enum test (string) (optional) (default to -efg)
+ var enumQueryStringArray = enumQueryStringArray_example; // List | Query parameter enum test (string array) (optional)
+ var enumQueryString = enumQueryString_example; // string | Query parameter enum test (string) (optional) (default to -efg)
+ var enumQueryInteger = 56; // int? | Query parameter enum test (double) (optional)
+ var enumQueryDouble = 1.2D; // double? | Query parameter enum test (double) (optional)
+ var enumFormStringArray = new List(); // List | Form parameter enum test (string array) (optional) (default to $)
+ var enumFormString = enumFormString_example; // string | Form parameter enum test (string) (optional) (default to -efg)
+
+ try
+ {
+ // To test enum parameters
+ apiInstance.TestEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling FakeApi.TestEnumParameters: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **enumHeaderStringArray** | **List<string>**| Header parameter enum test (string array) | [optional]
+ **enumHeaderString** | **string**| Header parameter enum test (string) | [optional] [default to -efg]
+ **enumQueryStringArray** | **List<string>**| Query parameter enum test (string array) | [optional]
+ **enumQueryString** | **string**| Query parameter enum test (string) | [optional] [default to -efg]
+ **enumQueryInteger** | **int?**| Query parameter enum test (double) | [optional]
+ **enumQueryDouble** | **double?**| Query parameter enum test (double) | [optional]
+ **enumFormStringArray** | [**List<string>**](string.md)| Form parameter enum test (string array) | [optional] [default to $]
+ **enumFormString** | **string**| Form parameter enum test (string) | [optional] [default to -efg]
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: Not defined
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **400** | Invalid request | - |
+| **404** | Not found | - |
+
+[[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)
+
+
+# **TestGroupParameters**
+> void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null)
+
+Fake endpoint to test group parameters (optional)
+
+Fake endpoint to test group parameters (optional)
+
+### 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 TestGroupParametersExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ // Configure Bearer token for authorization: bearer_test
+ config.AccessToken = "YOUR_BEARER_TOKEN";
+
+ var apiInstance = new FakeApi(config);
+ var requiredStringGroup = 56; // int | Required String in group parameters
+ var requiredBooleanGroup = true; // bool | Required Boolean in group parameters
+ var requiredInt64Group = 789; // long | Required Integer in group parameters
+ var stringGroup = 56; // int? | String in group parameters (optional)
+ var booleanGroup = true; // bool? | Boolean in group parameters (optional)
+ var int64Group = 789; // long? | Integer in group parameters (optional)
+
+ try
+ {
+ // Fake endpoint to test group parameters (optional)
+ apiInstance.TestGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling FakeApi.TestGroupParameters: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **requiredStringGroup** | **int**| Required String in group parameters |
+ **requiredBooleanGroup** | **bool**| Required Boolean in group parameters |
+ **requiredInt64Group** | **long**| Required Integer in group parameters |
+ **stringGroup** | **int?**| String in group parameters | [optional]
+ **booleanGroup** | **bool?**| Boolean in group parameters | [optional]
+ **int64Group** | **long?**| Integer in group parameters | [optional]
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[bearer_test](../README.md#bearer_test)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **400** | Someting wrong | - |
+
+[[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)
+
+
+# **TestInlineAdditionalProperties**
+> void TestInlineAdditionalProperties (Dictionary requestBody)
+
+test inline additionalProperties
+
+### 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 TestInlineAdditionalPropertiesExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new FakeApi(config);
+ var requestBody = new Dictionary(); // Dictionary | request body
+
+ try
+ {
+ // test inline additionalProperties
+ apiInstance.TestInlineAdditionalProperties(requestBody);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling FakeApi.TestInlineAdditionalProperties: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **requestBody** | [**Dictionary<string, string>**](string.md)| request body |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+
+# **TestJsonFormData**
+> void TestJsonFormData (string param, string param2)
+
+test json serialization of form data
+
+### 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 TestJsonFormDataExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new FakeApi(config);
+ var param = param_example; // string | field1
+ var param2 = param2_example; // string | field2
+
+ try
+ {
+ // test json serialization of form data
+ apiInstance.TestJsonFormData(param, param2);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling FakeApi.TestJsonFormData: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **param** | **string**| field1 |
+ **param2** | **string**| field2 |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: Not defined
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+
+# **TestQueryParameterCollectionFormat**
+> void TestQueryParameterCollectionFormat (List pipe, List ioutil, List http, List url, List context)
+
+
+
+To test the collection format in query parameters
+
+### 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 TestQueryParameterCollectionFormatExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new FakeApi(config);
+ var pipe = new List(); // List |
+ var ioutil = new List(); // List |
+ var http = new List(); // List |
+ var url = new List(); // List |
+ var context = new List(); // List |
+
+ try
+ {
+ apiInstance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling FakeApi.TestQueryParameterCollectionFormat: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **pipe** | [**List<string>**](string.md)| |
+ **ioutil** | [**List<string>**](string.md)| |
+ **http** | [**List<string>**](string.md)| |
+ **url** | [**List<string>**](string.md)| |
+ **context** | [**List<string>**](string.md)| |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Success | - |
+
+[[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-netcore/OpenAPIClient-net5.0/docs/FakeClassnameTags123Api.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FakeClassnameTags123Api.md
new file mode 100644
index 00000000000..2a148644cc5
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FakeClassnameTags123Api.md
@@ -0,0 +1,84 @@
+# Org.OpenAPITools.Api.FakeClassnameTags123Api
+
+All URIs are relative to *http://petstore.swagger.io:80/v2*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**TestClassname**](FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case
+
+
+
+# **TestClassname**
+> ModelClient TestClassname (ModelClient modelClient)
+
+To test class name in snake case
+
+To test class name in snake case
+
+### 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 TestClassnameExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ // Configure API key authorization: api_key_query
+ config.AddApiKey("api_key_query", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("api_key_query", "Bearer");
+
+ var apiInstance = new FakeClassnameTags123Api(config);
+ var modelClient = new ModelClient(); // ModelClient | client model
+
+ try
+ {
+ // To test class name in snake case
+ ModelClient result = apiInstance.TestClassname(modelClient);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling FakeClassnameTags123Api.TestClassname: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **modelClient** | [**ModelClient**](ModelClient.md)| client model |
+
+### Return type
+
+[**ModelClient**](ModelClient.md)
+
+### Authorization
+
+[api_key_query](../README.md#api_key_query)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/File.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/File.md
new file mode 100644
index 00000000000..11192666c4f
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/File.md
@@ -0,0 +1,10 @@
+# Org.OpenAPITools.Model.File
+Must be named `File` for test.
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**SourceURI** | **string** | Test capitalization | [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-netcore/OpenAPIClient-net5.0/docs/FileSchemaTestClass.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FileSchemaTestClass.md
new file mode 100644
index 00000000000..244164accbe
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FileSchemaTestClass.md
@@ -0,0 +1,10 @@
+# Org.OpenAPITools.Model.FileSchemaTestClass
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**File** | [**File**](File.md) | | [optional]
+**Files** | [**List<File>**](File.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Foo.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Foo.md
new file mode 100644
index 00000000000..fd84dc2038c
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Foo.md
@@ -0,0 +1,9 @@
+# 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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FormatTest.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FormatTest.md
new file mode 100644
index 00000000000..3efa07e3b46
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FormatTest.md
@@ -0,0 +1,24 @@
+# Org.OpenAPITools.Model.FormatTest
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Integer** | **int** | | [optional]
+**Int32** | **int** | | [optional]
+**Int64** | **long** | | [optional]
+**Number** | **decimal** | |
+**Float** | **float** | | [optional]
+**Double** | **double** | | [optional]
+**Decimal** | **decimal** | | [optional]
+**String** | **string** | | [optional]
+**Byte** | **byte[]** | |
+**Binary** | **System.IO.Stream** | | [optional]
+**Date** | **DateTime** | |
+**DateTime** | **DateTime** | | [optional]
+**Uuid** | **Guid** | | [optional]
+**Password** | **string** | |
+**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) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Fruit.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Fruit.md
new file mode 100644
index 00000000000..ab12d86b7c3
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Fruit.md
@@ -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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FruitReq.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FruitReq.md
new file mode 100644
index 00000000000..06120314fb6
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FruitReq.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/GmFruit.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/GmFruit.md
new file mode 100644
index 00000000000..2cdabaa6ec6
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/GmFruit.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/GrandparentAnimal.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/GrandparentAnimal.md
new file mode 100644
index 00000000000..2879f720f42
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/GrandparentAnimal.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/HasOnlyReadOnly.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/HasOnlyReadOnly.md
new file mode 100644
index 00000000000..4a5d17ea887
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/HasOnlyReadOnly.md
@@ -0,0 +1,10 @@
+# Org.OpenAPITools.Model.HasOnlyReadOnly
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Bar** | **string** | | [optional] [readonly]
+**Foo** | **string** | | [optional] [readonly]
+
+[[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-netcore/OpenAPIClient-net5.0/docs/HealthCheckResult.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/HealthCheckResult.md
new file mode 100644
index 00000000000..44c5cd47b65
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/HealthCheckResult.md
@@ -0,0 +1,10 @@
+# Org.OpenAPITools.Model.HealthCheckResult
+Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.
+## 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-netcore/OpenAPIClient-net5.0/docs/InlineResponseDefault.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/InlineResponseDefault.md
new file mode 100644
index 00000000000..8c96fb62ac8
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/InlineResponseDefault.md
@@ -0,0 +1,9 @@
+# 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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/IsoscelesTriangle.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/IsoscelesTriangle.md
new file mode 100644
index 00000000000..d4ac347e2e5
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/IsoscelesTriangle.md
@@ -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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/List.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/List.md
new file mode 100644
index 00000000000..484c2a0992c
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/List.md
@@ -0,0 +1,9 @@
+# Org.OpenAPITools.Model.List
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**_123List** | **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-netcore/OpenAPIClient-net5.0/docs/Mammal.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Mammal.md
new file mode 100644
index 00000000000..b3f243cc6e2
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Mammal.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/MapTest.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/MapTest.md
new file mode 100644
index 00000000000..b2e30bde4c3
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/MapTest.md
@@ -0,0 +1,12 @@
+# Org.OpenAPITools.Model.MapTest
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**MapMapOfString** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
+**MapOfEnumString** | **Dictionary<string, string>** | | [optional]
+**DirectMap** | **Dictionary<string, bool>** | | [optional]
+**IndirectMap** | **Dictionary<string, 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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/MixedPropertiesAndAdditionalPropertiesClass.md
new file mode 100644
index 00000000000..9aa858ade8d
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/MixedPropertiesAndAdditionalPropertiesClass.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.MixedPropertiesAndAdditionalPropertiesClass
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Uuid** | **Guid** | | [optional]
+**DateTime** | **DateTime** | | [optional]
+**Map** | [**Dictionary<string, Animal>**](Animal.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Model200Response.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Model200Response.md
new file mode 100644
index 00000000000..668f456c690
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Model200Response.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.Model200Response
+Model for testing model name starting with number
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **int** | | [optional]
+**Class** | **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-netcore/OpenAPIClient-net5.0/docs/ModelClient.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ModelClient.md
new file mode 100644
index 00000000000..ecc7b60ce55
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ModelClient.md
@@ -0,0 +1,9 @@
+# Org.OpenAPITools.Model.ModelClient
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**__Client** | **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-netcore/OpenAPIClient-net5.0/docs/Name.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Name.md
new file mode 100644
index 00000000000..c75e5d034e5
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Name.md
@@ -0,0 +1,13 @@
+# Org.OpenAPITools.Model.Name
+Model for testing model name same as property name
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**_Name** | **int** | |
+**SnakeCase** | **int** | | [optional] [readonly]
+**Property** | **string** | | [optional]
+**_123Number** | **int** | | [optional] [readonly]
+
+[[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-netcore/OpenAPIClient-net5.0/docs/NullableClass.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/NullableClass.md
new file mode 100644
index 00000000000..0ca2455a4ab
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/NullableClass.md
@@ -0,0 +1,20 @@
+# 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-netcore/OpenAPIClient-net5.0/docs/NullableShape.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/NullableShape.md
new file mode 100644
index 00000000000..4fe318e4a16
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/NullableShape.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/NumberOnly.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/NumberOnly.md
new file mode 100644
index 00000000000..a2ca39cc52b
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/NumberOnly.md
@@ -0,0 +1,9 @@
+# Org.OpenAPITools.Model.NumberOnly
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**JustNumber** | **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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Order.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Order.md
index 65388ca7b69..13eb4a56bd5 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Order.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Order.md
@@ -1,5 +1,4 @@
# Org.OpenAPITools.Model.Order
-An order for a pets from the pet store
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/OuterComposite.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/OuterComposite.md
new file mode 100644
index 00000000000..4f026f75b74
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/OuterComposite.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.OuterComposite
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**MyNumber** | **decimal** | | [optional]
+**MyString** | **string** | | [optional]
+**MyBoolean** | **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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/OuterEnum.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/OuterEnum.md
new file mode 100644
index 00000000000..22713352ca0
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/OuterEnum.md
@@ -0,0 +1,8 @@
+# Org.OpenAPITools.Model.OuterEnum
+## 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-netcore/OpenAPIClient-net5.0/docs/OuterEnumDefaultValue.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/OuterEnumDefaultValue.md
new file mode 100644
index 00000000000..09f6b91ee62
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/OuterEnumDefaultValue.md
@@ -0,0 +1,8 @@
+# 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-netcore/OpenAPIClient-net5.0/docs/OuterEnumInteger.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/OuterEnumInteger.md
new file mode 100644
index 00000000000..149bb5a8dd1
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/OuterEnumInteger.md
@@ -0,0 +1,8 @@
+# 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-netcore/OpenAPIClient-net5.0/docs/OuterEnumIntegerDefaultValue.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/OuterEnumIntegerDefaultValue.md
new file mode 100644
index 00000000000..29de7150974
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/OuterEnumIntegerDefaultValue.md
@@ -0,0 +1,8 @@
+# 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-netcore/OpenAPIClient-net5.0/docs/ParentPet.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ParentPet.md
new file mode 100644
index 00000000000..188f0754e3b
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ParentPet.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Pet.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Pet.md
index 86733711fc3..348d5c8d221 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Pet.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Pet.md
@@ -1,5 +1,4 @@
# Org.OpenAPITools.Model.Pet
-A pet for sale in the pet store
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/PetApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/PetApi.md
index b84b0be8b01..5acd4f35203 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/PetApi.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/PetApi.md
@@ -1,6 +1,6 @@
# Org.OpenAPITools.Api.PetApi
-All URIs are relative to *http://petstore.swagger.io/v2*
+All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
@@ -12,11 +12,12 @@ Method | HTTP request | Description
[**UpdatePet**](PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
[**UpdatePetWithForm**](PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
[**UploadFile**](PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
+[**UploadFileWithRequiredFile**](PetApi.md#uploadfilewithrequiredfile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
# **AddPet**
-> Pet AddPet (Pet pet)
+> void AddPet (Pet pet)
Add a new pet to the store
@@ -35,7 +36,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
+ config.BasePath = "http://petstore.swagger.io:80/v2";
// Configure OAuth2 access token for authorization: petstore_auth
config.AccessToken = "YOUR_ACCESS_TOKEN";
@@ -45,8 +46,7 @@ namespace Example
try
{
// Add a new pet to the store
- Pet result = apiInstance.AddPet(pet);
- Debug.WriteLine(result);
+ apiInstance.AddPet(pet);
}
catch (ApiException e)
{
@@ -67,21 +67,20 @@ Name | Type | Description | Notes
### Return type
-[**Pet**](Pet.md)
+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
- **Content-Type**: application/json, application/xml
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | successful operation | - |
| **405** | Invalid input | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -107,7 +106,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
+ config.BasePath = "http://petstore.swagger.io:80/v2";
// Configure OAuth2 access token for authorization: petstore_auth
config.AccessToken = "YOUR_ACCESS_TOKEN";
@@ -181,7 +180,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
+ config.BasePath = "http://petstore.swagger.io:80/v2";
// Configure OAuth2 access token for authorization: petstore_auth
config.AccessToken = "YOUR_ACCESS_TOKEN";
@@ -217,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
@@ -255,7 +254,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
+ config.BasePath = "http://petstore.swagger.io:80/v2";
// Configure OAuth2 access token for authorization: petstore_auth
config.AccessToken = "YOUR_ACCESS_TOKEN";
@@ -291,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
@@ -329,7 +328,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
+ config.BasePath = "http://petstore.swagger.io:80/v2";
// Configure API key authorization: api_key
config.AddApiKey("api_key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
@@ -385,7 +384,7 @@ Name | Type | Description | Notes
# **UpdatePet**
-> Pet UpdatePet (Pet pet)
+> void UpdatePet (Pet pet)
Update an existing pet
@@ -404,7 +403,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
+ config.BasePath = "http://petstore.swagger.io:80/v2";
// Configure OAuth2 access token for authorization: petstore_auth
config.AccessToken = "YOUR_ACCESS_TOKEN";
@@ -414,8 +413,7 @@ namespace Example
try
{
// Update an existing pet
- Pet result = apiInstance.UpdatePet(pet);
- Debug.WriteLine(result);
+ apiInstance.UpdatePet(pet);
}
catch (ApiException e)
{
@@ -436,21 +434,20 @@ Name | Type | Description | Notes
### Return type
-[**Pet**](Pet.md)
+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
- **Content-Type**: application/json, application/xml
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | successful operation | - |
| **400** | Invalid ID supplied | - |
| **404** | Pet not found | - |
| **405** | Validation exception | - |
@@ -478,7 +475,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
+ config.BasePath = "http://petstore.swagger.io:80/v2";
// Configure OAuth2 access token for authorization: petstore_auth
config.AccessToken = "YOUR_ACCESS_TOKEN";
@@ -552,7 +549,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
+ config.BasePath = "http://petstore.swagger.io:80/v2";
// Configure OAuth2 access token for authorization: petstore_auth
config.AccessToken = "YOUR_ACCESS_TOKEN";
@@ -606,3 +603,78 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **UploadFileWithRequiredFile**
+> ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string additionalMetadata = null)
+
+uploads an image (required)
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class UploadFileWithRequiredFileExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ // Configure OAuth2 access token for authorization: petstore_auth
+ config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var apiInstance = new PetApi(config);
+ var petId = 789; // long | ID of pet to update
+ var requiredFile = BINARY_DATA_HERE; // System.IO.Stream | file to upload
+ var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional)
+
+ try
+ {
+ // uploads an image (required)
+ ApiResponse result = apiInstance.UploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling PetApi.UploadFileWithRequiredFile: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **petId** | **long**| ID of pet to update |
+ **requiredFile** | **System.IO.Stream****System.IO.Stream**| file to upload |
+ **additionalMetadata** | **string**| Additional data to pass to server | [optional]
+
+### Return type
+
+[**ApiResponse**](ApiResponse.md)
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Pig.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Pig.md
new file mode 100644
index 00000000000..6e9ea931901
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Pig.md
@@ -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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Quadrilateral.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Quadrilateral.md
new file mode 100644
index 00000000000..2676d64eabb
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Quadrilateral.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/QuadrilateralInterface.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/QuadrilateralInterface.md
new file mode 100644
index 00000000000..0fd001c58bc
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/QuadrilateralInterface.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ReadOnlyFirst.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ReadOnlyFirst.md
new file mode 100644
index 00000000000..5c3762e8803
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ReadOnlyFirst.md
@@ -0,0 +1,10 @@
+# Org.OpenAPITools.Model.ReadOnlyFirst
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Bar** | **string** | | [optional] [readonly]
+**Baz** | **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-netcore/OpenAPIClient-net5.0/docs/Return.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Return.md
new file mode 100644
index 00000000000..56a0ac3de08
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Return.md
@@ -0,0 +1,10 @@
+# Org.OpenAPITools.Model.Return
+Model for testing reserved words
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**_Return** | **int** | | [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-netcore/OpenAPIClient-net5.0/docs/ScaleneTriangle.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ScaleneTriangle.md
new file mode 100644
index 00000000000..2ebc1db5b4a
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ScaleneTriangle.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Shape.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Shape.md
new file mode 100644
index 00000000000..cabde4dffc9
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Shape.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ShapeInterface.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ShapeInterface.md
new file mode 100644
index 00000000000..6126932df84
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ShapeInterface.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ShapeOrNull.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ShapeOrNull.md
new file mode 100644
index 00000000000..59c2453ac78
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ShapeOrNull.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/SimpleQuadrilateral.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/SimpleQuadrilateral.md
new file mode 100644
index 00000000000..5f55ec3e833
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/SimpleQuadrilateral.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/SpecialModelName.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/SpecialModelName.md
new file mode 100644
index 00000000000..e0008731e60
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/SpecialModelName.md
@@ -0,0 +1,9 @@
+# Org.OpenAPITools.Model.SpecialModelName
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**SpecialPropertyName** | **long** | | [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-netcore/OpenAPIClient-net5.0/docs/StoreApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/StoreApi.md
index 2ce2b83d430..c0ed9ea4380 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/StoreApi.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/StoreApi.md
@@ -1,12 +1,12 @@
# Org.OpenAPITools.Api.StoreApi
-All URIs are relative to *http://petstore.swagger.io/v2*
+All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**DeleteOrder**](StoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
+[**DeleteOrder**](StoreApi.md#deleteorder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
[**GetInventory**](StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
-[**GetOrderById**](StoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID
+[**GetOrderById**](StoreApi.md#getorderbyid) | **GET** /store/order/{order_id} | Find purchase order by ID
[**PlaceOrder**](StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
@@ -33,7 +33,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
+ config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new StoreApi(config);
var orderId = orderId_example; // string | ID of the order that needs to be deleted
@@ -103,7 +103,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
+ config.BasePath = "http://petstore.swagger.io:80/v2";
// Configure API key authorization: api_key
config.AddApiKey("api_key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
@@ -174,7 +174,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
+ config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new StoreApi(config);
var orderId = 789; // long | ID of pet that needs to be fetched
@@ -244,7 +244,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
+ config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new StoreApi(config);
var order = new Order(); // Order | order placed for purchasing the pet
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Tag.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Tag.md
index 319a2b6c745..718effdb02a 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Tag.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Tag.md
@@ -1,5 +1,4 @@
# Org.OpenAPITools.Model.Tag
-A tag for a pet
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Triangle.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Triangle.md
new file mode 100644
index 00000000000..6578de98039
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Triangle.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/TriangleInterface.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/TriangleInterface.md
new file mode 100644
index 00000000000..c354aa04761
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/TriangleInterface.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/User.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/User.md
index d2cc8c29e42..a6b2889dc60 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/User.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/User.md
@@ -1,5 +1,4 @@
# Org.OpenAPITools.Model.User
-A User who is purchasing from the pet store
## Properties
Name | Type | Description | Notes
@@ -12,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)
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/UserApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/UserApi.md
index b87e345d6bd..73b2c545a54 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/UserApi.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/UserApi.md
@@ -1,6 +1,6 @@
# Org.OpenAPITools.Api.UserApi
-All URIs are relative to *http://petstore.swagger.io/v2*
+All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
@@ -37,12 +37,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
- // Configure API key authorization: api_key
- config.AddApiKey("api_key", "YOUR_API_KEY");
- // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
- // config.AddApiKeyPrefix("api_key", "Bearer");
-
+ config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new UserApi(config);
var user = new User(); // User | Created user object
@@ -74,7 +69,7 @@ void (empty response body)
### Authorization
-[api_key](../README.md#api_key)
+No authorization required
### HTTP request headers
@@ -109,12 +104,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
- // Configure API key authorization: api_key
- config.AddApiKey("api_key", "YOUR_API_KEY");
- // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
- // config.AddApiKeyPrefix("api_key", "Bearer");
-
+ config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new UserApi(config);
var user = new List(); // List | List of user object
@@ -146,7 +136,7 @@ void (empty response body)
### Authorization
-[api_key](../README.md#api_key)
+No authorization required
### HTTP request headers
@@ -181,12 +171,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
- // Configure API key authorization: api_key
- config.AddApiKey("api_key", "YOUR_API_KEY");
- // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
- // config.AddApiKeyPrefix("api_key", "Bearer");
-
+ config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new UserApi(config);
var user = new List(); // List | List of user object
@@ -218,7 +203,7 @@ void (empty response body)
### Authorization
-[api_key](../README.md#api_key)
+No authorization required
### HTTP request headers
@@ -255,12 +240,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
- // Configure API key authorization: api_key
- config.AddApiKey("api_key", "YOUR_API_KEY");
- // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
- // config.AddApiKeyPrefix("api_key", "Bearer");
-
+ config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new UserApi(config);
var username = username_example; // string | The name that needs to be deleted
@@ -292,7 +272,7 @@ void (empty response body)
### Authorization
-[api_key](../README.md#api_key)
+No authorization required
### HTTP request headers
@@ -328,7 +308,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
+ config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new UserApi(config);
var username = username_example; // string | The name that needs to be fetched. Use user1 for testing.
@@ -398,7 +378,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
+ config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new UserApi(config);
var username = username_example; // string | The user name for login
var password = password_example; // string | The password for login in clear text
@@ -443,7 +423,7 @@ No authorization required
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | successful operation | * Set-Cookie - Cookie authentication key for use with the `api_key` apiKey authentication.
* X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when toekn expires
|
+| **200** | successful operation | * X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
|
| **400** | Invalid username/password supplied | - |
[[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)
@@ -469,12 +449,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
- // Configure API key authorization: api_key
- config.AddApiKey("api_key", "YOUR_API_KEY");
- // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
- // config.AddApiKeyPrefix("api_key", "Bearer");
-
+ config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new UserApi(config);
try
@@ -502,7 +477,7 @@ void (empty response body)
### Authorization
-[api_key](../README.md#api_key)
+No authorization required
### HTTP request headers
@@ -539,12 +514,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
- config.BasePath = "http://petstore.swagger.io/v2";
- // Configure API key authorization: api_key
- config.AddApiKey("api_key", "YOUR_API_KEY");
- // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
- // config.AddApiKeyPrefix("api_key", "Bearer");
-
+ config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new UserApi(config);
var username = username_example; // string | name that need to be deleted
var user = new User(); // User | Updated user object
@@ -578,7 +548,7 @@ void (empty response body)
### Authorization
-[api_key](../README.md#api_key)
+No authorization required
### HTTP request headers
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Whale.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Whale.md
new file mode 100644
index 00000000000..cd60de874dc
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Whale.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Zebra.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Zebra.md
new file mode 100644
index 00000000000..48da462bd08
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Zebra.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)
+
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/AnotherFakeApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/AnotherFakeApiTests.cs
new file mode 100644
index 00000000000..1d46982928d
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/AnotherFakeApiTests.cs
@@ -0,0 +1,69 @@
+/*
+ * 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.IO;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Reflection;
+using RestSharp;
+using Xunit;
+
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Api;
+// uncomment below to import models
+//using Org.OpenAPITools.Model;
+
+namespace Org.OpenAPITools.Test.Api
+{
+ ///
+ /// Class for testing AnotherFakeApi
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the API endpoint.
+ ///
+ public class AnotherFakeApiTests : IDisposable
+ {
+ private AnotherFakeApi instance;
+
+ public AnotherFakeApiTests()
+ {
+ instance = new AnotherFakeApi();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of AnotherFakeApi
+ ///
+ [Fact]
+ public void InstanceTest()
+ {
+ // TODO uncomment below to test 'IsType' AnotherFakeApi
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test Call123TestSpecialTags
+ ///
+ [Fact]
+ public void Call123TestSpecialTagsTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //ModelClient modelClient = null;
+ //var response = instance.Call123TestSpecialTags(modelClient);
+ //Assert.IsType(response);
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs
new file mode 100644
index 00000000000..76a930092ba
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs
@@ -0,0 +1,68 @@
+/*
+ * 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.IO;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Reflection;
+using RestSharp;
+using Xunit;
+
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Api;
+// uncomment below to import models
+//using Org.OpenAPITools.Model;
+
+namespace Org.OpenAPITools.Test.Api
+{
+ ///
+ /// Class for testing DefaultApi
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the API endpoint.
+ ///
+ public class DefaultApiTests : IDisposable
+ {
+ private DefaultApi instance;
+
+ public DefaultApiTests()
+ {
+ instance = new DefaultApi();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of DefaultApi
+ ///
+ [Fact]
+ public void InstanceTest()
+ {
+ // TODO uncomment below to test 'IsType' DefaultApi
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test FooGet
+ ///
+ [Fact]
+ public void FooGetTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //var response = instance.FooGet();
+ //Assert.IsType(response);
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs
new file mode 100644
index 00000000000..994cd46d38a
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs
@@ -0,0 +1,258 @@
+/*
+ * 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.IO;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Reflection;
+using RestSharp;
+using Xunit;
+
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Api;
+// uncomment below to import models
+//using Org.OpenAPITools.Model;
+
+namespace Org.OpenAPITools.Test.Api
+{
+ ///
+ /// Class for testing FakeApi
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the API endpoint.
+ ///
+ public class FakeApiTests : IDisposable
+ {
+ private FakeApi instance;
+
+ public FakeApiTests()
+ {
+ instance = new FakeApi();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of FakeApi
+ ///
+ [Fact]
+ public void InstanceTest()
+ {
+ // TODO uncomment below to test 'IsType' FakeApi
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test FakeHealthGet
+ ///
+ [Fact]
+ public void FakeHealthGetTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //var response = instance.FakeHealthGet();
+ //Assert.IsType(response);
+ }
+
+ ///
+ /// Test FakeOuterBooleanSerialize
+ ///
+ [Fact]
+ public void FakeOuterBooleanSerializeTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //bool? body = null;
+ //var response = instance.FakeOuterBooleanSerialize(body);
+ //Assert.IsType(response);
+ }
+
+ ///
+ /// Test FakeOuterCompositeSerialize
+ ///
+ [Fact]
+ public void FakeOuterCompositeSerializeTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //OuterComposite outerComposite = null;
+ //var response = instance.FakeOuterCompositeSerialize(outerComposite);
+ //Assert.IsType(response);
+ }
+
+ ///
+ /// Test FakeOuterNumberSerialize
+ ///
+ [Fact]
+ public void FakeOuterNumberSerializeTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //decimal? body = null;
+ //var response = instance.FakeOuterNumberSerialize(body);
+ //Assert.IsType(response);
+ }
+
+ ///
+ /// Test FakeOuterStringSerialize
+ ///
+ [Fact]
+ public void FakeOuterStringSerializeTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //string body = null;
+ //var response = instance.FakeOuterStringSerialize(body);
+ //Assert.IsType(response);
+ }
+
+ ///
+ /// Test GetArrayOfEnums
+ ///
+ [Fact]
+ public void GetArrayOfEnumsTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //var response = instance.GetArrayOfEnums();
+ //Assert.IsType>(response);
+ }
+
+ ///
+ /// Test TestBodyWithFileSchema
+ ///
+ [Fact]
+ public void TestBodyWithFileSchemaTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //FileSchemaTestClass fileSchemaTestClass = null;
+ //instance.TestBodyWithFileSchema(fileSchemaTestClass);
+ }
+
+ ///
+ /// Test TestBodyWithQueryParams
+ ///
+ [Fact]
+ public void TestBodyWithQueryParamsTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //string query = null;
+ //User user = null;
+ //instance.TestBodyWithQueryParams(query, user);
+ }
+
+ ///
+ /// Test TestClientModel
+ ///
+ [Fact]
+ public void TestClientModelTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //ModelClient modelClient = null;
+ //var response = instance.TestClientModel(modelClient);
+ //Assert.IsType(response);
+ }
+
+ ///
+ /// Test TestEndpointParameters
+ ///
+ [Fact]
+ public void TestEndpointParametersTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //decimal number = null;
+ //double _double = null;
+ //string patternWithoutDelimiter = null;
+ //byte[] _byte = null;
+ //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;
+ //instance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
+ }
+
+ ///
+ /// Test TestEnumParameters
+ ///
+ [Fact]
+ public void TestEnumParametersTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //List enumHeaderStringArray = null;
+ //string enumHeaderString = null;
+ //List enumQueryStringArray = null;
+ //string enumQueryString = null;
+ //int? enumQueryInteger = null;
+ //double? enumQueryDouble = null;
+ //List enumFormStringArray = null;
+ //string enumFormString = null;
+ //instance.TestEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
+ }
+
+ ///
+ /// Test TestGroupParameters
+ ///
+ [Fact]
+ public void TestGroupParametersTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //int requiredStringGroup = null;
+ //bool requiredBooleanGroup = null;
+ //long requiredInt64Group = null;
+ //int? stringGroup = null;
+ //bool? booleanGroup = null;
+ //long? int64Group = null;
+ //instance.TestGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
+ }
+
+ ///
+ /// Test TestInlineAdditionalProperties
+ ///
+ [Fact]
+ public void TestInlineAdditionalPropertiesTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //Dictionary requestBody = null;
+ //instance.TestInlineAdditionalProperties(requestBody);
+ }
+
+ ///
+ /// Test TestJsonFormData
+ ///
+ [Fact]
+ public void TestJsonFormDataTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //string param = null;
+ //string param2 = null;
+ //instance.TestJsonFormData(param, param2);
+ }
+
+ ///
+ /// Test TestQueryParameterCollectionFormat
+ ///
+ [Fact]
+ public void TestQueryParameterCollectionFormatTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //List pipe = null;
+ //List ioutil = null;
+ //List http = null;
+ //List url = null;
+ //List context = null;
+ //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/FakeClassnameTags123ApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/FakeClassnameTags123ApiTests.cs
new file mode 100644
index 00000000000..bbfd4a586e7
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/FakeClassnameTags123ApiTests.cs
@@ -0,0 +1,69 @@
+/*
+ * 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.IO;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Reflection;
+using RestSharp;
+using Xunit;
+
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Api;
+// uncomment below to import models
+//using Org.OpenAPITools.Model;
+
+namespace Org.OpenAPITools.Test.Api
+{
+ ///
+ /// Class for testing FakeClassnameTags123Api
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the API endpoint.
+ ///
+ public class FakeClassnameTags123ApiTests : IDisposable
+ {
+ private FakeClassnameTags123Api instance;
+
+ public FakeClassnameTags123ApiTests()
+ {
+ instance = new FakeClassnameTags123Api();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of FakeClassnameTags123Api
+ ///
+ [Fact]
+ public void InstanceTest()
+ {
+ // TODO uncomment below to test 'IsType' FakeClassnameTags123Api
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test TestClassname
+ ///
+ [Fact]
+ public void TestClassnameTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //ModelClient modelClient = null;
+ //var response = instance.TestClassname(modelClient);
+ //Assert.IsType(response);
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs
new file mode 100644
index 00000000000..9ab029ed097
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs
@@ -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 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.Model
+{
+ ///
+ /// Class for testing AdditionalPropertiesClass
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class AdditionalPropertiesClassTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for AdditionalPropertiesClass
+ //private AdditionalPropertiesClass instance;
+
+ public AdditionalPropertiesClassTests()
+ {
+ // TODO uncomment below to create an instance of AdditionalPropertiesClass
+ //instance = new AdditionalPropertiesClass();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of AdditionalPropertiesClass
+ ///
+ [Fact]
+ public void AdditionalPropertiesClassInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" AdditionalPropertiesClass
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'MapProperty'
+ ///
+ [Fact]
+ public void MapPropertyTest()
+ {
+ // TODO unit test for the property 'MapProperty'
+ }
+ ///
+ /// Test the property 'MapOfMapProperty'
+ ///
+ [Fact]
+ public void MapOfMapPropertyTest()
+ {
+ // TODO unit test for the property 'MapOfMapProperty'
+ }
+ ///
+ /// Test the property 'Anytype1'
+ ///
+ [Fact]
+ public void Anytype1Test()
+ {
+ // TODO unit test for the property 'Anytype1'
+ }
+ ///
+ /// Test the property 'MapWithUndeclaredPropertiesAnytype1'
+ ///
+ [Fact]
+ public void MapWithUndeclaredPropertiesAnytype1Test()
+ {
+ // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype1'
+ }
+ ///
+ /// Test the property 'MapWithUndeclaredPropertiesAnytype2'
+ ///
+ [Fact]
+ public void MapWithUndeclaredPropertiesAnytype2Test()
+ {
+ // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype2'
+ }
+ ///
+ /// Test the property 'MapWithUndeclaredPropertiesAnytype3'
+ ///
+ [Fact]
+ public void MapWithUndeclaredPropertiesAnytype3Test()
+ {
+ // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype3'
+ }
+ ///
+ /// Test the property 'EmptyMap'
+ ///
+ [Fact]
+ public void EmptyMapTest()
+ {
+ // TODO unit test for the property 'EmptyMap'
+ }
+ ///
+ /// Test the property 'MapWithUndeclaredPropertiesString'
+ ///
+ [Fact]
+ public void MapWithUndeclaredPropertiesStringTest()
+ {
+ // TODO unit test for the property 'MapWithUndeclaredPropertiesString'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/AnimalTests.cs
new file mode 100644
index 00000000000..291231a91be
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/AnimalTests.cs
@@ -0,0 +1,96 @@
+/*
+ * 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.Model
+{
+ ///
+ /// Class for testing Animal
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class AnimalTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for Animal
+ //private Animal instance;
+
+ public AnimalTests()
+ {
+ // TODO uncomment below to create an instance of Animal
+ //instance = new Animal();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of Animal
+ ///
+ [Fact]
+ public void AnimalInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Animal
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test deserialize a Dog from type Animal
+ ///
+ [Fact]
+ public void DogDeserializeFromAnimalTest()
+ {
+ // TODO uncomment below to test deserialize a Dog from type Animal
+ //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson()));
+ }
+ ///
+ /// Test deserialize a Cat from type Animal
+ ///
+ [Fact]
+ public void CatDeserializeFromAnimalTest()
+ {
+ // TODO uncomment below to test deserialize a Cat from type Animal
+ //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson()));
+ }
+
+ ///
+ /// Test the property 'ClassName'
+ ///
+ [Fact]
+ public void ClassNameTest()
+ {
+ // TODO unit test for the property 'ClassName'
+ }
+ ///
+ /// Test the property 'Color'
+ ///
+ [Fact]
+ public void ColorTest()
+ {
+ // TODO unit test for the property 'Color'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs
new file mode 100644
index 00000000000..f945f659368
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing AppleReq
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of AppleReq
+ ///
+ [Fact]
+ public void AppleReqInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" AppleReq
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Cultivar'
+ ///
+ [Fact]
+ public void CultivarTest()
+ {
+ // TODO unit test for the property 'Cultivar'
+ }
+ ///
+ /// Test the property 'Mealy'
+ ///
+ [Fact]
+ public void MealyTest()
+ {
+ // TODO unit test for the property 'Mealy'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/AppleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/AppleTests.cs
new file mode 100644
index 00000000000..468d60184ad
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/AppleTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing Apple
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of Apple
+ ///
+ [Fact]
+ public void AppleInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Apple
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Cultivar'
+ ///
+ [Fact]
+ public void CultivarTest()
+ {
+ // TODO unit test for the property 'Cultivar'
+ }
+ ///
+ /// Test the property 'Origin'
+ ///
+ [Fact]
+ public void OriginTest()
+ {
+ // TODO unit test for the property 'Origin'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs
new file mode 100644
index 00000000000..0b259d7d391
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing ArrayOfArrayOfNumberOnly
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class ArrayOfArrayOfNumberOnlyTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for ArrayOfArrayOfNumberOnly
+ //private ArrayOfArrayOfNumberOnly instance;
+
+ public ArrayOfArrayOfNumberOnlyTests()
+ {
+ // TODO uncomment below to create an instance of ArrayOfArrayOfNumberOnly
+ //instance = new ArrayOfArrayOfNumberOnly();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of ArrayOfArrayOfNumberOnly
+ ///
+ [Fact]
+ public void ArrayOfArrayOfNumberOnlyInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" ArrayOfArrayOfNumberOnly
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'ArrayArrayNumber'
+ ///
+ [Fact]
+ public void ArrayArrayNumberTest()
+ {
+ // TODO unit test for the property 'ArrayArrayNumber'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs
new file mode 100644
index 00000000000..27f312ad25f
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing ArrayOfNumberOnly
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class ArrayOfNumberOnlyTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for ArrayOfNumberOnly
+ //private ArrayOfNumberOnly instance;
+
+ public ArrayOfNumberOnlyTests()
+ {
+ // TODO uncomment below to create an instance of ArrayOfNumberOnly
+ //instance = new ArrayOfNumberOnly();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of ArrayOfNumberOnly
+ ///
+ [Fact]
+ public void ArrayOfNumberOnlyInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" ArrayOfNumberOnly
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'ArrayNumber'
+ ///
+ [Fact]
+ public void ArrayNumberTest()
+ {
+ // TODO unit test for the property 'ArrayNumber'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs
new file mode 100644
index 00000000000..a433e8c87cf
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing ArrayTest
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class ArrayTestTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for ArrayTest
+ //private ArrayTest instance;
+
+ public ArrayTestTests()
+ {
+ // TODO uncomment below to create an instance of ArrayTest
+ //instance = new ArrayTest();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of ArrayTest
+ ///
+ [Fact]
+ public void ArrayTestInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" ArrayTest
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'ArrayOfString'
+ ///
+ [Fact]
+ public void ArrayOfStringTest()
+ {
+ // TODO unit test for the property 'ArrayOfString'
+ }
+ ///
+ /// Test the property 'ArrayArrayOfInteger'
+ ///
+ [Fact]
+ public void ArrayArrayOfIntegerTest()
+ {
+ // TODO unit test for the property 'ArrayArrayOfInteger'
+ }
+ ///
+ /// Test the property 'ArrayArrayOfModel'
+ ///
+ [Fact]
+ public void ArrayArrayOfModelTest()
+ {
+ // TODO unit test for the property 'ArrayArrayOfModel'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs
new file mode 100644
index 00000000000..8a6eeb82eee
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing BananaReq
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of BananaReq
+ ///
+ [Fact]
+ public void BananaReqInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" BananaReq
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'LengthCm'
+ ///
+ [Fact]
+ public void LengthCmTest()
+ {
+ // TODO unit test for the property 'LengthCm'
+ }
+ ///
+ /// Test the property 'Sweet'
+ ///
+ [Fact]
+ public void SweetTest()
+ {
+ // TODO unit test for the property 'Sweet'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/BananaTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/BananaTests.cs
new file mode 100644
index 00000000000..8d8cc376b03
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/BananaTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing Banana
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of Banana
+ ///
+ [Fact]
+ public void BananaInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Banana
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'LengthCm'
+ ///
+ [Fact]
+ public void LengthCmTest()
+ {
+ // TODO unit test for the property 'LengthCm'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs
new file mode 100644
index 00000000000..3cdccaa7595
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing BasquePig
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of BasquePig
+ ///
+ [Fact]
+ public void BasquePigInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" BasquePig
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'ClassName'
+ ///
+ [Fact]
+ public void ClassNameTest()
+ {
+ // TODO unit test for the property 'ClassName'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs
new file mode 100644
index 00000000000..185c83666fc
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs
@@ -0,0 +1,110 @@
+/*
+ * 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.Model
+{
+ ///
+ /// Class for testing Capitalization
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class CapitalizationTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for Capitalization
+ //private Capitalization instance;
+
+ public CapitalizationTests()
+ {
+ // TODO uncomment below to create an instance of Capitalization
+ //instance = new Capitalization();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of Capitalization
+ ///
+ [Fact]
+ public void CapitalizationInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Capitalization
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'SmallCamel'
+ ///
+ [Fact]
+ public void SmallCamelTest()
+ {
+ // TODO unit test for the property 'SmallCamel'
+ }
+ ///
+ /// Test the property 'CapitalCamel'
+ ///
+ [Fact]
+ public void CapitalCamelTest()
+ {
+ // TODO unit test for the property 'CapitalCamel'
+ }
+ ///
+ /// Test the property 'SmallSnake'
+ ///
+ [Fact]
+ public void SmallSnakeTest()
+ {
+ // TODO unit test for the property 'SmallSnake'
+ }
+ ///
+ /// Test the property 'CapitalSnake'
+ ///
+ [Fact]
+ public void CapitalSnakeTest()
+ {
+ // TODO unit test for the property 'CapitalSnake'
+ }
+ ///
+ /// Test the property 'SCAETHFlowPoints'
+ ///
+ [Fact]
+ public void SCAETHFlowPointsTest()
+ {
+ // TODO unit test for the property 'SCAETHFlowPoints'
+ }
+ ///
+ /// Test the property 'ATT_NAME'
+ ///
+ [Fact]
+ public void ATT_NAMETest()
+ {
+ // TODO unit test for the property 'ATT_NAME'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/CatAllOfTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/CatAllOfTests.cs
new file mode 100644
index 00000000000..fb51c28489c
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/CatAllOfTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing CatAllOf
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class CatAllOfTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for CatAllOf
+ //private CatAllOf instance;
+
+ public CatAllOfTests()
+ {
+ // TODO uncomment below to create an instance of CatAllOf
+ //instance = new CatAllOf();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of CatAllOf
+ ///
+ [Fact]
+ public void CatAllOfInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" CatAllOf
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Declawed'
+ ///
+ [Fact]
+ public void DeclawedTest()
+ {
+ // TODO unit test for the property 'Declawed'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/CatTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/CatTests.cs
new file mode 100644
index 00000000000..701ba760282
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/CatTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing Cat
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class CatTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for Cat
+ //private Cat instance;
+
+ public CatTests()
+ {
+ // TODO uncomment below to create an instance of Cat
+ //instance = new Cat();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of Cat
+ ///
+ [Fact]
+ public void CatInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Cat
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Declawed'
+ ///
+ [Fact]
+ public void DeclawedTest()
+ {
+ // TODO unit test for the property 'Declawed'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ChildCatAllOfTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ChildCatAllOfTests.cs
new file mode 100644
index 00000000000..49a53932490
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ChildCatAllOfTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing ChildCatAllOf
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of ChildCatAllOf
+ ///
+ [Fact]
+ public void ChildCatAllOfInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" ChildCatAllOf
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Name'
+ ///
+ [Fact]
+ public void NameTest()
+ {
+ // TODO unit test for the property 'Name'
+ }
+ ///
+ /// Test the property 'PetType'
+ ///
+ [Fact]
+ public void PetTypeTest()
+ {
+ // TODO unit test for the property 'PetType'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs
new file mode 100644
index 00000000000..68566fd8d56
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing ChildCat
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of ChildCat
+ ///
+ [Fact]
+ public void ChildCatInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" ChildCat
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Name'
+ ///
+ [Fact]
+ public void NameTest()
+ {
+ // TODO unit test for the property 'Name'
+ }
+ ///
+ /// Test the property 'PetType'
+ ///
+ [Fact]
+ public void PetTypeTest()
+ {
+ // TODO unit test for the property 'PetType'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs
new file mode 100644
index 00000000000..d29472e83aa
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing ClassModel
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class ClassModelTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for ClassModel
+ //private ClassModel instance;
+
+ public ClassModelTests()
+ {
+ // TODO uncomment below to create an instance of ClassModel
+ //instance = new ClassModel();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of ClassModel
+ ///
+ [Fact]
+ public void ClassModelInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" ClassModel
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Class'
+ ///
+ [Fact]
+ public void ClassTest()
+ {
+ // TODO unit test for the property 'Class'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs
new file mode 100644
index 00000000000..b3529280c8d
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing ComplexQuadrilateral
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of ComplexQuadrilateral
+ ///
+ [Fact]
+ public void ComplexQuadrilateralInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" ComplexQuadrilateral
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'ShapeType'
+ ///
+ [Fact]
+ public void ShapeTypeTest()
+ {
+ // TODO unit test for the property 'ShapeType'
+ }
+ ///
+ /// Test the property 'QuadrilateralType'
+ ///
+ [Fact]
+ public void QuadrilateralTypeTest()
+ {
+ // TODO unit test for the property 'QuadrilateralType'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs
new file mode 100644
index 00000000000..572d9bffa79
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing DanishPig
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of DanishPig
+ ///
+ [Fact]
+ public void DanishPigInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" DanishPig
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'ClassName'
+ ///
+ [Fact]
+ public void ClassNameTest()
+ {
+ // TODO unit test for the property 'ClassName'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/DogAllOfTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/DogAllOfTests.cs
new file mode 100644
index 00000000000..b22a4442096
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/DogAllOfTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing DogAllOf
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class DogAllOfTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for DogAllOf
+ //private DogAllOf instance;
+
+ public DogAllOfTests()
+ {
+ // TODO uncomment below to create an instance of DogAllOf
+ //instance = new DogAllOf();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of DogAllOf
+ ///
+ [Fact]
+ public void DogAllOfInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" DogAllOf
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Breed'
+ ///
+ [Fact]
+ public void BreedTest()
+ {
+ // TODO unit test for the property 'Breed'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/DogTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/DogTests.cs
new file mode 100644
index 00000000000..992f93a51fd
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/DogTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing Dog
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class DogTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for Dog
+ //private Dog instance;
+
+ public DogTests()
+ {
+ // TODO uncomment below to create an instance of Dog
+ //instance = new Dog();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of Dog
+ ///
+ [Fact]
+ public void DogInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Dog
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Breed'
+ ///
+ [Fact]
+ public void BreedTest()
+ {
+ // TODO unit test for the property 'Breed'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/DrawingTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/DrawingTests.cs
new file mode 100644
index 00000000000..0709ad9eeb3
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/DrawingTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing Drawing
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of Drawing
+ ///
+ [Fact]
+ public void DrawingInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Drawing
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'MainShape'
+ ///
+ [Fact]
+ public void MainShapeTest()
+ {
+ // TODO unit test for the property 'MainShape'
+ }
+ ///
+ /// Test the property 'ShapeOrNull'
+ ///
+ [Fact]
+ public void ShapeOrNullTest()
+ {
+ // TODO unit test for the property 'ShapeOrNull'
+ }
+ ///
+ /// Test the property 'NullableShape'
+ ///
+ [Fact]
+ public void NullableShapeTest()
+ {
+ // TODO unit test for the property 'NullableShape'
+ }
+ ///
+ /// Test the property 'Shapes'
+ ///
+ [Fact]
+ public void ShapesTest()
+ {
+ // TODO unit test for the property 'Shapes'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs
new file mode 100644
index 00000000000..5779ca29477
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing EnumArrays
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class EnumArraysTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for EnumArrays
+ //private EnumArrays instance;
+
+ public EnumArraysTests()
+ {
+ // TODO uncomment below to create an instance of EnumArrays
+ //instance = new EnumArrays();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of EnumArrays
+ ///
+ [Fact]
+ public void EnumArraysInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" EnumArrays
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'JustSymbol'
+ ///
+ [Fact]
+ public void JustSymbolTest()
+ {
+ // TODO unit test for the property 'JustSymbol'
+ }
+ ///
+ /// Test the property 'ArrayEnum'
+ ///
+ [Fact]
+ public void ArrayEnumTest()
+ {
+ // TODO unit test for the property 'ArrayEnum'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs
new file mode 100644
index 00000000000..a17738c5cbc
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing EnumClass
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class EnumClassTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for EnumClass
+ //private EnumClass instance;
+
+ public EnumClassTests()
+ {
+ // TODO uncomment below to create an instance of EnumClass
+ //instance = new EnumClass();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of EnumClass
+ ///
+ [Fact]
+ public void EnumClassInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" EnumClass
+ //Assert.IsType(instance);
+ }
+
+
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs
new file mode 100644
index 00000000000..e2d84645c60
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs
@@ -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 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.Model
+{
+ ///
+ /// Class for testing EnumTest
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class EnumTestTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for EnumTest
+ //private EnumTest instance;
+
+ public EnumTestTests()
+ {
+ // TODO uncomment below to create an instance of EnumTest
+ //instance = new EnumTest();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of EnumTest
+ ///
+ [Fact]
+ public void EnumTestInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" EnumTest
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'EnumString'
+ ///
+ [Fact]
+ public void EnumStringTest()
+ {
+ // TODO unit test for the property 'EnumString'
+ }
+ ///
+ /// Test the property 'EnumStringRequired'
+ ///
+ [Fact]
+ public void EnumStringRequiredTest()
+ {
+ // TODO unit test for the property 'EnumStringRequired'
+ }
+ ///
+ /// Test the property 'EnumInteger'
+ ///
+ [Fact]
+ public void EnumIntegerTest()
+ {
+ // TODO unit test for the property 'EnumInteger'
+ }
+ ///
+ /// Test the property 'EnumNumber'
+ ///
+ [Fact]
+ public void EnumNumberTest()
+ {
+ // TODO unit test for the property 'EnumNumber'
+ }
+ ///
+ /// Test the property 'OuterEnum'
+ ///
+ [Fact]
+ public void OuterEnumTest()
+ {
+ // TODO unit test for the property 'OuterEnum'
+ }
+ ///
+ /// Test the property 'OuterEnumInteger'
+ ///
+ [Fact]
+ public void OuterEnumIntegerTest()
+ {
+ // TODO unit test for the property 'OuterEnumInteger'
+ }
+ ///
+ /// Test the property 'OuterEnumDefaultValue'
+ ///
+ [Fact]
+ public void OuterEnumDefaultValueTest()
+ {
+ // TODO unit test for the property 'OuterEnumDefaultValue'
+ }
+ ///
+ /// Test the property 'OuterEnumIntegerDefaultValue'
+ ///
+ [Fact]
+ public void OuterEnumIntegerDefaultValueTest()
+ {
+ // TODO unit test for the property 'OuterEnumIntegerDefaultValue'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs
new file mode 100644
index 00000000000..4663cb667de
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing EquilateralTriangle
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of EquilateralTriangle
+ ///
+ [Fact]
+ public void EquilateralTriangleInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" EquilateralTriangle
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'ShapeType'
+ ///
+ [Fact]
+ public void ShapeTypeTest()
+ {
+ // TODO unit test for the property 'ShapeType'
+ }
+ ///
+ /// Test the property 'TriangleType'
+ ///
+ [Fact]
+ public void TriangleTypeTest()
+ {
+ // TODO unit test for the property 'TriangleType'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs
new file mode 100644
index 00000000000..9f45b4fe89d
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing FileSchemaTestClass
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class FileSchemaTestClassTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for FileSchemaTestClass
+ //private FileSchemaTestClass instance;
+
+ public FileSchemaTestClassTests()
+ {
+ // TODO uncomment below to create an instance of FileSchemaTestClass
+ //instance = new FileSchemaTestClass();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of FileSchemaTestClass
+ ///
+ [Fact]
+ public void FileSchemaTestClassInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" FileSchemaTestClass
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'File'
+ ///
+ [Fact]
+ public void FileTest()
+ {
+ // TODO unit test for the property 'File'
+ }
+ ///
+ /// Test the property 'Files'
+ ///
+ [Fact]
+ public void FilesTest()
+ {
+ // TODO unit test for the property 'Files'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FileTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FileTests.cs
new file mode 100644
index 00000000000..761bb72a844
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FileTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing File
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class FileTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for File
+ //private File instance;
+
+ public FileTests()
+ {
+ // TODO uncomment below to create an instance of File
+ //instance = new File();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of File
+ ///
+ [Fact]
+ public void FileInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" File
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'SourceURI'
+ ///
+ [Fact]
+ public void SourceURITest()
+ {
+ // TODO unit test for the property 'SourceURI'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FooTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FooTests.cs
new file mode 100644
index 00000000000..0b6ed52edbd
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FooTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing Foo
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class FooTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for Foo
+ //private Foo instance;
+
+ public FooTests()
+ {
+ // TODO uncomment below to create an instance of Foo
+ //instance = new Foo();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of Foo
+ ///
+ [Fact]
+ public void FooInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Foo
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Bar'
+ ///
+ [Fact]
+ public void BarTest()
+ {
+ // TODO unit test for the property 'Bar'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs
new file mode 100644
index 00000000000..97332800e9a
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs
@@ -0,0 +1,190 @@
+/*
+ * 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.Model
+{
+ ///
+ /// Class for testing FormatTest
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class FormatTestTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for FormatTest
+ //private FormatTest instance;
+
+ public FormatTestTests()
+ {
+ // TODO uncomment below to create an instance of FormatTest
+ //instance = new FormatTest();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of FormatTest
+ ///
+ [Fact]
+ public void FormatTestInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" FormatTest
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Integer'
+ ///
+ [Fact]
+ public void IntegerTest()
+ {
+ // TODO unit test for the property 'Integer'
+ }
+ ///
+ /// Test the property 'Int32'
+ ///
+ [Fact]
+ public void Int32Test()
+ {
+ // TODO unit test for the property 'Int32'
+ }
+ ///
+ /// Test the property 'Int64'
+ ///
+ [Fact]
+ public void Int64Test()
+ {
+ // TODO unit test for the property 'Int64'
+ }
+ ///
+ /// Test the property 'Number'
+ ///
+ [Fact]
+ public void NumberTest()
+ {
+ // TODO unit test for the property 'Number'
+ }
+ ///
+ /// Test the property 'Float'
+ ///
+ [Fact]
+ public void FloatTest()
+ {
+ // TODO unit test for the property 'Float'
+ }
+ ///
+ /// Test the property 'Double'
+ ///
+ [Fact]
+ public void DoubleTest()
+ {
+ // TODO unit test for the property 'Double'
+ }
+ ///
+ /// Test the property 'Decimal'
+ ///
+ [Fact]
+ public void DecimalTest()
+ {
+ // TODO unit test for the property 'Decimal'
+ }
+ ///
+ /// Test the property 'String'
+ ///
+ [Fact]
+ public void StringTest()
+ {
+ // TODO unit test for the property 'String'
+ }
+ ///
+ /// Test the property 'Byte'
+ ///
+ [Fact]
+ public void ByteTest()
+ {
+ // TODO unit test for the property 'Byte'
+ }
+ ///
+ /// Test the property 'Binary'
+ ///
+ [Fact]
+ public void BinaryTest()
+ {
+ // TODO unit test for the property 'Binary'
+ }
+ ///
+ /// Test the property 'Date'
+ ///
+ [Fact]
+ public void DateTest()
+ {
+ // TODO unit test for the property 'Date'
+ }
+ ///
+ /// Test the property 'DateTime'
+ ///
+ [Fact]
+ public void DateTimeTest()
+ {
+ // TODO unit test for the property 'DateTime'
+ }
+ ///
+ /// Test the property 'Uuid'
+ ///
+ [Fact]
+ public void UuidTest()
+ {
+ // TODO unit test for the property 'Uuid'
+ }
+ ///
+ /// Test the property 'Password'
+ ///
+ [Fact]
+ public void PasswordTest()
+ {
+ // TODO unit test for the property 'Password'
+ }
+ ///
+ /// Test the property 'PatternWithDigits'
+ ///
+ [Fact]
+ public void PatternWithDigitsTest()
+ {
+ // TODO unit test for the property 'PatternWithDigits'
+ }
+ ///
+ /// Test the property 'PatternWithDigitsAndDelimiter'
+ ///
+ [Fact]
+ public void PatternWithDigitsAndDelimiterTest()
+ {
+ // TODO unit test for the property 'PatternWithDigitsAndDelimiter'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs
new file mode 100644
index 00000000000..5ea9e3ffc1d
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing FruitReq
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of FruitReq
+ ///
+ [Fact]
+ public void FruitReqInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" FruitReq
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Cultivar'
+ ///
+ [Fact]
+ public void CultivarTest()
+ {
+ // TODO unit test for the property 'Cultivar'
+ }
+ ///
+ /// Test the property 'Mealy'
+ ///
+ [Fact]
+ public void MealyTest()
+ {
+ // TODO unit test for the property 'Mealy'
+ }
+ ///
+ /// Test the property 'LengthCm'
+ ///
+ [Fact]
+ public void LengthCmTest()
+ {
+ // TODO unit test for the property 'LengthCm'
+ }
+ ///
+ /// Test the property 'Sweet'
+ ///
+ [Fact]
+ public void SweetTest()
+ {
+ // TODO unit test for the property 'Sweet'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FruitTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FruitTests.cs
new file mode 100644
index 00000000000..91e069bb42f
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/FruitTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing Fruit
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of Fruit
+ ///
+ [Fact]
+ public void FruitInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Fruit
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Color'
+ ///
+ [Fact]
+ public void ColorTest()
+ {
+ // TODO unit test for the property 'Color'
+ }
+ ///
+ /// Test the property 'Cultivar'
+ ///
+ [Fact]
+ public void CultivarTest()
+ {
+ // TODO unit test for the property 'Cultivar'
+ }
+ ///
+ /// Test the property 'Origin'
+ ///
+ [Fact]
+ public void OriginTest()
+ {
+ // TODO unit test for the property 'Origin'
+ }
+ ///
+ /// Test the property 'LengthCm'
+ ///
+ [Fact]
+ public void LengthCmTest()
+ {
+ // TODO unit test for the property 'LengthCm'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs
new file mode 100644
index 00000000000..08fb0e07a1c
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing GmFruit
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of GmFruit
+ ///
+ [Fact]
+ public void GmFruitInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" GmFruit
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Color'
+ ///
+ [Fact]
+ public void ColorTest()
+ {
+ // TODO unit test for the property 'Color'
+ }
+ ///
+ /// Test the property 'Cultivar'
+ ///
+ [Fact]
+ public void CultivarTest()
+ {
+ // TODO unit test for the property 'Cultivar'
+ }
+ ///
+ /// Test the property 'Origin'
+ ///
+ [Fact]
+ public void OriginTest()
+ {
+ // TODO unit test for the property 'Origin'
+ }
+ ///
+ /// Test the property 'LengthCm'
+ ///
+ [Fact]
+ public void LengthCmTest()
+ {
+ // TODO unit test for the property 'LengthCm'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs
new file mode 100644
index 00000000000..75f4fd8b0e5
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing GrandparentAnimal
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of GrandparentAnimal
+ ///
+ [Fact]
+ public void GrandparentAnimalInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" GrandparentAnimal
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test deserialize a ParentPet from type GrandparentAnimal
+ ///
+ [Fact]
+ public void ParentPetDeserializeFromGrandparentAnimalTest()
+ {
+ // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal
+ //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson()));
+ }
+ ///
+ /// Test deserialize a ChildCat from type ParentPet
+ ///
+ [Fact]
+ public void ChildCatDeserializeFromParentPetTest()
+ {
+ // TODO uncomment below to test deserialize a ChildCat from type ParentPet
+ //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson()));
+ }
+
+ ///
+ /// Test the property 'PetType'
+ ///
+ [Fact]
+ public void PetTypeTest()
+ {
+ // TODO unit test for the property 'PetType'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs
new file mode 100644
index 00000000000..651a9f0ce30
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing HasOnlyReadOnly
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class HasOnlyReadOnlyTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for HasOnlyReadOnly
+ //private HasOnlyReadOnly instance;
+
+ public HasOnlyReadOnlyTests()
+ {
+ // TODO uncomment below to create an instance of HasOnlyReadOnly
+ //instance = new HasOnlyReadOnly();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of HasOnlyReadOnly
+ ///
+ [Fact]
+ public void HasOnlyReadOnlyInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" HasOnlyReadOnly
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Bar'
+ ///
+ [Fact]
+ public void BarTest()
+ {
+ // TODO unit test for the property 'Bar'
+ }
+ ///
+ /// Test the property 'Foo'
+ ///
+ [Fact]
+ public void FooTest()
+ {
+ // TODO unit test for the property 'Foo'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs
new file mode 100644
index 00000000000..857190a3334
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing HealthCheckResult
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class HealthCheckResultTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for HealthCheckResult
+ //private HealthCheckResult instance;
+
+ public HealthCheckResultTests()
+ {
+ // TODO uncomment below to create an instance of HealthCheckResult
+ //instance = new HealthCheckResult();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of HealthCheckResult
+ ///
+ [Fact]
+ public void HealthCheckResultInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" HealthCheckResult
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'NullableMessage'
+ ///
+ [Fact]
+ public void NullableMessageTest()
+ {
+ // TODO unit test for the property 'NullableMessage'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs
new file mode 100644
index 00000000000..7731f80c16d
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing InlineResponseDefault
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class InlineResponseDefaultTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for InlineResponseDefault
+ //private InlineResponseDefault instance;
+
+ public InlineResponseDefaultTests()
+ {
+ // TODO uncomment below to create an instance of InlineResponseDefault
+ //instance = new InlineResponseDefault();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of InlineResponseDefault
+ ///
+ [Fact]
+ public void InlineResponseDefaultInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" InlineResponseDefault
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'String'
+ ///
+ [Fact]
+ public void StringTest()
+ {
+ // TODO unit test for the property 'String'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs
new file mode 100644
index 00000000000..755c417cc54
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing IsoscelesTriangle
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of IsoscelesTriangle
+ ///
+ [Fact]
+ public void IsoscelesTriangleInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" IsoscelesTriangle
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'ShapeType'
+ ///
+ [Fact]
+ public void ShapeTypeTest()
+ {
+ // TODO unit test for the property 'ShapeType'
+ }
+ ///
+ /// Test the property 'TriangleType'
+ ///
+ [Fact]
+ public void TriangleTypeTest()
+ {
+ // TODO unit test for the property 'TriangleType'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ListTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ListTests.cs
new file mode 100644
index 00000000000..2ed828d0520
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ListTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing List
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class ListTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for List
+ //private List instance;
+
+ public ListTests()
+ {
+ // TODO uncomment below to create an instance of List
+ //instance = new List();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of List
+ ///
+ [Fact]
+ public void ListInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" List
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property '_123List'
+ ///
+ [Fact]
+ public void _123ListTest()
+ {
+ // TODO unit test for the property '_123List'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/MammalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/MammalTests.cs
new file mode 100644
index 00000000000..7b46cbf0645
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/MammalTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing Mammal
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of Mammal
+ ///
+ [Fact]
+ public void MammalInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Mammal
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'HasBaleen'
+ ///
+ [Fact]
+ public void HasBaleenTest()
+ {
+ // TODO unit test for the property 'HasBaleen'
+ }
+ ///
+ /// Test the property 'HasTeeth'
+ ///
+ [Fact]
+ public void HasTeethTest()
+ {
+ // TODO unit test for the property 'HasTeeth'
+ }
+ ///
+ /// Test the property 'ClassName'
+ ///
+ [Fact]
+ public void ClassNameTest()
+ {
+ // TODO unit test for the property 'ClassName'
+ }
+ ///
+ /// Test the property 'Type'
+ ///
+ [Fact]
+ public void TypeTest()
+ {
+ // TODO unit test for the property 'Type'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/MapTestTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/MapTestTests.cs
new file mode 100644
index 00000000000..20036e1c905
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/MapTestTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing MapTest
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class MapTestTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for MapTest
+ //private MapTest instance;
+
+ public MapTestTests()
+ {
+ // TODO uncomment below to create an instance of MapTest
+ //instance = new MapTest();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of MapTest
+ ///
+ [Fact]
+ public void MapTestInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" MapTest
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'MapMapOfString'
+ ///
+ [Fact]
+ public void MapMapOfStringTest()
+ {
+ // TODO unit test for the property 'MapMapOfString'
+ }
+ ///
+ /// Test the property 'MapOfEnumString'
+ ///
+ [Fact]
+ public void MapOfEnumStringTest()
+ {
+ // TODO unit test for the property 'MapOfEnumString'
+ }
+ ///
+ /// Test the property 'DirectMap'
+ ///
+ [Fact]
+ public void DirectMapTest()
+ {
+ // TODO unit test for the property 'DirectMap'
+ }
+ ///
+ /// Test the property 'IndirectMap'
+ ///
+ [Fact]
+ public void IndirectMapTest()
+ {
+ // TODO unit test for the property 'IndirectMap'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs
new file mode 100644
index 00000000000..f56cd715f45
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing MixedPropertiesAndAdditionalPropertiesClass
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class MixedPropertiesAndAdditionalPropertiesClassTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for MixedPropertiesAndAdditionalPropertiesClass
+ //private MixedPropertiesAndAdditionalPropertiesClass instance;
+
+ public MixedPropertiesAndAdditionalPropertiesClassTests()
+ {
+ // TODO uncomment below to create an instance of MixedPropertiesAndAdditionalPropertiesClass
+ //instance = new MixedPropertiesAndAdditionalPropertiesClass();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of MixedPropertiesAndAdditionalPropertiesClass
+ ///
+ [Fact]
+ public void MixedPropertiesAndAdditionalPropertiesClassInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" MixedPropertiesAndAdditionalPropertiesClass
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Uuid'
+ ///
+ [Fact]
+ public void UuidTest()
+ {
+ // TODO unit test for the property 'Uuid'
+ }
+ ///
+ /// Test the property 'DateTime'
+ ///
+ [Fact]
+ public void DateTimeTest()
+ {
+ // TODO unit test for the property 'DateTime'
+ }
+ ///
+ /// Test the property 'Map'
+ ///
+ [Fact]
+ public void MapTest()
+ {
+ // TODO unit test for the property 'Map'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs
new file mode 100644
index 00000000000..e25478618f2
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing Model200Response
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class Model200ResponseTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for Model200Response
+ //private Model200Response instance;
+
+ public Model200ResponseTests()
+ {
+ // TODO uncomment below to create an instance of Model200Response
+ //instance = new Model200Response();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of Model200Response
+ ///
+ [Fact]
+ public void Model200ResponseInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Model200Response
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Name'
+ ///
+ [Fact]
+ public void NameTest()
+ {
+ // TODO unit test for the property 'Name'
+ }
+ ///
+ /// Test the property 'Class'
+ ///
+ [Fact]
+ public void ClassTest()
+ {
+ // TODO unit test for the property 'Class'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs
new file mode 100644
index 00000000000..8a544e417fe
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing ModelClient
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class ModelClientTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for ModelClient
+ //private ModelClient instance;
+
+ public ModelClientTests()
+ {
+ // TODO uncomment below to create an instance of ModelClient
+ //instance = new ModelClient();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of ModelClient
+ ///
+ [Fact]
+ public void ModelClientInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" ModelClient
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property '__Client'
+ ///
+ [Fact]
+ public void __ClientTest()
+ {
+ // TODO unit test for the property '__Client'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/NameTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/NameTests.cs
new file mode 100644
index 00000000000..c390049e66d
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/NameTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing Name
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class NameTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for Name
+ //private Name instance;
+
+ public NameTests()
+ {
+ // TODO uncomment below to create an instance of Name
+ //instance = new Name();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of Name
+ ///
+ [Fact]
+ public void NameInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Name
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property '_Name'
+ ///
+ [Fact]
+ public void _NameTest()
+ {
+ // TODO unit test for the property '_Name'
+ }
+ ///
+ /// Test the property 'SnakeCase'
+ ///
+ [Fact]
+ public void SnakeCaseTest()
+ {
+ // TODO unit test for the property 'SnakeCase'
+ }
+ ///
+ /// Test the property 'Property'
+ ///
+ [Fact]
+ public void PropertyTest()
+ {
+ // TODO unit test for the property 'Property'
+ }
+ ///
+ /// Test the property '_123Number'
+ ///
+ [Fact]
+ public void _123NumberTest()
+ {
+ // TODO unit test for the property '_123Number'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs
new file mode 100644
index 00000000000..8f00505612a
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs
@@ -0,0 +1,158 @@
+/*
+ * 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.Model
+{
+ ///
+ /// Class for testing NullableClass
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class NullableClassTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for NullableClass
+ //private NullableClass instance;
+
+ public NullableClassTests()
+ {
+ // TODO uncomment below to create an instance of NullableClass
+ //instance = new NullableClass();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of NullableClass
+ ///
+ [Fact]
+ public void NullableClassInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" NullableClass
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'IntegerProp'
+ ///
+ [Fact]
+ public void IntegerPropTest()
+ {
+ // TODO unit test for the property 'IntegerProp'
+ }
+ ///
+ /// Test the property 'NumberProp'
+ ///
+ [Fact]
+ public void NumberPropTest()
+ {
+ // TODO unit test for the property 'NumberProp'
+ }
+ ///
+ /// Test the property 'BooleanProp'
+ ///
+ [Fact]
+ public void BooleanPropTest()
+ {
+ // TODO unit test for the property 'BooleanProp'
+ }
+ ///
+ /// Test the property 'StringProp'
+ ///
+ [Fact]
+ public void StringPropTest()
+ {
+ // TODO unit test for the property 'StringProp'
+ }
+ ///
+ /// Test the property 'DateProp'
+ ///
+ [Fact]
+ public void DatePropTest()
+ {
+ // TODO unit test for the property 'DateProp'
+ }
+ ///
+ /// Test the property 'DatetimeProp'
+ ///
+ [Fact]
+ public void DatetimePropTest()
+ {
+ // TODO unit test for the property 'DatetimeProp'
+ }
+ ///
+ /// Test the property 'ArrayNullableProp'
+ ///
+ [Fact]
+ public void ArrayNullablePropTest()
+ {
+ // TODO unit test for the property 'ArrayNullableProp'
+ }
+ ///
+ /// Test the property 'ArrayAndItemsNullableProp'
+ ///
+ [Fact]
+ public void ArrayAndItemsNullablePropTest()
+ {
+ // TODO unit test for the property 'ArrayAndItemsNullableProp'
+ }
+ ///
+ /// Test the property 'ArrayItemsNullable'
+ ///
+ [Fact]
+ public void ArrayItemsNullableTest()
+ {
+ // TODO unit test for the property 'ArrayItemsNullable'
+ }
+ ///
+ /// Test the property 'ObjectNullableProp'
+ ///
+ [Fact]
+ public void ObjectNullablePropTest()
+ {
+ // TODO unit test for the property 'ObjectNullableProp'
+ }
+ ///
+ /// Test the property 'ObjectAndItemsNullableProp'
+ ///
+ [Fact]
+ public void ObjectAndItemsNullablePropTest()
+ {
+ // TODO unit test for the property 'ObjectAndItemsNullableProp'
+ }
+ ///
+ /// Test the property 'ObjectItemsNullable'
+ ///
+ [Fact]
+ public void ObjectItemsNullableTest()
+ {
+ // TODO unit test for the property 'ObjectItemsNullable'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs
new file mode 100644
index 00000000000..5662f91d6e6
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing NullableShape
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of NullableShape
+ ///
+ [Fact]
+ public void NullableShapeInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" NullableShape
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'ShapeType'
+ ///
+ [Fact]
+ public void ShapeTypeTest()
+ {
+ // TODO unit test for the property 'ShapeType'
+ }
+ ///
+ /// Test the property 'QuadrilateralType'
+ ///
+ [Fact]
+ public void QuadrilateralTypeTest()
+ {
+ // TODO unit test for the property 'QuadrilateralType'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs
new file mode 100644
index 00000000000..3a06cb020b2
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing NumberOnly
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class NumberOnlyTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for NumberOnly
+ //private NumberOnly instance;
+
+ public NumberOnlyTests()
+ {
+ // TODO uncomment below to create an instance of NumberOnly
+ //instance = new NumberOnly();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of NumberOnly
+ ///
+ [Fact]
+ public void NumberOnlyInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" NumberOnly
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'JustNumber'
+ ///
+ [Fact]
+ public void JustNumberTest()
+ {
+ // TODO unit test for the property 'JustNumber'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs
new file mode 100644
index 00000000000..2efda0db59c
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing OuterComposite
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class OuterCompositeTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for OuterComposite
+ //private OuterComposite instance;
+
+ public OuterCompositeTests()
+ {
+ // TODO uncomment below to create an instance of OuterComposite
+ //instance = new OuterComposite();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of OuterComposite
+ ///
+ [Fact]
+ public void OuterCompositeInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" OuterComposite
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'MyNumber'
+ ///
+ [Fact]
+ public void MyNumberTest()
+ {
+ // TODO unit test for the property 'MyNumber'
+ }
+ ///
+ /// Test the property 'MyString'
+ ///
+ [Fact]
+ public void MyStringTest()
+ {
+ // TODO unit test for the property 'MyString'
+ }
+ ///
+ /// Test the property 'MyBoolean'
+ ///
+ [Fact]
+ public void MyBooleanTest()
+ {
+ // TODO unit test for the property 'MyBoolean'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs
new file mode 100644
index 00000000000..986fff774c4
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing OuterEnumDefaultValue
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class OuterEnumDefaultValueTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for OuterEnumDefaultValue
+ //private OuterEnumDefaultValue instance;
+
+ public OuterEnumDefaultValueTests()
+ {
+ // TODO uncomment below to create an instance of OuterEnumDefaultValue
+ //instance = new OuterEnumDefaultValue();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of OuterEnumDefaultValue
+ ///
+ [Fact]
+ public void OuterEnumDefaultValueInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" OuterEnumDefaultValue
+ //Assert.IsType(instance);
+ }
+
+
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs
new file mode 100644
index 00000000000..015d5dab945
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing OuterEnumIntegerDefaultValue
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class OuterEnumIntegerDefaultValueTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for OuterEnumIntegerDefaultValue
+ //private OuterEnumIntegerDefaultValue instance;
+
+ public OuterEnumIntegerDefaultValueTests()
+ {
+ // TODO uncomment below to create an instance of OuterEnumIntegerDefaultValue
+ //instance = new OuterEnumIntegerDefaultValue();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of OuterEnumIntegerDefaultValue
+ ///
+ [Fact]
+ public void OuterEnumIntegerDefaultValueInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" OuterEnumIntegerDefaultValue
+ //Assert.IsType(instance);
+ }
+
+
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs
new file mode 100644
index 00000000000..385e899110a
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing OuterEnumInteger
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class OuterEnumIntegerTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for OuterEnumInteger
+ //private OuterEnumInteger instance;
+
+ public OuterEnumIntegerTests()
+ {
+ // TODO uncomment below to create an instance of OuterEnumInteger
+ //instance = new OuterEnumInteger();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of OuterEnumInteger
+ ///
+ [Fact]
+ public void OuterEnumIntegerInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" OuterEnumInteger
+ //Assert.IsType(instance);
+ }
+
+
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs
new file mode 100644
index 00000000000..f47304767b9
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing OuterEnum
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class OuterEnumTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for OuterEnum
+ //private OuterEnum instance;
+
+ public OuterEnumTests()
+ {
+ // TODO uncomment below to create an instance of OuterEnum
+ //instance = new OuterEnum();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of OuterEnum
+ ///
+ [Fact]
+ public void OuterEnumInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" OuterEnum
+ //Assert.IsType(instance);
+ }
+
+
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs
new file mode 100644
index 00000000000..1e17568ed33
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs
@@ -0,0 +1,71 @@
+/*
+ * 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.Model
+{
+ ///
+ /// Class for testing ParentPet
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of ParentPet
+ ///
+ [Fact]
+ public void ParentPetInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" ParentPet
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test deserialize a ChildCat from type ParentPet
+ ///
+ [Fact]
+ public void ChildCatDeserializeFromParentPetTest()
+ {
+ // TODO uncomment below to test deserialize a ChildCat from type ParentPet
+ //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson()));
+ }
+
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/PigTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/PigTests.cs
new file mode 100644
index 00000000000..55cf2189046
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/PigTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing Pig
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of Pig
+ ///
+ [Fact]
+ public void PigInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Pig
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'ClassName'
+ ///
+ [Fact]
+ public void ClassNameTest()
+ {
+ // TODO unit test for the property 'ClassName'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs
new file mode 100644
index 00000000000..6eef9f4c816
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing QuadrilateralInterface
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of QuadrilateralInterface
+ ///
+ [Fact]
+ public void QuadrilateralInterfaceInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" QuadrilateralInterface
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'QuadrilateralType'
+ ///
+ [Fact]
+ public void QuadrilateralTypeTest()
+ {
+ // TODO unit test for the property 'QuadrilateralType'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs
new file mode 100644
index 00000000000..26826681a47
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing Quadrilateral
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of Quadrilateral
+ ///
+ [Fact]
+ public void QuadrilateralInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Quadrilateral
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'ShapeType'
+ ///
+ [Fact]
+ public void ShapeTypeTest()
+ {
+ // TODO unit test for the property 'ShapeType'
+ }
+ ///
+ /// Test the property 'QuadrilateralType'
+ ///
+ [Fact]
+ public void QuadrilateralTypeTest()
+ {
+ // TODO unit test for the property 'QuadrilateralType'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs
new file mode 100644
index 00000000000..dc3d0fad54c
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing ReadOnlyFirst
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class ReadOnlyFirstTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for ReadOnlyFirst
+ //private ReadOnlyFirst instance;
+
+ public ReadOnlyFirstTests()
+ {
+ // TODO uncomment below to create an instance of ReadOnlyFirst
+ //instance = new ReadOnlyFirst();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of ReadOnlyFirst
+ ///
+ [Fact]
+ public void ReadOnlyFirstInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" ReadOnlyFirst
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Bar'
+ ///
+ [Fact]
+ public void BarTest()
+ {
+ // TODO unit test for the property 'Bar'
+ }
+ ///
+ /// Test the property 'Baz'
+ ///
+ [Fact]
+ public void BazTest()
+ {
+ // TODO unit test for the property 'Baz'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ReturnTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ReturnTests.cs
new file mode 100644
index 00000000000..c8c1d6510d2
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ReturnTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing Return
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class ReturnTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for Return
+ //private Return instance;
+
+ public ReturnTests()
+ {
+ // TODO uncomment below to create an instance of Return
+ //instance = new Return();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of Return
+ ///
+ [Fact]
+ public void ReturnInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Return
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property '_Return'
+ ///
+ [Fact]
+ public void _ReturnTest()
+ {
+ // TODO unit test for the property '_Return'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs
new file mode 100644
index 00000000000..04cb9f1ab6b
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing ScaleneTriangle
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of ScaleneTriangle
+ ///
+ [Fact]
+ public void ScaleneTriangleInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" ScaleneTriangle
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'ShapeType'
+ ///
+ [Fact]
+ public void ShapeTypeTest()
+ {
+ // TODO unit test for the property 'ShapeType'
+ }
+ ///
+ /// Test the property 'TriangleType'
+ ///
+ [Fact]
+ public void TriangleTypeTest()
+ {
+ // TODO unit test for the property 'TriangleType'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs
new file mode 100644
index 00000000000..7bd0bc86f96
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing ShapeInterface
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of ShapeInterface
+ ///
+ [Fact]
+ public void ShapeInterfaceInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" ShapeInterface
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'ShapeType'
+ ///
+ [Fact]
+ public void ShapeTypeTest()
+ {
+ // TODO unit test for the property 'ShapeType'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs
new file mode 100644
index 00000000000..d0af114157c
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing ShapeOrNull
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of ShapeOrNull
+ ///
+ [Fact]
+ public void ShapeOrNullInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" ShapeOrNull
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'ShapeType'
+ ///
+ [Fact]
+ public void ShapeTypeTest()
+ {
+ // TODO unit test for the property 'ShapeType'
+ }
+ ///
+ /// Test the property 'QuadrilateralType'
+ ///
+ [Fact]
+ public void QuadrilateralTypeTest()
+ {
+ // TODO unit test for the property 'QuadrilateralType'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ShapeTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ShapeTests.cs
new file mode 100644
index 00000000000..b01bd531f85
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ShapeTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing Shape
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of Shape
+ ///
+ [Fact]
+ public void ShapeInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Shape
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'ShapeType'
+ ///
+ [Fact]
+ public void ShapeTypeTest()
+ {
+ // TODO unit test for the property 'ShapeType'
+ }
+ ///
+ /// Test the property 'QuadrilateralType'
+ ///
+ [Fact]
+ public void QuadrilateralTypeTest()
+ {
+ // TODO unit test for the property 'QuadrilateralType'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs
new file mode 100644
index 00000000000..6648e980928
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing SimpleQuadrilateral
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of SimpleQuadrilateral
+ ///
+ [Fact]
+ public void SimpleQuadrilateralInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" SimpleQuadrilateral
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'ShapeType'
+ ///
+ [Fact]
+ public void ShapeTypeTest()
+ {
+ // TODO unit test for the property 'ShapeType'
+ }
+ ///
+ /// Test the property 'QuadrilateralType'
+ ///
+ [Fact]
+ public void QuadrilateralTypeTest()
+ {
+ // TODO unit test for the property 'QuadrilateralType'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs
new file mode 100644
index 00000000000..57c3f6f9e42
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing SpecialModelName
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class SpecialModelNameTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for SpecialModelName
+ //private SpecialModelName instance;
+
+ public SpecialModelNameTests()
+ {
+ // TODO uncomment below to create an instance of SpecialModelName
+ //instance = new SpecialModelName();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of SpecialModelName
+ ///
+ [Fact]
+ public void SpecialModelNameInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" SpecialModelName
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'SpecialPropertyName'
+ ///
+ [Fact]
+ public void SpecialPropertyNameTest()
+ {
+ // TODO unit test for the property 'SpecialPropertyName'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs
new file mode 100644
index 00000000000..fba65470bee
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing TriangleInterface
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of TriangleInterface
+ ///
+ [Fact]
+ public void TriangleInterfaceInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" TriangleInterface
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'TriangleType'
+ ///
+ [Fact]
+ public void TriangleTypeTest()
+ {
+ // TODO unit test for the property 'TriangleType'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/TriangleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/TriangleTests.cs
new file mode 100644
index 00000000000..bdaab0b4796
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/TriangleTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing Triangle
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of Triangle
+ ///
+ [Fact]
+ public void TriangleInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Triangle
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'ShapeType'
+ ///
+ [Fact]
+ public void ShapeTypeTest()
+ {
+ // TODO unit test for the property 'ShapeType'
+ }
+ ///
+ /// Test the property 'TriangleType'
+ ///
+ [Fact]
+ public void TriangleTypeTest()
+ {
+ // TODO unit test for the property 'TriangleType'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/WhaleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/WhaleTests.cs
new file mode 100644
index 00000000000..09610791943
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/WhaleTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing Whale
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of Whale
+ ///
+ [Fact]
+ public void WhaleInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Whale
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'HasBaleen'
+ ///
+ [Fact]
+ public void HasBaleenTest()
+ {
+ // TODO unit test for the property 'HasBaleen'
+ }
+ ///
+ /// Test the property 'HasTeeth'
+ ///
+ [Fact]
+ public void HasTeethTest()
+ {
+ // TODO unit test for the property 'HasTeeth'
+ }
+ ///
+ /// Test the property 'ClassName'
+ ///
+ [Fact]
+ public void ClassNameTest()
+ {
+ // TODO unit test for the property 'ClassName'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ZebraTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ZebraTests.cs
new file mode 100644
index 00000000000..f44e9213140
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ZebraTests.cs
@@ -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.Model
+{
+ ///
+ /// Class for testing Zebra
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ 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.
+ }
+
+ ///
+ /// Test an instance of Zebra
+ ///
+ [Fact]
+ public void ZebraInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Zebra
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Type'
+ ///
+ [Fact]
+ public void TypeTest()
+ {
+ // TODO unit test for the property 'Type'
+ }
+ ///
+ /// Test the property 'ClassName'
+ ///
+ [Fact]
+ public void ClassNameTest()
+ {
+ // TODO unit test for the property 'ClassName'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/AnotherFakeApi.cs
new file mode 100644
index 00000000000..94d8b854b0d
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/AnotherFakeApi.cs
@@ -0,0 +1,320 @@
+/*
+ * 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.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Net;
+using System.Net.Mime;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Org.OpenAPITools.Api
+{
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface IAnotherFakeApiSync : IApiAccessor
+ {
+ #region Synchronous Operations
+ ///
+ /// To test special tags
+ ///
+ ///
+ /// To test special tags and operation ID starting with number
+ ///
+ /// Thrown when fails to make API call
+ /// client model
+ /// ModelClient
+ ModelClient Call123TestSpecialTags(ModelClient modelClient);
+
+ ///
+ /// To test special tags
+ ///
+ ///
+ /// To test special tags and operation ID starting with number
+ ///
+ /// Thrown when fails to make API call
+ /// client model
+ /// ApiResponse of ModelClient
+ ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient);
+ #endregion Synchronous Operations
+ }
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface IAnotherFakeApiAsync : IApiAccessor
+ {
+ #region Asynchronous Operations
+ ///
+ /// To test special tags
+ ///
+ ///
+ /// To test special tags and operation ID starting with number
+ ///
+ /// Thrown when fails to make API call
+ /// client model
+ /// Cancellation Token to cancel the request.
+ /// Task of ModelClient
+ System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// To test special tags
+ ///
+ ///
+ /// To test special tags and operation ID starting with number
+ ///
+ /// Thrown when fails to make API call
+ /// client model
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (ModelClient)
+ System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ #endregion Asynchronous Operations
+ }
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface IAnotherFakeApi : IAnotherFakeApiSync, IAnotherFakeApiAsync
+ {
+
+ }
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public partial class AnotherFakeApi : IAnotherFakeApi
+ {
+ private Org.OpenAPITools.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ public AnotherFakeApi() : this((string)null)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ public AnotherFakeApi(String basePath)
+ {
+ this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
+ Org.OpenAPITools.Client.GlobalConfiguration.Instance,
+ new Org.OpenAPITools.Client.Configuration { BasePath = basePath }
+ );
+ this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath);
+ this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath);
+ this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// Initializes a new instance of the class
+ /// using Configuration object
+ ///
+ /// An instance of Configuration
+ ///
+ public AnotherFakeApi(Org.OpenAPITools.Client.Configuration configuration)
+ {
+ if (configuration == null) throw new ArgumentNullException("configuration");
+
+ this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
+ Org.OpenAPITools.Client.GlobalConfiguration.Instance,
+ configuration
+ );
+ this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath);
+ this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath);
+ ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// Initializes a new instance of the class
+ /// using a Configuration object and client instance.
+ ///
+ /// The client interface for synchronous API access.
+ /// The client interface for asynchronous API access.
+ /// The configuration object.
+ public AnotherFakeApi(Org.OpenAPITools.Client.ISynchronousClient client, Org.OpenAPITools.Client.IAsynchronousClient asyncClient, Org.OpenAPITools.Client.IReadableConfiguration configuration)
+ {
+ if (client == null) throw new ArgumentNullException("client");
+ if (asyncClient == null) throw new ArgumentNullException("asyncClient");
+ if (configuration == null) throw new ArgumentNullException("configuration");
+
+ this.Client = client;
+ this.AsynchronousClient = asyncClient;
+ this.Configuration = configuration;
+ this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// The client for accessing this underlying API asynchronously.
+ ///
+ public Org.OpenAPITools.Client.IAsynchronousClient AsynchronousClient { get; set; }
+
+ ///
+ /// The client for accessing this underlying API synchronously.
+ ///
+ public Org.OpenAPITools.Client.ISynchronousClient Client { get; set; }
+
+ ///
+ /// Gets the base path of the API client.
+ ///
+ /// The base path
+ public String GetBasePath()
+ {
+ return this.Configuration.BasePath;
+ }
+
+ ///
+ /// Gets or sets the configuration object
+ ///
+ /// An instance of the Configuration
+ public Org.OpenAPITools.Client.IReadableConfiguration Configuration { get; set; }
+
+ ///
+ /// Provides a factory method hook for the creation of exceptions.
+ ///
+ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory
+ {
+ get
+ {
+ if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1)
+ {
+ throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported.");
+ }
+ return _exceptionFactory;
+ }
+ set { _exceptionFactory = value; }
+ }
+
+ ///
+ /// To test special tags To test special tags and operation ID starting with number
+ ///
+ /// Thrown when fails to make API call
+ /// client model
+ /// ModelClient
+ public ModelClient Call123TestSpecialTags(ModelClient modelClient)
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// To test special tags To test special tags and operation ID starting with number
+ ///
+ /// Thrown when fails to make API call
+ /// client model
+ /// ApiResponse of ModelClient
+ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient)
+ {
+ // verify the required parameter 'modelClient' is set
+ if (modelClient == null)
+ throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags");
+
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ String[] _contentTypes = new String[] {
+ "application/json"
+ };
+
+ // 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);
+
+ localVarRequestOptions.Data = modelClient;
+
+
+ // make the HTTP request
+ var localVarResponse = this.Client.Patch("/another-fake/dummy", localVarRequestOptions, this.Configuration);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Call123TestSpecialTags", localVarResponse);
+ if (_exception != null) throw _exception;
+ }
+
+ return localVarResponse;
+ }
+
+ ///
+ /// To test special tags To test special tags and operation ID starting with number
+ ///
+ /// Thrown when fails to make API call
+ /// client model
+ /// Cancellation Token to cancel the request.
+ /// Task of ModelClient
+ public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = await Call123TestSpecialTagsWithHttpInfoAsync(modelClient, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// To test special tags To test special tags and operation ID starting with number
+ ///
+ /// Thrown when fails to make API call
+ /// client model
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (ModelClient)
+ public async System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ // verify the required parameter 'modelClient' is set
+ if (modelClient == null)
+ throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags");
+
+
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ String[] _contentTypes = new String[] {
+ "application/json"
+ };
+
+ // 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);
+
+ localVarRequestOptions.Data = modelClient;
+
+
+ // make the HTTP request
+
+ var localVarResponse = await this.AsynchronousClient.PatchAsync("/another-fake/dummy", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Call123TestSpecialTags", localVarResponse);
+ if (_exception != null) throw _exception;
+ }
+
+ return localVarResponse;
+ }
+
+ }
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/DefaultApi.cs
new file mode 100644
index 00000000000..27789c4533a
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -0,0 +1,297 @@
+/*
+ * 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.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Net;
+using System.Net.Mime;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Org.OpenAPITools.Api
+{
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface IDefaultApiSync : IApiAccessor
+ {
+ #region Synchronous Operations
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// InlineResponseDefault
+ InlineResponseDefault FooGet();
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// ApiResponse of InlineResponseDefault
+ ApiResponse FooGetWithHttpInfo();
+ #endregion Synchronous Operations
+ }
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface IDefaultApiAsync : IApiAccessor
+ {
+ #region Asynchronous Operations
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// Task of InlineResponseDefault
+ System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (InlineResponseDefault)
+ System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ #endregion Asynchronous Operations
+ }
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface IDefaultApi : IDefaultApiSync, IDefaultApiAsync
+ {
+
+ }
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public partial class DefaultApi : IDefaultApi
+ {
+ private Org.OpenAPITools.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ public DefaultApi() : this((string)null)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ public DefaultApi(String basePath)
+ {
+ this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
+ Org.OpenAPITools.Client.GlobalConfiguration.Instance,
+ new Org.OpenAPITools.Client.Configuration { BasePath = basePath }
+ );
+ this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath);
+ this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath);
+ this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// Initializes a new instance of the class
+ /// using Configuration object
+ ///
+ /// An instance of Configuration
+ ///
+ public DefaultApi(Org.OpenAPITools.Client.Configuration configuration)
+ {
+ if (configuration == null) throw new ArgumentNullException("configuration");
+
+ this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
+ Org.OpenAPITools.Client.GlobalConfiguration.Instance,
+ configuration
+ );
+ this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath);
+ this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath);
+ ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// Initializes a new instance of the class
+ /// using a Configuration object and client instance.
+ ///
+ /// The client interface for synchronous API access.
+ /// The client interface for asynchronous API access.
+ /// The configuration object.
+ public DefaultApi(Org.OpenAPITools.Client.ISynchronousClient client, Org.OpenAPITools.Client.IAsynchronousClient asyncClient, Org.OpenAPITools.Client.IReadableConfiguration configuration)
+ {
+ if (client == null) throw new ArgumentNullException("client");
+ if (asyncClient == null) throw new ArgumentNullException("asyncClient");
+ if (configuration == null) throw new ArgumentNullException("configuration");
+
+ this.Client = client;
+ this.AsynchronousClient = asyncClient;
+ this.Configuration = configuration;
+ this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// The client for accessing this underlying API asynchronously.
+ ///
+ public Org.OpenAPITools.Client.IAsynchronousClient AsynchronousClient { get; set; }
+
+ ///
+ /// The client for accessing this underlying API synchronously.
+ ///
+ public Org.OpenAPITools.Client.ISynchronousClient Client { get; set; }
+
+ ///
+ /// Gets the base path of the API client.
+ ///
+ /// The base path
+ public String GetBasePath()
+ {
+ return this.Configuration.BasePath;
+ }
+
+ ///
+ /// Gets or sets the configuration object
+ ///
+ /// An instance of the Configuration
+ public Org.OpenAPITools.Client.IReadableConfiguration Configuration { get; set; }
+
+ ///
+ /// Provides a factory method hook for the creation of exceptions.
+ ///
+ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory
+ {
+ get
+ {
+ if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1)
+ {
+ throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported.");
+ }
+ return _exceptionFactory;
+ }
+ set { _exceptionFactory = value; }
+ }
+
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// InlineResponseDefault
+ public InlineResponseDefault FooGet()
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = FooGetWithHttpInfo();
+ return localVarResponse.Data;
+ }
+
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// ApiResponse of InlineResponseDefault
+ public Org.OpenAPITools.Client.ApiResponse FooGetWithHttpInfo()
+ {
+ 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("/foo", localVarRequestOptions, this.Configuration);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("FooGet", localVarResponse);
+ if (_exception != null) throw _exception;
+ }
+
+ return localVarResponse;
+ }
+
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// Task of InlineResponseDefault
+ public async System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = await FooGetWithHttpInfoAsync(cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
+ }
+
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (InlineResponseDefault)
+ public async System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(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("/foo", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("FooGet", localVarResponse);
+ if (_exception != null) throw _exception;
+ }
+
+ return localVarResponse;
+ }
+
+ }
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeApi.cs
new file mode 100644
index 00000000000..d7749151314
--- /dev/null
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeApi.cs
@@ -0,0 +1,2951 @@
+/*
+ * 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.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Net;
+using System.Net.Mime;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Org.OpenAPITools.Api
+{
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface IFakeApiSync : IApiAccessor
+ {
+ #region Synchronous Operations
+ ///
+ /// Health check endpoint
+ ///
+ /// 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 serialization of outer boolean types
+ ///
+ /// Thrown when fails to make API call
+ /// Input boolean as post body (optional)
+ /// bool
+ bool FakeOuterBooleanSerialize(bool? body = default(bool?));
+
+ ///
+ ///
+ ///
+ ///
+ /// Test serialization of outer boolean types
+ ///
+ /// Thrown when fails to make API call
+ /// Input boolean as post body (optional)
+ /// ApiResponse of bool
+ ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?));
+ ///
+ ///
+ ///
+ ///
+ /// Test serialization of object with outer number type
+ ///
+ /// Thrown when fails to make API call
+ /// Input composite as post body (optional)
+ /// OuterComposite
+ OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite));
+
+ ///
+ ///
+ ///
+ ///
+ /// Test serialization of object with outer number type
+ ///
+ /// Thrown when fails to make API call
+ /// Input composite as post body (optional)
+ /// ApiResponse of OuterComposite
+ ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite));
+ ///
+ ///
+ ///
+ ///
+ /// Test serialization of outer number types
+ ///
+ /// Thrown when fails to make API call
+ /// Input number as post body (optional)
+ /// decimal
+ decimal FakeOuterNumberSerialize(decimal? body = default(decimal?));
+
+ ///
+ ///
+ ///
+ ///
+ /// Test serialization of outer number types
+ ///
+ /// Thrown when fails to make API call
+ /// Input number as post body (optional)
+ /// ApiResponse of decimal
+ ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?));
+ ///
+ ///
+ ///
+ ///
+ /// Test serialization of outer string types
+ ///
+ /// Thrown when fails to make API call
+ /// Input string as post body (optional)
+ /// string
+ string FakeOuterStringSerialize(string body = default(string));
+
+ ///
+ ///
+ ///
+ ///
+ /// Test serialization of outer string types
+ ///
+ /// Thrown when fails to make API call
+ /// Input string as post body (optional)
+ /// ApiResponse of string
+ ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string));
+ ///
+ /// Array of Enums
+ ///
+ /// Thrown when fails to make API call
+ /// List<OuterEnum>
+ List GetArrayOfEnums();
+
+ ///
+ /// Array of Enums
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// ApiResponse of List<OuterEnum>
+ ApiResponse> GetArrayOfEnumsWithHttpInfo();
+ ///
+ ///
+ ///
+ ///
+ /// For this test, the body for this request much reference a schema named `File`.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ ///
+ void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass);
+
+ ///
+ ///
+ ///
+ ///
+ /// For this test, the body for this request much reference a schema named `File`.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// ApiResponse of Object(void)
+ ApiResponse