diff --git a/bin/configs/csharp-restsharp-net4.7-multipleFrameworks.yaml b/bin/configs/csharp-restsharp-net4.7-multipleFrameworks.yaml index bdd64742026c..0b7b6bad3f3f 100644 --- a/bin/configs/csharp-restsharp-net4.7-multipleFrameworks.yaml +++ b/bin/configs/csharp-restsharp-net4.7-multipleFrameworks.yaml @@ -4,6 +4,6 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml templateDir: modules/openapi-generator/src/main/resources/csharp additionalProperties: packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' - targetFramework: netstandard2.1;net47 + targetFramework: netstandard2.1;net47;net8.0 useCompareNetObjects: "true" equatable: true diff --git a/modules/openapi-generator/src/main/resources/csharp-functions/Project.csproj.mustache.bak b/modules/openapi-generator/src/main/resources/csharp-functions/Project.csproj.mustache.bak deleted file mode 100644 index ab4ad28ede66..000000000000 --- a/modules/openapi-generator/src/main/resources/csharp-functions/Project.csproj.mustache.bak +++ /dev/null @@ -1,36 +0,0 @@ - - - {{packageDescription}}{{^packageDescription}}{{packageName}}{{/packageDescription}} - {{packageCopyright}} - {{packageAuthors}} - {{targetFramework}} - true - true - {{packageVersion}} - {{azureFunctionsVersion}} -{{#nullableReferenceTypes}} - annotations -{{/nullableReferenceTypes}} -{{#isLibrary}} - Library -{{/isLibrary}} - {{packageName}} - {{packageName}} - {{userSecretsGuid}} - Linux - ..\.. - - - - - - - - PreserveNewest - - - PreserveNewest - Never - - - diff --git a/modules/openapi-generator/src/main/resources/csharp-functions/function.mustache.bak b/modules/openapi-generator/src/main/resources/csharp-functions/function.mustache.bak deleted file mode 100644 index 397ba84eb774..000000000000 --- a/modules/openapi-generator/src/main/resources/csharp-functions/function.mustache.bak +++ /dev/null @@ -1,33 +0,0 @@ -using System.IO; -using System.Net; -using System.Threading.Tasks; -using System.ComponentModel.DataAnnotations; -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Azure.WebJobs; -using Microsoft.Azure.WebJobs.Extensions.Http; -using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes; -using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Enums; -using Microsoft.Extensions.Logging; -using Microsoft.OpenApi.Models; -using Newtonsoft.Json; - -namespace {{apiPackage}} -{ {{#operations}} - public partial {{#classModifier}}{{classModifier}} {{/classModifier}}class {{classname}} - { {{#operation}} - [FunctionName("{{classname}}_{{operationId}}")] - public async Task _{{operationId}}([HttpTrigger(AuthorizationLevel.Anonymous, "{{httpMethod}}", Route = "{{{path}}}")]HttpRequest req, ExecutionContext context{{#allParams}}{{#isPathParam}}, {{>pathParam}}{{/isPathParam}}{{/allParams}}){{^generateBody}};{{/generateBody}} - {{#generateBody}} - { - var method = this.GetType().GetMethod("{{operationId}}"); - - return method != null - ? (await ((Task)method.Invoke(this, new object[] { req, context{{#allParams}}{{#isPathParam}}, {{>paramName}}{{/isPathParam}}{{/allParams}} })).ConfigureAwait(false)) - : new StatusCodeResult((int)HttpStatusCode.NotImplemented); - } - {{/generateBody}} - {{/operation}} - } -{{/operations}} -} diff --git a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/AsModel.mustache b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/AsModel.mustache index dd7ce036f3ff..69a673e0c7c3 100644 --- a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/AsModel.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/AsModel.mustache @@ -3,7 +3,7 @@ return Is{{vendorExtensions.x-http-status}} ? System.Text.Json.JsonSerializer.Deserialize<{{#isModel}}{{^containerType}}{{packageName}}.{{modelPackage}}.{{/containerType}}{{/isModel}}{{{dataType}}}>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default -#endif; + default; +#endif diff --git a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/api.mustache b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/api.mustache index 25abe72ca737..1e5f688a90bf 100644 --- a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/api.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/api.mustache @@ -629,7 +629,7 @@ namespace {{packageName}}.{{apiPackage}} ILogger<{{#vendorExtensions.x-duplicates}}{{.}}.{{/vendorExtensions.x-duplicates}}{{operationId}}ApiResponse> apiResponseLoggerLocalVar = LoggerFactory.CreateLogger<{{#vendorExtensions.x-duplicates}}{{.}}.{{/vendorExtensions.x-duplicates}}{{operationId}}ApiResponse>(); - {{#vendorExtensions.x-duplicates}}{{.}}.{{/vendorExtensions.x-duplicates}}{{operationId}}ApiResponse apiResponseLocalVar = new {{operationId}}ApiResponse(apiResponseLoggerLocalVar, httpRequestMessageLocalVar, httpResponseMessageLocalVar, responseContentLocalVar, "{{{path}}}", requestedAtLocalVar, _jsonSerializerOptions); + {{#vendorExtensions.x-duplicates}}{{.}}.{{/vendorExtensions.x-duplicates}}{{operationId}}ApiResponse apiResponseLocalVar = new {{#vendorExtensions.x-duplicates}}{{.}}.{{/vendorExtensions.x-duplicates}}{{operationId}}ApiResponse(apiResponseLoggerLocalVar, httpRequestMessageLocalVar, httpResponseMessageLocalVar, responseContentLocalVar, "{{{path}}}", requestedAtLocalVar, _jsonSerializerOptions); After{{operationId}}DefaultImplementation({{#lambda.joinWithComma}}apiResponseLocalVar {{#allParams}}{{paramName}} {{/allParams}}{{/lambda.joinWithComma}}); diff --git a/modules/openapi-generator/src/main/resources/csharp/netcore_project.mustache b/modules/openapi-generator/src/main/resources/csharp/netcore_project.mustache index 5769512aa877..1f3c37c0b4d7 100644 --- a/modules/openapi-generator/src/main/resources/csharp/netcore_project.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/netcore_project.mustache @@ -1,5 +1,4 @@ - {{#useGenericHost}} true {{/useGenericHost}}{{^useGenericHost}} false{{/useGenericHost}} @@ -24,6 +23,16 @@ false + + + true + + + true + + + + {{#useCompareNetObjects}} @@ -33,52 +42,42 @@ {{/useGenericHost}} {{#useRestSharp}} - + + {{/useRestSharp}} {{#useGenericHost}} - - + + + {{#supportsRetry}} - + {{/supportsRetry}} {{#net80OrLater}} {{/net80OrLater}} {{^net60OrLater}} - {{#net47OrLater}} - - {{/net47OrLater}} {{/net60OrLater}} {{/useGenericHost}} {{^useGenericHost}} {{#supportsRetry}} - + {{/supportsRetry}} {{/useGenericHost}} - {{#validatable}} - {{^net60OrLater}} + +{{#validatable}} + - {{/net60OrLater}} - {{/validatable}} +{{/validatable}} -{{^useGenericHost}} - - {{^net60OrLater}} + - {{/net60OrLater}} - {{#net48}} - - {{/net48}} + + - {{^net60OrLater}} - - {{/net60OrLater}} - {{#net48}} - - {{/net48}} + + -{{/useGenericHost}} {{>netcore_project.additions}} diff --git a/modules/openapi-generator/src/main/resources/csharp/netcore_testproject.mustache b/modules/openapi-generator/src/main/resources/csharp/netcore_testproject.mustache index eb8bd548d1e0..4b108acaa81e 100644 --- a/modules/openapi-generator/src/main/resources/csharp/netcore_testproject.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/netcore_testproject.mustache @@ -9,9 +9,9 @@ - - - + + + diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index a381e6a2f3cf..3bc135471dba 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Org.OpenAPITools.csproj index a5a6bf6200b9..4a5f5a0cc9c3 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - false net6.0 @@ -21,15 +20,34 @@ false + + + true + + + true + + + + - - + + + - + + + + + + + + + diff --git a/samples/client/others/csharp-complex-files/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/others/csharp-complex-files/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 66dc542c5c2c..8fd7adbef647 100644 --- a/samples/client/others/csharp-complex-files/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/others/csharp-complex-files/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,9 +8,9 @@ - - - + + + diff --git a/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 05f8f0bf135f..ef7e07f7ec0d 100644 --- a/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - false netstandard2.0 @@ -20,19 +19,35 @@ false + + + true + + + true + + + + - - + + + + + - + + + - + + diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 05ce7e5830d8..67a08dd23ebd 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKeys0Api.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKeys0Api.cs index 460d35e8eada..a94e240b04b0 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKeys0Api.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKeys0Api.cs @@ -240,7 +240,7 @@ public async Task GetApiKeysIdAsync(int id, System.Thr ILogger apiResponseLoggerLocalVar = LoggerFactory.CreateLogger(); - APIKEYSApi.GetApiKeysIdApiResponse apiResponseLocalVar = new GetApiKeysIdApiResponse(apiResponseLoggerLocalVar, httpRequestMessageLocalVar, httpResponseMessageLocalVar, responseContentLocalVar, "/api_keys/{id}", requestedAtLocalVar, _jsonSerializerOptions); + APIKEYSApi.GetApiKeysIdApiResponse apiResponseLocalVar = new APIKEYSApi.GetApiKeysIdApiResponse(apiResponseLoggerLocalVar, httpRequestMessageLocalVar, httpResponseMessageLocalVar, responseContentLocalVar, "/api_keys/{id}", requestedAtLocalVar, _jsonSerializerOptions); AfterGetApiKeysIdDefaultImplementation(apiResponseLocalVar, id); diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/ApiKeys1Api.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/ApiKeys1Api.cs index aea1a62eff64..ffe4572e649e 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/ApiKeys1Api.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/ApiKeys1Api.cs @@ -240,7 +240,7 @@ public async Task GetApiKeysIdAsync(int id, System.Thr ILogger apiResponseLoggerLocalVar = LoggerFactory.CreateLogger(); - APIKEYSApi.GetApiKeysIdApiResponse apiResponseLocalVar = new GetApiKeysIdApiResponse(apiResponseLoggerLocalVar, httpRequestMessageLocalVar, httpResponseMessageLocalVar, responseContentLocalVar, "/api_keys/{id}", requestedAtLocalVar, _jsonSerializerOptions); + APIKEYSApi.GetApiKeysIdApiResponse apiResponseLocalVar = new APIKEYSApi.GetApiKeysIdApiResponse(apiResponseLoggerLocalVar, httpRequestMessageLocalVar, httpResponseMessageLocalVar, responseContentLocalVar, "/api_keys/{id}", requestedAtLocalVar, _jsonSerializerOptions); AfterGetApiKeysIdDefaultImplementation(apiResponseLocalVar, id); diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 9f99b6957b6d..a17cb4f5dad5 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net8.0 @@ -21,11 +20,34 @@ false + + + true + + + true + + + + - - - + + + + + + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 6e2e462b8a72..ef4192ba81be 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs index c1d9901db861..41c6c080c5cb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -328,10 +328,10 @@ public Org.OpenAPITools.Model.Person Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj index c6529e054024..3fb29411d2be 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net47 @@ -20,14 +19,35 @@ false + + + true + + + true + + + + - - - + + + + - + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 6e2e462b8a72..ef4192ba81be 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs index 74252a406259..7f4f27d1b912 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -302,10 +302,10 @@ public Org.OpenAPITools.Model.Fruit Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj index c6529e054024..3fb29411d2be 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net47 @@ -20,14 +19,35 @@ false + + + true + + + true + + + + - - - + + + + - + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 6e2e462b8a72..ef4192ba81be 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs index 74252a406259..7f4f27d1b912 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -302,10 +302,10 @@ public Org.OpenAPITools.Model.Fruit Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 201640a24d33..caadbe462ab4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net47 @@ -20,13 +19,34 @@ false + + + true + + + true + + + + - - - + + + + - + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 6e2e462b8a72..ef4192ba81be 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 490d20d1a61a..85bc1aac5dab 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -375,10 +375,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs index db3d9888945c..6277311b345b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -551,10 +551,10 @@ public Org.OpenAPITools.Model.FooGetDefaultResponse Default() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -964,10 +964,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1174,10 +1174,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1384,10 +1384,10 @@ public Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs index 144226daaa88..4a95c19fae8f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1460,10 +1460,10 @@ public Org.OpenAPITools.Model.HealthCheckResult Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1694,10 +1694,10 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1941,10 +1941,10 @@ public Org.OpenAPITools.Model.OuterComposite Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2175,10 +2175,10 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2434,10 +2434,10 @@ public string Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2644,10 +2644,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2854,10 +2854,10 @@ public Org.OpenAPITools.Model.MixedAnyOf Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3064,10 +3064,10 @@ public Org.OpenAPITools.Model.MixedOneOf Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3917,10 +3917,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 99add155ed62..846351642739 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -388,10 +388,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/PetApi.cs index a414c4420ddd..6c0676ac7785 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/PetApi.cs @@ -1325,10 +1325,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1622,10 +1622,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1867,10 +1867,10 @@ public Org.OpenAPITools.Model.Pet Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2629,10 +2629,10 @@ public Org.OpenAPITools.Model.ApiResponse Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2911,10 +2911,10 @@ public Org.OpenAPITools.Model.ApiResponse Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs index d96b8f3f429f..19048fd0b3dd 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs @@ -725,10 +725,10 @@ public Dictionary Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -947,10 +947,10 @@ public Org.OpenAPITools.Model.Order Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1206,10 +1206,10 @@ public Org.OpenAPITools.Model.Order Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/UserApi.cs index 30d4f2f1aad1..bb6d746bb65b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/UserApi.cs @@ -1574,10 +1574,10 @@ public Org.OpenAPITools.Model.User Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1639,10 +1639,10 @@ public Org.OpenAPITools.Model.User CustomHttpStatusCode599() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1890,10 +1890,10 @@ public string Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Org.OpenAPITools.csproj index c6529e054024..3fb29411d2be 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net47 @@ -20,14 +19,35 @@ false + + + true + + + true + + + + - - - + + + + - + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 6e2e462b8a72..ef4192ba81be 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs index 74252a406259..7f4f27d1b912 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -302,10 +302,10 @@ public Org.OpenAPITools.Model.Fruit Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj index c6529e054024..3fb29411d2be 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net47 @@ -20,14 +19,35 @@ false + + + true + + + true + + + + - - - + + + + - + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 6e2e462b8a72..ef4192ba81be 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 490d20d1a61a..85bc1aac5dab 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -375,10 +375,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index db3d9888945c..6277311b345b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -551,10 +551,10 @@ public Org.OpenAPITools.Model.FooGetDefaultResponse Default() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -964,10 +964,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1174,10 +1174,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1384,10 +1384,10 @@ public Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 882649ce655c..ca72c476a8bc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1460,10 +1460,10 @@ public Org.OpenAPITools.Model.HealthCheckResult Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1694,10 +1694,10 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1941,10 +1941,10 @@ public Org.OpenAPITools.Model.OuterComposite Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2175,10 +2175,10 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2434,10 +2434,10 @@ public string Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2644,10 +2644,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2854,10 +2854,10 @@ public Org.OpenAPITools.Model.MixedAnyOf Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3064,10 +3064,10 @@ public Org.OpenAPITools.Model.MixedOneOf Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3917,10 +3917,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 99add155ed62..846351642739 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -388,10 +388,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index 0f1ebce15075..9cbf2bbd0852 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -1325,10 +1325,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1622,10 +1622,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1867,10 +1867,10 @@ public Org.OpenAPITools.Model.Pet Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2629,10 +2629,10 @@ public Org.OpenAPITools.Model.ApiResponse Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2911,10 +2911,10 @@ public Org.OpenAPITools.Model.ApiResponse Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index d96b8f3f429f..19048fd0b3dd 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -725,10 +725,10 @@ public Dictionary Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -947,10 +947,10 @@ public Org.OpenAPITools.Model.Order Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1206,10 +1206,10 @@ public Org.OpenAPITools.Model.Order Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/UserApi.cs index 30d4f2f1aad1..bb6d746bb65b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/UserApi.cs @@ -1574,10 +1574,10 @@ public Org.OpenAPITools.Model.User Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1639,10 +1639,10 @@ public Org.OpenAPITools.Model.User CustomHttpStatusCode599() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1890,10 +1890,10 @@ public string Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj index c6529e054024..3fb29411d2be 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net47 @@ -20,14 +19,35 @@ false + + + true + + + true + + + + - - - + + + + - + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 6e2e462b8a72..ef4192ba81be 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs index 395d3f77aeea..d82feadf56b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -302,10 +302,10 @@ public Org.OpenAPITools.Model.NowGet200Response Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 201640a24d33..caadbe462ab4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net47 @@ -20,13 +19,34 @@ false + + + true + + + true + + + + - - - + + + + - + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index a136411ab795..69917ecc99b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs index c1d9901db861..41c6c080c5cb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -328,10 +328,10 @@ public Org.OpenAPITools.Model.Person Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 73a85280057e..121628b7fea1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net48 @@ -20,14 +19,35 @@ false + + + true + + + true + + + + - - - + + + + - + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index a136411ab795..69917ecc99b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs index 74252a406259..7f4f27d1b912 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -302,10 +302,10 @@ public Org.OpenAPITools.Model.Fruit Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 73a85280057e..121628b7fea1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net48 @@ -20,14 +19,35 @@ false + + + true + + + true + + + + - - - + + + + - + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index a136411ab795..69917ecc99b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs index 74252a406259..7f4f27d1b912 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -302,10 +302,10 @@ public Org.OpenAPITools.Model.Fruit Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 82bb1c228e8a..4a62f8f05df7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net48 @@ -20,13 +19,34 @@ false + + + true + + + true + + + + - - - + + + + - + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index a136411ab795..69917ecc99b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 490d20d1a61a..85bc1aac5dab 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -375,10 +375,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs index db3d9888945c..6277311b345b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -551,10 +551,10 @@ public Org.OpenAPITools.Model.FooGetDefaultResponse Default() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -964,10 +964,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1174,10 +1174,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1384,10 +1384,10 @@ public Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs index 144226daaa88..4a95c19fae8f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1460,10 +1460,10 @@ public Org.OpenAPITools.Model.HealthCheckResult Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1694,10 +1694,10 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1941,10 +1941,10 @@ public Org.OpenAPITools.Model.OuterComposite Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2175,10 +2175,10 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2434,10 +2434,10 @@ public string Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2644,10 +2644,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2854,10 +2854,10 @@ public Org.OpenAPITools.Model.MixedAnyOf Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3064,10 +3064,10 @@ public Org.OpenAPITools.Model.MixedOneOf Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3917,10 +3917,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 99add155ed62..846351642739 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -388,10 +388,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs index a414c4420ddd..6c0676ac7785 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs @@ -1325,10 +1325,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1622,10 +1622,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1867,10 +1867,10 @@ public Org.OpenAPITools.Model.Pet Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2629,10 +2629,10 @@ public Org.OpenAPITools.Model.ApiResponse Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2911,10 +2911,10 @@ public Org.OpenAPITools.Model.ApiResponse Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs index d96b8f3f429f..19048fd0b3dd 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs @@ -725,10 +725,10 @@ public Dictionary Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -947,10 +947,10 @@ public Org.OpenAPITools.Model.Order Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1206,10 +1206,10 @@ public Org.OpenAPITools.Model.Order Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs index 30d4f2f1aad1..bb6d746bb65b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs @@ -1574,10 +1574,10 @@ public Org.OpenAPITools.Model.User Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1639,10 +1639,10 @@ public Org.OpenAPITools.Model.User CustomHttpStatusCode599() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1890,10 +1890,10 @@ public string Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 73a85280057e..121628b7fea1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net48 @@ -20,14 +19,35 @@ false + + + true + + + true + + + + - - - + + + + - + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index a136411ab795..69917ecc99b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs index 74252a406259..7f4f27d1b912 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -302,10 +302,10 @@ public Org.OpenAPITools.Model.Fruit Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 73a85280057e..121628b7fea1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net48 @@ -20,14 +19,35 @@ false + + + true + + + true + + + + - - - + + + + - + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index a136411ab795..69917ecc99b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 490d20d1a61a..85bc1aac5dab 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -375,10 +375,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index db3d9888945c..6277311b345b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -551,10 +551,10 @@ public Org.OpenAPITools.Model.FooGetDefaultResponse Default() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -964,10 +964,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1174,10 +1174,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1384,10 +1384,10 @@ public Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 882649ce655c..ca72c476a8bc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1460,10 +1460,10 @@ public Org.OpenAPITools.Model.HealthCheckResult Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1694,10 +1694,10 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1941,10 +1941,10 @@ public Org.OpenAPITools.Model.OuterComposite Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2175,10 +2175,10 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2434,10 +2434,10 @@ public string Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2644,10 +2644,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2854,10 +2854,10 @@ public Org.OpenAPITools.Model.MixedAnyOf Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3064,10 +3064,10 @@ public Org.OpenAPITools.Model.MixedOneOf Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3917,10 +3917,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 99add155ed62..846351642739 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -388,10 +388,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index 0f1ebce15075..9cbf2bbd0852 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -1325,10 +1325,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1622,10 +1622,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1867,10 +1867,10 @@ public Org.OpenAPITools.Model.Pet Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2629,10 +2629,10 @@ public Org.OpenAPITools.Model.ApiResponse Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2911,10 +2911,10 @@ public Org.OpenAPITools.Model.ApiResponse Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index d96b8f3f429f..19048fd0b3dd 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -725,10 +725,10 @@ public Dictionary Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -947,10 +947,10 @@ public Org.OpenAPITools.Model.Order Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1206,10 +1206,10 @@ public Org.OpenAPITools.Model.Order Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs index 30d4f2f1aad1..bb6d746bb65b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs @@ -1574,10 +1574,10 @@ public Org.OpenAPITools.Model.User Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1639,10 +1639,10 @@ public Org.OpenAPITools.Model.User CustomHttpStatusCode599() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1890,10 +1890,10 @@ public string Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 73a85280057e..121628b7fea1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net48 @@ -20,14 +19,35 @@ false + + + true + + + true + + + + - - - + + + + - + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index a136411ab795..69917ecc99b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs index 395d3f77aeea..d82feadf56b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -302,10 +302,10 @@ public Org.OpenAPITools.Model.NowGet200Response Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 82bb1c228e8a..4a62f8f05df7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net48 @@ -20,13 +19,34 @@ false + + + true + + + true + + + + - - - + + + + - + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 05ce7e5830d8..67a08dd23ebd 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs index d9cc03e76599..b248b10c8880 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -330,10 +330,10 @@ public ListApiResponse(ILogger logger, System.Net.Http.HttpRequ ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj index fad95b68dbdd..10796985a422 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net8.0 @@ -21,12 +20,35 @@ false + + + true + + + true + + + + - - - + + + + + + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 05ce7e5830d8..67a08dd23ebd 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs index b69e537e6efe..dfb8a05d372a 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -304,10 +304,10 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj index fad95b68dbdd..10796985a422 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net8.0 @@ -21,12 +20,35 @@ false + + + true + + + true + + + + - - - + + + + + + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 05ce7e5830d8..67a08dd23ebd 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs index b69e537e6efe..dfb8a05d372a 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -304,10 +304,10 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 9f99b6957b6d..a17cb4f5dad5 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net8.0 @@ -21,11 +20,34 @@ false + + + true + + + true + + + + - - - + + + + + + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index d8ddfad1b40c..de068c66902a 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 490d20d1a61a..85bc1aac5dab 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -375,10 +375,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs index db3d9888945c..6277311b345b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -551,10 +551,10 @@ public Org.OpenAPITools.Model.FooGetDefaultResponse Default() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -964,10 +964,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1174,10 +1174,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1384,10 +1384,10 @@ public Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs index 2b9131d1f2fd..9582a1226518 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1460,10 +1460,10 @@ public Org.OpenAPITools.Model.HealthCheckResult Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1694,10 +1694,10 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1941,10 +1941,10 @@ public Org.OpenAPITools.Model.OuterComposite Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2175,10 +2175,10 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2434,10 +2434,10 @@ public string Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2644,10 +2644,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2854,10 +2854,10 @@ public Org.OpenAPITools.Model.MixedAnyOf Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3064,10 +3064,10 @@ public Org.OpenAPITools.Model.MixedOneOf Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3917,10 +3917,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 99add155ed62..846351642739 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -388,10 +388,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs index a414c4420ddd..6c0676ac7785 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs @@ -1325,10 +1325,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1622,10 +1622,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1867,10 +1867,10 @@ public Org.OpenAPITools.Model.Pet Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2629,10 +2629,10 @@ public Org.OpenAPITools.Model.ApiResponse Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2911,10 +2911,10 @@ public Org.OpenAPITools.Model.ApiResponse Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs index d96b8f3f429f..19048fd0b3dd 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs @@ -725,10 +725,10 @@ public Dictionary Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -947,10 +947,10 @@ public Org.OpenAPITools.Model.Order Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1206,10 +1206,10 @@ public Org.OpenAPITools.Model.Order Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs index 66c54a994961..653b8c4ab695 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs @@ -1582,10 +1582,10 @@ public Org.OpenAPITools.Model.User Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1647,10 +1647,10 @@ public Org.OpenAPITools.Model.User CustomHttpStatusCode599() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1925,10 +1925,10 @@ public string Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Org.OpenAPITools.csproj index d3c06f120ffe..0ca474f3c8b8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net8.0 @@ -20,12 +19,35 @@ false + + + true + + + true + + + + - - - + + + + + + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 05ce7e5830d8..67a08dd23ebd 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 1f8d4f80602a..344df099abea 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -377,10 +377,10 @@ public Call123TestSpecialTagsApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/DefaultApi.cs index 4a1b787df36b..f784c625cf5e 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -553,10 +553,10 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -966,10 +966,10 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1176,10 +1176,10 @@ public RolesReportGetApiResponse(ILogger logger, Syst ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1386,10 +1386,10 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs index c6aaaa3ae4fd..2d74ac5c61e1 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1462,10 +1462,10 @@ public FakeHealthGetApiResponse(ILogger logger, System ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1696,10 +1696,10 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1943,10 +1943,10 @@ public FakeOuterCompositeSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2177,10 +2177,10 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2436,10 +2436,10 @@ public FakeOuterStringSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2646,10 +2646,10 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2856,10 +2856,10 @@ public GetMixedAnyOfApiResponse(ILogger logger, System ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3066,10 +3066,10 @@ public GetMixedOneOfApiResponse(ILogger logger, System ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3919,10 +3919,10 @@ public TestClientModelApiResponse(ILogger logger, Sy ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index f2255affdb6b..37b635f88f8c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -390,10 +390,10 @@ public TestClassnameApiResponse(ILogger logger, System ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/PetApi.cs index e25fe5ad13cd..b98fc2ac0d07 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/PetApi.cs @@ -1327,10 +1327,10 @@ public FindPetsByStatusApiResponse(ILogger logger, ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1624,10 +1624,10 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1869,10 +1869,10 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2631,10 +2631,10 @@ public UploadFileApiResponse(ILogger logger, System.Net.H ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2913,10 +2913,10 @@ public UploadFileWithRequiredFileApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/StoreApi.cs index 69bcd9ac1d7e..8dcec67c5ad7 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/StoreApi.cs @@ -727,10 +727,10 @@ public GetInventoryApiResponse(ILogger logger, System.N ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -949,10 +949,10 @@ public GetOrderByIdApiResponse(ILogger logger, System.N ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1208,10 +1208,10 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/UserApi.cs index 6e5832560558..32d1fd54846a 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/UserApi.cs @@ -1584,10 +1584,10 @@ public GetUserByNameApiResponse(ILogger logger, System ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1649,10 +1649,10 @@ public bool TryOk( ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1927,10 +1927,10 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Org.OpenAPITools.csproj index fad95b68dbdd..10796985a422 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net8.0 @@ -21,12 +20,35 @@ false + + + true + + + true + + + + - - - + + + + + + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 05ce7e5830d8..67a08dd23ebd 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs index b69e537e6efe..dfb8a05d372a 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -304,10 +304,10 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj index fad95b68dbdd..10796985a422 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net8.0 @@ -21,12 +20,35 @@ false + + + true + + + true + + + + - - - + + + + + + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index d8ddfad1b40c..de068c66902a 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 490d20d1a61a..85bc1aac5dab 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -375,10 +375,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index db3d9888945c..6277311b345b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -551,10 +551,10 @@ public Org.OpenAPITools.Model.FooGetDefaultResponse Default() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -964,10 +964,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1174,10 +1174,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1384,10 +1384,10 @@ public Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index c83451d5c3ab..7ac78906185b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1460,10 +1460,10 @@ public Org.OpenAPITools.Model.HealthCheckResult Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1694,10 +1694,10 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1941,10 +1941,10 @@ public Org.OpenAPITools.Model.OuterComposite Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2175,10 +2175,10 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2434,10 +2434,10 @@ public string Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2644,10 +2644,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2854,10 +2854,10 @@ public Org.OpenAPITools.Model.MixedAnyOf Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3064,10 +3064,10 @@ public Org.OpenAPITools.Model.MixedOneOf Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3917,10 +3917,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 99add155ed62..846351642739 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -388,10 +388,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index 0f1ebce15075..9cbf2bbd0852 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -1325,10 +1325,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1622,10 +1622,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1867,10 +1867,10 @@ public Org.OpenAPITools.Model.Pet Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2629,10 +2629,10 @@ public Org.OpenAPITools.Model.ApiResponse Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2911,10 +2911,10 @@ public Org.OpenAPITools.Model.ApiResponse Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index d96b8f3f429f..19048fd0b3dd 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -725,10 +725,10 @@ public Dictionary Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -947,10 +947,10 @@ public Org.OpenAPITools.Model.Order Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1206,10 +1206,10 @@ public Org.OpenAPITools.Model.Order Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs index 66c54a994961..653b8c4ab695 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs @@ -1582,10 +1582,10 @@ public Org.OpenAPITools.Model.User Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1647,10 +1647,10 @@ public Org.OpenAPITools.Model.User CustomHttpStatusCode599() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1925,10 +1925,10 @@ public string Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj index d3c06f120ffe..0ca474f3c8b8 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net8.0 @@ -20,12 +19,35 @@ false + + + true + + + true + + + + - - - + + + + + + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 05ce7e5830d8..67a08dd23ebd 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 1f8d4f80602a..344df099abea 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -377,10 +377,10 @@ public Call123TestSpecialTagsApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/DefaultApi.cs index 4a1b787df36b..f784c625cf5e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -553,10 +553,10 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -966,10 +966,10 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1176,10 +1176,10 @@ public RolesReportGetApiResponse(ILogger logger, Syst ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1386,10 +1386,10 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs index c6aaaa3ae4fd..2d74ac5c61e1 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1462,10 +1462,10 @@ public FakeHealthGetApiResponse(ILogger logger, System ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1696,10 +1696,10 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1943,10 +1943,10 @@ public FakeOuterCompositeSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2177,10 +2177,10 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2436,10 +2436,10 @@ public FakeOuterStringSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2646,10 +2646,10 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2856,10 +2856,10 @@ public GetMixedAnyOfApiResponse(ILogger logger, System ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3066,10 +3066,10 @@ public GetMixedOneOfApiResponse(ILogger logger, System ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3919,10 +3919,10 @@ public TestClientModelApiResponse(ILogger logger, Sy ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index f2255affdb6b..37b635f88f8c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -390,10 +390,10 @@ public TestClassnameApiResponse(ILogger logger, System ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/PetApi.cs index e25fe5ad13cd..b98fc2ac0d07 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/PetApi.cs @@ -1327,10 +1327,10 @@ public FindPetsByStatusApiResponse(ILogger logger, ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1624,10 +1624,10 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1869,10 +1869,10 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2631,10 +2631,10 @@ public UploadFileApiResponse(ILogger logger, System.Net.H ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2913,10 +2913,10 @@ public UploadFileWithRequiredFileApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/StoreApi.cs index 69bcd9ac1d7e..8dcec67c5ad7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/StoreApi.cs @@ -727,10 +727,10 @@ public GetInventoryApiResponse(ILogger logger, System.N ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -949,10 +949,10 @@ public GetOrderByIdApiResponse(ILogger logger, System.N ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1208,10 +1208,10 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/UserApi.cs index 6e5832560558..32d1fd54846a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/UserApi.cs @@ -1584,10 +1584,10 @@ public GetUserByNameApiResponse(ILogger logger, System ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1649,10 +1649,10 @@ public bool TryOk( ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1927,10 +1927,10 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Org.OpenAPITools.csproj index fad95b68dbdd..10796985a422 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net8.0 @@ -21,12 +20,35 @@ false + + + true + + + true + + + + - - - + + + + + + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 05ce7e5830d8..67a08dd23ebd 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs index 3dfef38d490d..113b7c700d74 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -304,10 +304,10 @@ public NowGetApiResponse(ILogger logger, System.Net.Http.Http ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 9f99b6957b6d..a17cb4f5dad5 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true net8.0 @@ -21,11 +20,34 @@ false + + + true + + + true + + + + - - - + + + + + + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 66dc542c5c2c..8fd7adbef647 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,9 +8,9 @@ - - - + + + diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 74eade0879e4..c75d3016b1e9 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -374,10 +374,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index 75326be2d3b8..6a98a89f0675 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -550,10 +550,10 @@ public Org.OpenAPITools.Model.FooGetDefaultResponse Default() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -963,10 +963,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1173,10 +1173,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1383,10 +1383,10 @@ public Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 3a10ef1a96f5..3d95b5541258 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1459,10 +1459,10 @@ public Org.OpenAPITools.Model.HealthCheckResult Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1693,10 +1693,10 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1940,10 +1940,10 @@ public Org.OpenAPITools.Model.OuterComposite Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2174,10 +2174,10 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2433,10 +2433,10 @@ public string Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2643,10 +2643,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2853,10 +2853,10 @@ public Org.OpenAPITools.Model.MixedAnyOf Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3063,10 +3063,10 @@ public Org.OpenAPITools.Model.MixedOneOf Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -3916,10 +3916,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 93e8c0ed7f87..a7549c5566ff 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -387,10 +387,10 @@ public Org.OpenAPITools.Model.ModelClient Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index c0069fe74993..ea6f8d04b3c3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -1324,10 +1324,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1621,10 +1621,10 @@ public List Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1866,10 +1866,10 @@ public Org.OpenAPITools.Model.Pet Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2628,10 +2628,10 @@ public Org.OpenAPITools.Model.ApiResponse Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -2910,10 +2910,10 @@ public Org.OpenAPITools.Model.ApiResponse Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index d11d29e6b88d..7b631f5de8c5 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -724,10 +724,10 @@ public Dictionary Ok() ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -946,10 +946,10 @@ public Org.OpenAPITools.Model.Order Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1205,10 +1205,10 @@ public Org.OpenAPITools.Model.Order Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/UserApi.cs index 8460c13d69a1..7557b165bdb3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/UserApi.cs @@ -1573,10 +1573,10 @@ public Org.OpenAPITools.Model.User Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1638,10 +1638,10 @@ public Org.OpenAPITools.Model.User CustomHttpStatusCode599() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// @@ -1889,10 +1889,10 @@ public string Ok() ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) : #if NET6_0_OR_GREATER - null + null; #else - default - #endif; + default; + #endif } /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj index f50496337d10..fcff276ad299 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - true netstandard2.0 @@ -20,13 +19,35 @@ false + + + true + + + true + + + + - - - + + + + + + + + + + + + + + + diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTestsV2.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTestsV2.cs deleted file mode 100644 index 0a7945d386bc..000000000000 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTestsV2.cs +++ /dev/null @@ -1,579 +0,0 @@ -/* - * 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: \" \\ - * - * OpenAPI spec version: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ -using Org.OpenAPITools.Api; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Model; -using System; -using System.Collections.Generic; -using System.IO; -using System.Net.Http; -using System.Reflection; -using System.Threading.Tasks; -using Xunit; - -namespace Org.OpenAPITools.Test.Api -{ - /// - /// Class for testing PetApi - /// - /// - /// 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 PetApiTestsV2 : IDisposable - { - // CONFIGURE TESTING PARAMETERS HERE - // see the Integration Test Wiki for details: https://github.com/OpenAPITools/openapi-generator/wiki/Integration-Tests - private const string BasePath = "http://petstore.swagger.io/v2"; - private const long PetId = 100000; - private const long NotExistentId = 100001; - - private readonly HttpClient _httpClient = new HttpClient(); - private readonly PetApi _petApi; - - public PetApiTestsV2() - { - // prepare the client - _petApi = new PetApi(_httpClient, new Configuration - { - BasePath = BasePath, - Timeout = TimeSpan.FromSeconds(10), - UserAgent = "TEST_USER_AGENT" - }); - - // add a sample pet for the expected PetId - _petApi.AddPet(BuildSamplePet()); - - // ensure there is not a pet for that ID - try - { - _petApi.DeletePet(NotExistentId); - } - catch (ApiException ex) when (ex.ErrorCode == 404) { } - } - - #region Get - - /// - /// Test GetPetById with an existent Id - /// - [Fact] - public void GetPetById_GivenExistentId_ReturnsPet() - { - Pet expected = BuildSamplePet(); - - Pet response = _petApi.GetPetById(PetId); - - Assert.IsType(response); - Assert.Equal(expected.Name, response.Name); - Assert.Equal(expected.Status, response.Status); - Assert.IsType>(response.Tags); - Assert.Equal(expected.Tags[0].Id, response.Tags[0].Id); - Assert.Equal(expected.Tags[0].Name, response.Tags[0].Name); - Assert.IsType>(response.PhotoUrls); - Assert.Equal(expected.PhotoUrls[0], response.PhotoUrls[0]); - Assert.IsType(response.Category); - Assert.Equal(expected.Category.Id, response.Category.Id); - Assert.Equal(expected.Category.Name, response.Category.Name); - } - - /// - /// Test GetPetById with a not existent Id - /// - [Fact] - public void GetPetById_GivenNotExistentId_ThrowsApiException() - { - var exception = Assert.Throws(() => - { - _petApi.GetPetById(NotExistentId); - }); - - Assert.IsType(exception); - Assert.Equal(404, exception.ErrorCode); - Assert.Equal("{\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}", exception.ErrorContent); - Assert.Equal("Error calling GetPetById: {\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}", exception.Message); - } - - /// - /// Test GetPetByIdWithHttpInfo with an existent Id - /// - [Fact] - public void GetPetByIdWithHttpInfo_GivenExistentId_Returns200Response() - { - Pet expected = BuildSamplePet(); - - ApiResponse response = _petApi.GetPetByIdWithHttpInfo(PetId); - Pet result = response.Data; - - Assert.IsType>(response); - Assert.Equal(200, (int)response.StatusCode); - Assert.True(response.Headers.ContainsKey("Content-Type")); - Assert.Equal("application/json", response.Headers["Content-Type"][0]); - - Assert.Equal(expected.Name, result.Name); - Assert.Equal(expected.Status, result.Status); - Assert.IsType>(result.Tags); - Assert.Equal(expected.Tags[0].Id, result.Tags[0].Id); - Assert.Equal(expected.Tags[0].Name, result.Tags[0].Name); - Assert.IsType>(result.PhotoUrls); - Assert.Equal(expected.PhotoUrls[0], result.PhotoUrls[0]); - Assert.IsType(result.Category); - Assert.Equal(expected.Category.Id, result.Category.Id); - Assert.Equal(expected.Category.Name, result.Category.Name); - } - - /// - /// Test GetPetByIdWithHttpInfo with a not existent Id and the ExceptionFactory disabled - /// - [Fact] - public void GetPetByIdWithHttpInfo_GivenNotExistentId_ThrowsApiException() - { - var exception = Assert.Throws(() => - { - _petApi.GetPetByIdWithHttpInfo(NotExistentId); - }); - - Assert.IsType(exception); - Assert.Equal(404, exception.ErrorCode); - Assert.Equal("{\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}", exception.ErrorContent); - Assert.Equal("Error calling GetPetById: {\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}", exception.Message); - } - - /// - /// Test GetPetByIdWithHttpInfo with a not existent Id and the ExceptionFactory disabled - /// - [Fact] - public void GetPetByIdWithHttpInfo_WithoutExceptionFactory_GivenNotExistentId_Returns404Response() - { - _petApi.ExceptionFactory = null; - ApiResponse response = _petApi.GetPetByIdWithHttpInfo(NotExistentId); - Pet result = response.Data; - - Assert.IsType>(response); - Assert.Equal(404, (int)response.StatusCode); - Assert.True(response.Headers.ContainsKey("Content-Type")); - Assert.Equal("application/json", response.Headers["Content-Type"][0]); - - Assert.Null(result); - Assert.Equal("{\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}", response.RawContent); - Assert.Equal("Not Found", response.ErrorText); - } - - #endregion - - #region Get Async - - /// - /// Test GetPetByIdAsync with an existent Id. - /// - [Fact] - public async Task GetPetByIdAsync_GivenExistentId_ReturnsPet() - { - Pet expected = BuildSamplePet(); - - Pet response = await _petApi.GetPetByIdAsync(PetId); - - Assert.IsType(response); - Assert.Equal(expected.Name, response.Name); - Assert.Equal(expected.Status, response.Status); - Assert.IsType>(response.Tags); - Assert.Equal(expected.Tags[0].Id, response.Tags[0].Id); - Assert.Equal(expected.Tags[0].Name, response.Tags[0].Name); - Assert.IsType>(response.PhotoUrls); - Assert.Equal(expected.PhotoUrls[0], response.PhotoUrls[0]); - Assert.IsType(response.Category); - Assert.Equal(expected.Category.Id, response.Category.Id); - Assert.Equal(expected.Category.Name, response.Category.Name); - } - - /// - /// Test GetPetByIdAsync with a not existent Id. - /// - [Fact] - public async Task GetPetByIdAsync_GivenNotExistentId_ThrowsApiException() - { - var exception = await Assert.ThrowsAsync(() => _petApi.GetPetByIdAsync(NotExistentId)); - - Assert.IsType(exception); - Assert.Equal(404, exception.ErrorCode); - Assert.Equal("{\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}", exception.ErrorContent); - Assert.Equal("Error calling GetPetById: {\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}", exception.Message); - } - - /// - /// Test GetPetByIdWithHttpInfoAsync with an existent Id. - /// - [Fact] - public async Task GetPetByIdWithHttpInfoAsync_GivenExistentId_Returns200Response() - { - Pet expected = BuildSamplePet(); - - ApiResponse response = await _petApi.GetPetByIdWithHttpInfoAsync(PetId); - Pet result = response.Data; - - Assert.IsType>(response); - Assert.Equal(200, (int)response.StatusCode); - Assert.True(response.Headers.ContainsKey("Content-Type")); - Assert.Equal("application/json", response.Headers["Content-Type"][0]); - - Assert.Equal(expected.Name, result.Name); - Assert.Equal(expected.Status, result.Status); - Assert.IsType>(result.Tags); - Assert.Equal(expected.Tags[0].Id, result.Tags[0].Id); - Assert.Equal(expected.Tags[0].Name, result.Tags[0].Name); - Assert.IsType>(result.PhotoUrls); - Assert.Equal(expected.PhotoUrls[0], result.PhotoUrls[0]); - Assert.IsType(result.Category); - Assert.Equal(expected.Category.Id, result.Category.Id); - Assert.Equal(expected.Category.Name, result.Category.Name); - } - - /// - /// Test GetPetByIdWithHttpInfoAsync with a not existent Id and the ExceptionFactory disabled. - /// - [Fact] - public async Task GetPetByIdWithHttpInfoAsync_GivenNotExistentId_ThrowsApiException() - { - var exception = await Assert.ThrowsAsync(() => _petApi.GetPetByIdWithHttpInfoAsync(NotExistentId)); - - Assert.IsType(exception); - Assert.Equal(404, exception.ErrorCode); - Assert.Equal("{\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}", exception.ErrorContent); - Assert.Equal("Error calling GetPetById: {\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}", exception.Message); - } - - /// - /// Test GetPetByIdWithHttpInfoAsync with a not existent Id and the ExceptionFactory disabled. - /// - [Fact] - public async Task GetPetByIdWithHttpInfoAsync_WithoutExceptionFactory_GivenNotExistentId_Returns404Response() - { - _petApi.ExceptionFactory = null; - ApiResponse response = await _petApi.GetPetByIdWithHttpInfoAsync(NotExistentId); - Pet result = response.Data; - - Assert.IsType>(response); - Assert.Equal(404, (int)response.StatusCode); - Assert.True(response.Headers.ContainsKey("Content-Type")); - Assert.Equal("application/json", response.Headers["Content-Type"][0]); - - Assert.Null(result); - Assert.Equal("{\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}", response.RawContent); - Assert.Equal("Not Found", response.ErrorText); - } - - #endregion - - #region Find - - /// - /// Test FindPetsByStatus filtering available pets. - /// - [Fact(Skip = "too much elements to fetch, the server cut the json content")] - public void FindPetsByStatus_ReturnsListOfPetsFiltered() - { - List pets = _petApi.FindPetsByStatus(new List(new[] { "available" })); - - foreach (Pet pet in pets) - { - Assert.IsType(pet); - Assert.Equal(Pet.StatusEnum.Available, pet.Status); - } - } - - #endregion - - #region Add - - /// - /// Test AddPet with an existent Id. The current server beavior is to update the Pet. - /// - [Fact] - public void AddPet_GivenExistentId_UpdateThePet() - { - Pet pet = BuildSamplePet(); - - _petApi.AddPet(pet); - } - - #endregion - - #region AddAsync - - /// - /// Test AddPetAsync with an existent Id. The current server beavior is to update the Pet. - /// - [Fact] - public async Task AddPetAsync_GivenExistentId_UpdateThePet() - { - Pet pet = BuildSamplePet(); - - await _petApi.AddPetAsync(pet); - } - - #endregion - - #region Update - - /// - /// Test UpdatePet with an existent Id. - /// - [Fact] - public void UpdatePet_GivenExistentId_UpdateThePet() - { - Pet pet = BuildSamplePet(); - - _petApi.UpdatePet(pet); - } - - /// - /// Test UpdatePet with a not existent Id. The current server beavior is to create the Pet. - /// - [Fact] - public void UpdatePet_GivenNotExistentId_UpdateThePet() - { - Pet pet = BuildSamplePet(i => i.Id = NotExistentId); - - _petApi.UpdatePet(pet); - } - - /// - /// Test UpdatePetWithForm with an existent Id. - /// - [Fact] - public void UpdatePetWithForm_GivenExistentId_UpdatesTheFields() - { - Pet expected = BuildSamplePet(pet => - { - pet.Name = "name updated"; - pet.Status = Pet.StatusEnum.Pending; - }); - - _petApi.UpdatePetWithForm(PetId, "name updated", "pending"); - - Pet response = _petApi.GetPetById(PetId); - - Assert.IsType(response); - Assert.Equal(expected.Name, response.Name); - Assert.Equal(expected.Status, response.Status); - Assert.IsType>(response.Tags); - Assert.Equal(expected.Tags[0].Id, response.Tags[0].Id); - Assert.Equal(expected.Tags[0].Name, response.Tags[0].Name); - Assert.IsType>(response.PhotoUrls); - Assert.Equal(expected.PhotoUrls[0], response.PhotoUrls[0]); - Assert.IsType(response.Category); - Assert.Equal(expected.Category.Id, response.Category.Id); - Assert.Equal(expected.Category.Name, response.Category.Name); - - _petApi.UpdatePetWithForm(PetId, "name updated twice"); - - response = _petApi.GetPetById(PetId); - - Assert.Equal("name updated twice", response.Name); - } - - /// - /// Test UploadFile with an existent Id. - /// - [Fact(Skip = "generates 500 code at the time of test")] - public void UploadFile_UploadFileUsingFormParameters_UpdatesTheFields() - { - var assembly = Assembly.GetExecutingAssembly(); - using Stream imageStream = assembly.GetManifestResourceStream("Org.OpenAPITools.Test.linux-logo.png"); - _petApi.UploadFile(PetId, "metadata sample", imageStream); - } - - /// - /// Test UploadFile with an existent Id. - /// - [Fact(Skip = "generates 500 code at the time of test")] - public void UploadFile_UploadFileAlone_UpdatesTheField() - { - var assembly = Assembly.GetExecutingAssembly(); - using Stream imageStream = assembly.GetManifestResourceStream("Org.OpenAPITools.Test.linux-logo.png"); - _petApi.UploadFile(petId: PetId, file: imageStream); - } - - #endregion - - #region UpdateAsync - - /// - /// Test UpdatePetAsync with an existent Id. - /// - [Fact] - public async Task UpdatePetAsync_GivenExistentId_UpdateThePet() - { - Pet pet = BuildSamplePet(); - - await _petApi.UpdatePetAsync(pet); - } - - /// - /// Test UpdatePetAsync with a not existent Id. The current server beavior is to create the Pet. - /// - [Fact] - public async Task UpdatePetAsync_GivenNotExistentId_UpdateThePet() - { - Pet pet = BuildSamplePet(i => i.Id = NotExistentId); - - await _petApi.UpdatePetAsync(pet); - } - - /// - /// Test UpdatePetWithFormAsync with an existent Id. - /// - [Fact] - public async Task UpdatePetWithFormAsync_GivenExistentId_UpdatesTheFields() - { - Pet expected = BuildSamplePet(pet => - { - pet.Name = "name updated"; - pet.Status = Pet.StatusEnum.Pending; - }); - - await _petApi.UpdatePetWithFormAsync(PetId, "name updated", "pending"); - - Pet response = await _petApi.GetPetByIdAsync(PetId); - - Assert.IsType(response); - Assert.Equal(expected.Name, response.Name); - Assert.Equal(expected.Status, response.Status); - Assert.IsType>(response.Tags); - Assert.Equal(expected.Tags[0].Id, response.Tags[0].Id); - Assert.Equal(expected.Tags[0].Name, response.Tags[0].Name); - Assert.IsType>(response.PhotoUrls); - Assert.Equal(expected.PhotoUrls[0], response.PhotoUrls[0]); - Assert.IsType(response.Category); - Assert.Equal(expected.Category.Id, response.Category.Id); - Assert.Equal(expected.Category.Name, response.Category.Name); - - await _petApi.UpdatePetWithFormAsync(PetId, "name updated twice"); - - response = await _petApi.GetPetByIdAsync(PetId); - - Assert.Equal("name updated twice", response.Name); - } - - /// - /// Test UploadFileAsync with an existent Id. - /// - [Fact(Skip = "generates 500 code at the time of test")] - public async Task UploadFileAsync_UploadFileUsingFormParameters_UpdatesTheFields() - { - var assembly = Assembly.GetExecutingAssembly(); - await using Stream imageStream = assembly.GetManifestResourceStream("Org.OpenAPITools.Test.linux-logo.png"); - await _petApi.UploadFileAsync(PetId, "metadata sample", imageStream); - } - - /// - /// Test UploadFileAsync with an existent Id. - /// - [Fact(Skip = "generates 500 code at the time of test")] - public async Task UploadFileAsync_UploadFileAlone_UpdatesTheField() - { - var assembly = Assembly.GetExecutingAssembly(); - await using Stream imageStream = assembly.GetManifestResourceStream("Org.OpenAPITools.Test.linux-logo.png"); - await _petApi.UploadFileAsync(petId: PetId, file: imageStream); - } - - #endregion - - #region Delete - - /// - /// Test DeletePet with an existent Id. - /// - [Fact] - public void DeletePet_GivenExistentId_DeleteThePet() - { - _petApi.DeletePet(PetId); - - var exception = Assert.Throws(() => _petApi.GetPetById(PetId)); - - Assert.IsType(exception); - Assert.Equal(404, exception.ErrorCode); - } - - /// - /// Test DeletePet with a not existent Id. The current server beavior is to return 404. - /// - [Fact] - public void DeletePet_GivenNotExistentId_ThrowsApiException() - { - var exception = Assert.Throws(() => _petApi.DeletePet(NotExistentId)); - - Assert.IsType(exception); - Assert.Equal(404, exception.ErrorCode); - } - - #endregion - - #region DeleteAsync - - /// - /// Test DeletePet with an existent Id. - /// - [Fact] - public async Task DeletePetAsync_GivenExistentId_DeleteThePet() - { - await _petApi.DeletePetAsync(PetId); - - var exception = Assert.Throws(() => _petApi.GetPetById(PetId)); - - Assert.IsType(exception); - Assert.Equal(404, exception.ErrorCode); - } - - /// - /// Test DeletePet with a not existent Id. The current server beavior is to return 404. - /// - [Fact] - public async Task DeletePetAsync_GivenNotExistentId_ThrowsApiException() - { - var exception = await Assert.ThrowsAsync(() => _petApi.DeletePetAsync(NotExistentId)); - - Assert.IsType(exception); - Assert.Equal(404, exception.ErrorCode); - } - - #endregion - - private static Pet BuildSamplePet(Action callback = null) - { - var pet = new Pet( - name: "csharp test", - photoUrls: new List { "http://petstore.com/csharp_test" }) - { - Id = PetId, - Status = Pet.StatusEnum.Available, - Category = new Category { Id = 10, Name = "sample category" }, - Tags = new List { new Tag { Id = 100, Name = "sample tag" } } - }; - - callback?.Invoke(pet); - - return pet; - } - - public void Dispose() - { - // remove the pet after testing - try - { - _petApi.DeletePet(PetId); - } - catch (ApiException ex) when (ex.ErrorCode == 404) { } - - _petApi.Dispose(); - _httpClient.Dispose(); - } - } -} diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 20f33144c2a7..8fd7adbef647 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -3,25 +3,17 @@ Org.OpenAPITools.Test Org.OpenAPITools.Test - netcoreapp3.0 + net7.0 false - - - - - - + + + - - - - - diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 29cc7e0a7168..60f5fb785a72 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - false netstandard2.0 @@ -20,18 +19,33 @@ false + + + true + + + true + + + + - + + + - + + + - + + diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 25b33d9899f1..a667b359173b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -3,14 +3,14 @@ Org.OpenAPITools.Test Org.OpenAPITools.Test - net7.0;net47 + net7.0;net47;net8.0 false - - - + + + diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 29da5e099768..a0ee50902740 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,8 +1,7 @@ - false - netstandard2.1;net47 + netstandard2.1;net47;net8.0 Org.OpenAPITools Org.OpenAPITools Library @@ -20,19 +19,35 @@ false + + + true + + + true + + + + - - + + + + + - + + + - + + diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 6e2e462b8a72..ef4192ba81be 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj index d3b74c210251..093a6d321f81 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - false net47 @@ -20,19 +19,35 @@ false + + + true + + + true + + + + - - + + + + + - + + + - + + diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index a136411ab795..69917ecc99b1 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 31ed9dab8ebd..9a18b0070565 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - false net48 @@ -20,21 +19,35 @@ false + + + true + + + true + + + + - - + + + + + - + - + + - - + + diff --git a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index a381e6a2f3cf..3bc135471dba 100644 --- a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Org.OpenAPITools.csproj index a5a6bf6200b9..4a5f5a0cc9c3 100644 --- a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - false net6.0 @@ -21,15 +20,34 @@ false + + + true + + + true + + + + - - + + + - + + + + + + + + + diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 2bd81bb6826e..80c8073c29d7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Org.OpenAPITools.csproj index dff6798bca8b..88aeef57691f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - false net7.0 @@ -21,16 +20,35 @@ false + + + true + + + true + + + + - - + + + - + + + + + + + + + diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj index dff6798bca8b..88aeef57691f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - false net7.0 @@ -21,16 +20,35 @@ false + + + true + + + true + + + + - - + + + - + + + + + + + + + diff --git a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 2bd81bb6826e..80c8073c29d7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 95d4b0a15bd3..34f952f24ea4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - false net7.0 @@ -21,15 +20,34 @@ false + + + true + + + true + + + + - - + + + - + + + + + + + + + diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 66dc542c5c2c..8fd7adbef647 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -8,9 +8,9 @@ - - - + + + diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 05f8f0bf135f..ef7e07f7ec0d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - false netstandard2.0 @@ -20,19 +19,35 @@ false + + + true + + + true + + + + - - + + + + + - + + + - + + diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj index 07e2634c313b..1392d9caf6b0 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj @@ -23,9 +23,9 @@ OpenAPI spec version: 1.0.0 - - - runtime; build; native; contentfiles; analyzers; buildtransitive + + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 05f8f0bf135f..ef7e07f7ec0d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -1,5 +1,4 @@ - false netstandard2.0 @@ -20,19 +19,35 @@ false + + + true + + + true + + + + - - + + + + + - + + + - + +