diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java index a367969d479..96694b4552d 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java @@ -492,14 +492,6 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co public ModelsMap postProcessModels(ModelsMap objs) { for (ModelMap mo : objs.getModels()) { CodegenModel cm = mo.getModel(); - for (CodegenProperty var : cm.vars) { - // check to see if model name is same as the property name - // which will result in compilation error - // if found, prepend with _ to workaround the limitation - if (var.name.equalsIgnoreCase(cm.classname)) { - var.name = "_" + var.name; - } - } if (cm.isEnum && !cm.vendorExtensions.containsKey(this.zeroBasedEnumVendorExtension)) { if (Boolean.TRUE.equals(this.zeroBasedEnums)) { @@ -568,6 +560,17 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co } private void patchProperty(CodegenModel model, CodegenProperty property) { + String tmpPropertyName = escapeReservedWord(model, property.name); + if (property.name != tmpPropertyName) { + // the casing will be wrong if we just set the name to escapeReservedWord + // if we try to fix it with camelize, underscores get stripped out + // so test if the name was escaped and then replace var with Var + property.name = tmpPropertyName; + String firstCharacter = property.name.substring(0, 1); + property.name = property.name.substring(1); + property.name = firstCharacter.toUpperCase(Locale.ROOT) + property.name; + } + /** * Hotfix for this issue * https://github.com/OpenAPITools/openapi-generator/issues/12155 @@ -915,6 +918,54 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co } } + for (ModelMap modelHashMap : allModels) { + CodegenModel codegenModel = modelHashMap.getModel(); + + for (CodegenParameter parameter : operation.allParams) { + parameter.paramName = escapeReservedWord(parameter.paramName); + } + + for (CodegenParameter parameter : operation.bodyParams) { + parameter.paramName = escapeReservedWord(parameter.paramName); + } + + for (CodegenParameter parameter : operation.cookieParams) { + parameter.paramName = escapeReservedWord(parameter.paramName); + } + + for (CodegenParameter parameter : operation.formParams) { + parameter.paramName = escapeReservedWord(parameter.paramName); + } + + for (CodegenParameter parameter : operation.headerParams) { + parameter.paramName = escapeReservedWord(parameter.paramName); + } + + for (CodegenParameter parameter : operation.implicitHeadersParams) { + parameter.paramName = escapeReservedWord(parameter.paramName); + } + + for (CodegenParameter parameter : operation.optionalParams) { + parameter.paramName = escapeReservedWord(parameter.paramName); + } + + for (CodegenParameter parameter : operation.pathParams) { + parameter.paramName = escapeReservedWord(parameter.paramName); + } + + for (CodegenParameter parameter : operation.queryParams) { + parameter.paramName = escapeReservedWord(parameter.paramName); + } + + for (CodegenParameter parameter : operation.requiredAndNotNullableParams) { + parameter.paramName = escapeReservedWord(parameter.paramName); + } + + for (CodegenParameter parameter : operation.requiredParams) { + parameter.paramName = escapeReservedWord(parameter.paramName); + } + } + if (!isSupportNullable()) { for (CodegenParameter parameter : operation.allParams) { CodegenModel model = null; @@ -1070,20 +1121,27 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co // pet_id => petId name = camelize(name, LOWERCASE_FIRST_LETTER); - // for reserved word or word starting with number, append _ - if (isReservedWord(name) || name.matches("^\\d.*")) { - name = escapeReservedWord(name); - } - return name; } + public String escapeReservedWord(CodegenModel model, String name) { + name = this.escapeReservedWord(name); + + return name.equalsIgnoreCase(model.getClassname()) + ? "var" + camelize(name) + : name; + } + @Override public String escapeReservedWord(String name) { - if (this.reservedWordsMappings().containsKey(name)) { - return this.reservedWordsMappings().get(name); + if (reservedWords().contains(name) || + reservedWords().contains(name.toLowerCase(Locale.ROOT)) || + reservedWords().contains(camelize(sanitizeName(name))) || + isReservedWord(name) || + name.matches("^\\d.*")) { + name = "var" + camelize(name); } - return "_" + name; + return name; } /** diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java index 0837fbb9d9b..8fc1df6b8f8 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java @@ -598,15 +598,6 @@ public class CSharpNetCoreClientCodegen extends AbstractCSharpCodegen { postProcessPattern(property.pattern, property.vendorExtensions); postProcessEmitDefaultValue(property.vendorExtensions); - // remove once https://github.com/OpenAPITools/openapi-generator/pull/13681 is merged - if (GENERICHOST.equals(getLibrary())) { - // all c# libraries should want this, but avoid breaking changes for now - // a class cannot contain a property with the same name - if (property.name.equals(model.classname)) { - property.name = property.name + "Property"; - } - } - super.postProcessModelProperty(model, property); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/ClassModel.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/ClassModel.md index f39982657c8..c90a44a6f84 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/ClassModel.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/ClassModel.md @@ -5,7 +5,7 @@ Model for testing model with \"_class\" property Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/FakeApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/FakeApi.md index c5ed3eb8340..7bdf5246aac 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/FakeApi.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/FakeApi.md @@ -809,7 +809,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) +> void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -837,14 +837,14 @@ namespace Example var apiInstance = new FakeApi(config); var number = 8.14D; // decimal | None - var _double = 1.2D; // double | None + var varDouble = 1.2D; // double | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None - var _byte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None + var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var integer = 56; // int? | None (optional) var int32 = 56; // int? | None (optional) var int64 = 789L; // long? | None (optional) - var _float = 3.4F; // float? | None (optional) - var _string = "_string_example"; // string | None (optional) + var varFloat = 3.4F; // float? | None (optional) + var varString = "string_example"; // string | None (optional) var binary = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | None (optional) var date = DateTime.Parse("2013-10-20"); // DateTime? | None (optional) var dateTime = DateTime.Parse(""2010-02-01T10:20:10.111110+01:00""); // DateTime? | None (optional) (default to "2010-02-01T10:20:10.111110+01:00") @@ -854,7 +854,7 @@ namespace Example try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + apiInstance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } catch (ApiException e) { @@ -874,7 +874,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + apiInstance.TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } catch (ApiException e) { @@ -889,14 +889,14 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **number** | **decimal** | None | | -| **_double** | **double** | None | | +| **varDouble** | **double** | None | | | **patternWithoutDelimiter** | **string** | None | | -| **_byte** | **byte[]** | None | | +| **varByte** | **byte[]** | None | | | **integer** | **int?** | None | [optional] | | **int32** | **int?** | None | [optional] | | **int64** | **long?** | None | [optional] | -| **_float** | **float?** | None | [optional] | -| **_string** | **string** | None | [optional] | +| **varFloat** | **float?** | None | [optional] | +| **varString** | **string** | None | [optional] | | **binary** | **System.IO.Stream****System.IO.Stream** | None | [optional] | | **date** | **DateTime?** | None | [optional] | | **dateTime** | **DateTime?** | None | [optional] [default to "2010-02-01T10:20:10.111110+01:00"] | diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/FooGetDefaultResponse.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/FooGetDefaultResponse.md index dde9b9729b9..9ebee827949 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/FooGetDefaultResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] +**VarString** | [**Foo**](Foo.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/FormatTest.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/FormatTest.md index c2144b5e3cf..2d28c89fa30 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/FormatTest.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/FormatTest.md @@ -10,11 +10,11 @@ Name | Type | Description | Notes **Int64** | **long** | | [optional] **UnsignedLong** | **ulong** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] -**String** | **string** | | [optional] -**Byte** | **byte[]** | | +**VarFloat** | **float** | | [optional] +**VarDouble** | **double** | | [optional] +**VarDecimal** | **decimal** | | [optional] +**VarString** | **string** | | [optional] +**VarByte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] **Date** | **DateTime** | | **DateTime** | **DateTime** | | [optional] diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/List.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/List.md index 2862c7e5321..ef729179265 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/List.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/List.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_123List** | **string** | | [optional] +**var123List** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/Model200Response.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/Model200Response.md index 31f4d86fe43..4b6338af424 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/Model200Response.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/Model200Response.md @@ -6,7 +6,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **int** | | [optional] -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/ModelClient.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/ModelClient.md index c29a6287433..45f4e41644f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/ModelClient.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/ModelClient.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Client** | **string** | | [optional] +**varClient** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/Name.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/Name.md index 692af702b5b..a5ee6ef12f9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/Name.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/Name.md @@ -5,10 +5,10 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Name** | **int** | | +**VarName** | **int** | | **SnakeCase** | **int** | | [optional] [readonly] **Property** | **string** | | [optional] -**_123Number** | **int** | | [optional] [readonly] +**var123Number** | **int** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/Return.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/Return.md index 2c7c97e09da..052ac919006 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/Return.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Return** | **int** | | [optional] +**VarReturn** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/SpecialModelName.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/SpecialModelName.md index 648179799e1..7f8ffca34fa 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/SpecialModelName.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SpecialPropertyName** | **long** | | [optional] -**_SpecialModelName** | **string** | | [optional] +**VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs index ca68e330338..db7210ad86f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs @@ -233,14 +233,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// - void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); + void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -258,14 +258,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); + ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); /// /// To test enum parameters /// @@ -659,14 +659,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -675,7 +675,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -685,14 +685,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -701,7 +701,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// To test enum parameters /// @@ -2228,14 +2228,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2243,9 +2243,9 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// - public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) + public void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) { - TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } /// @@ -2253,14 +2253,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2268,7 +2268,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2276,10 +2276,10 @@ namespace Org.OpenAPITools.Api throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); } - // verify the required parameter '_byte' is set - if (_byte == null) + // verify the required parameter 'varByte' is set + if (varByte == null) { - throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); } Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2317,17 +2317,17 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.FormParameters.Add("int64", Org.OpenAPITools.Client.ClientUtils.ParameterToString(int64)); // form parameter } localVarRequestOptions.FormParameters.Add("number", Org.OpenAPITools.Client.ClientUtils.ParameterToString(number)); // form parameter - if (_float != null) + if (varFloat != null) { - localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_float)); // form parameter + localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varFloat)); // form parameter } - localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_double)); // form parameter - if (_string != null) + localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varDouble)); // form parameter + if (varString != null) { - localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_string)); // form parameter + localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varString)); // form parameter } localVarRequestOptions.FormParameters.Add("pattern_without_delimiter", Org.OpenAPITools.Client.ClientUtils.ParameterToString(patternWithoutDelimiter)); // form parameter - localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter + localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varByte)); // form parameter if (binary != null) { localVarRequestOptions.FileParameters.Add("binary", binary); @@ -2378,14 +2378,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2394,9 +2394,9 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); + await TestEndpointParametersWithHttpInfoAsync(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -2404,14 +2404,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2420,7 +2420,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2428,10 +2428,10 @@ namespace Org.OpenAPITools.Api throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); } - // verify the required parameter '_byte' is set - if (_byte == null) + // verify the required parameter 'varByte' is set + if (varByte == null) { - throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); } @@ -2470,17 +2470,17 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.FormParameters.Add("int64", Org.OpenAPITools.Client.ClientUtils.ParameterToString(int64)); // form parameter } localVarRequestOptions.FormParameters.Add("number", Org.OpenAPITools.Client.ClientUtils.ParameterToString(number)); // form parameter - if (_float != null) + if (varFloat != null) { - localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_float)); // form parameter + localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varFloat)); // form parameter } - localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_double)); // form parameter - if (_string != null) + localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varDouble)); // form parameter + if (varString != null) { - localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_string)); // form parameter + localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varString)); // form parameter } localVarRequestOptions.FormParameters.Add("pattern_without_delimiter", Org.OpenAPITools.Client.ClientUtils.ParameterToString(patternWithoutDelimiter)); // form parameter - localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter + localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varByte)); // form parameter if (binary != null) { localVarRequestOptions.FileParameters.Add("binary", binary); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/ClassModel.cs index acfee052180..b7b439f9265 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/ClassModel.cs @@ -35,40 +35,40 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _class. - public ClassModel(string _class = default(string)) + /// varClass. + public ClassModel(string varClass = default(string)) { - this._Class = _class; - if (this.Class != null) + this._VarClass = varClass; + if (this.VarClass != null) { - this._flagClass = true; + this._flagVarClass = true; } this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name = "_class", EmitDefaultValue = false)] - public string Class + public string VarClass { - get{ return _Class;} + get{ return _VarClass;} set { - _Class = value; - _flagClass = true; + _VarClass = value; + _flagVarClass = true; } } - private string _Class; - private bool _flagClass; + private string _VarClass; + private bool _flagVarClass; /// - /// Returns false as Class should not be serialized given that it's read-only. + /// Returns false as VarClass should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerializeClass() + public bool ShouldSerializeVarClass() { - return _flagClass; + return _flagVarClass; } /// /// Gets or Sets additional properties @@ -84,7 +84,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ClassModel {\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -128,9 +128,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Class != null) + if (this.VarClass != null) { - hashCode = (hashCode * 59) + this.Class.GetHashCode(); + hashCode = (hashCode * 59) + this.VarClass.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 93db2191545..d18b8493f48 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -35,40 +35,40 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _string. - public FooGetDefaultResponse(Foo _string = default(Foo)) + /// varString. + public FooGetDefaultResponse(Foo varString = default(Foo)) { - this._String = _string; - if (this.String != null) + this._VarString = varString; + if (this.VarString != null) { - this._flagString = true; + this._flagVarString = true; } this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String + public Foo VarString { - get{ return _String;} + get{ return _VarString;} set { - _String = value; - _flagString = true; + _VarString = value; + _flagVarString = true; } } - private Foo _String; - private bool _flagString; + private Foo _VarString; + private bool _flagVarString; /// - /// Returns false as String should not be serialized given that it's read-only. + /// Returns false as VarString should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerializeString() + public bool ShouldSerializeVarString() { - return _flagString; + return _flagVarString; } /// /// Gets or Sets additional properties @@ -84,7 +84,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class FooGetDefaultResponse {\n"); - sb.Append(" String: ").Append(String).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -128,9 +128,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.String != null) + if (this.VarString != null) { - hashCode = (hashCode * 59) + this.String.GetHashCode(); + hashCode = (hashCode * 59) + this.VarString.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/FormatTest.cs index ddd33937d67..8c357b2b32c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/FormatTest.cs @@ -49,11 +49,11 @@ namespace Org.OpenAPITools.Model /// int64. /// unsignedLong. /// number (required). - /// _float. - /// _double. - /// _decimal. - /// _string. - /// _byte (required). + /// varFloat. + /// varDouble. + /// varDecimal. + /// varString. + /// varByte (required). /// binary. /// date (required). /// dateTime. @@ -62,15 +62,15 @@ namespace Org.OpenAPITools.Model /// A string that is a 10 digit number. Can have leading zeros.. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. /// None. - public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) + public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) { this._Number = number; - // to ensure "_byte" is required (not null) - if (_byte == null) + // to ensure "varByte" is required (not null) + if (varByte == null) { - throw new ArgumentNullException("_byte is a required property for FormatTest and cannot be null"); + throw new ArgumentNullException("varByte is a required property for FormatTest and cannot be null"); } - this._Byte = _byte; + this._VarByte = varByte; this._Date = date; // to ensure "password" is required (not null) if (password == null) @@ -103,25 +103,25 @@ namespace Org.OpenAPITools.Model { this._flagUnsignedLong = true; } - this._Float = _float; - if (this.Float != null) + this._VarFloat = varFloat; + if (this.VarFloat != null) { - this._flagFloat = true; + this._flagVarFloat = true; } - this._Double = _double; - if (this.Double != null) + this._VarDouble = varDouble; + if (this.VarDouble != null) { - this._flagDouble = true; + this._flagVarDouble = true; } - this._Decimal = _decimal; - if (this.Decimal != null) + this._VarDecimal = varDecimal; + if (this.VarDecimal != null) { - this._flagDecimal = true; + this._flagVarDecimal = true; } - this._String = _string; - if (this.String != null) + this._VarString = varString; + if (this.VarString != null) { - this._flagString = true; + this._flagVarString = true; } this._Binary = binary; if (this.Binary != null) @@ -301,124 +301,124 @@ namespace Org.OpenAPITools.Model return _flagNumber; } /// - /// Gets or Sets Float + /// Gets or Sets VarFloat /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float + public float VarFloat { - get{ return _Float;} + get{ return _VarFloat;} set { - _Float = value; - _flagFloat = true; + _VarFloat = value; + _flagVarFloat = true; } } - private float _Float; - private bool _flagFloat; + private float _VarFloat; + private bool _flagVarFloat; /// - /// Returns false as Float should not be serialized given that it's read-only. + /// Returns false as VarFloat should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerializeFloat() + public bool ShouldSerializeVarFloat() { - return _flagFloat; + return _flagVarFloat; } /// - /// Gets or Sets Double + /// Gets or Sets VarDouble /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double + public double VarDouble { - get{ return _Double;} + get{ return _VarDouble;} set { - _Double = value; - _flagDouble = true; + _VarDouble = value; + _flagVarDouble = true; } } - private double _Double; - private bool _flagDouble; + private double _VarDouble; + private bool _flagVarDouble; /// - /// Returns false as Double should not be serialized given that it's read-only. + /// Returns false as VarDouble should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerializeDouble() + public bool ShouldSerializeVarDouble() { - return _flagDouble; + return _flagVarDouble; } /// - /// Gets or Sets Decimal + /// Gets or Sets VarDecimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal + public decimal VarDecimal { - get{ return _Decimal;} + get{ return _VarDecimal;} set { - _Decimal = value; - _flagDecimal = true; + _VarDecimal = value; + _flagVarDecimal = true; } } - private decimal _Decimal; - private bool _flagDecimal; + private decimal _VarDecimal; + private bool _flagVarDecimal; /// - /// Returns false as Decimal should not be serialized given that it's read-only. + /// Returns false as VarDecimal should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerializeDecimal() + public bool ShouldSerializeVarDecimal() { - return _flagDecimal; + return _flagVarDecimal; } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name = "string", EmitDefaultValue = false)] - public string String + public string VarString { - get{ return _String;} + get{ return _VarString;} set { - _String = value; - _flagString = true; + _VarString = value; + _flagVarString = true; } } - private string _String; - private bool _flagString; + private string _VarString; + private bool _flagVarString; /// - /// Returns false as String should not be serialized given that it's read-only. + /// Returns false as VarString should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerializeString() + public bool ShouldSerializeVarString() { - return _flagString; + return _flagVarString; } /// - /// Gets or Sets Byte + /// Gets or Sets VarByte /// [DataMember(Name = "byte", IsRequired = true, EmitDefaultValue = true)] - public byte[] Byte + public byte[] VarByte { - get{ return _Byte;} + get{ return _VarByte;} set { - _Byte = value; - _flagByte = true; + _VarByte = value; + _flagVarByte = true; } } - private byte[] _Byte; - private bool _flagByte; + private byte[] _VarByte; + private bool _flagVarByte; /// - /// Returns false as Byte should not be serialized given that it's read-only. + /// Returns false as VarByte should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerializeByte() + public bool ShouldSerializeVarByte() { - return _flagByte; + return _flagVarByte; } /// /// Gets or Sets Binary @@ -639,11 +639,11 @@ namespace Org.OpenAPITools.Model sb.Append(" Int64: ").Append(Int64).Append("\n"); sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n"); sb.Append(" Number: ").Append(Number).Append("\n"); - sb.Append(" Float: ").Append(Float).Append("\n"); - sb.Append(" Double: ").Append(Double).Append("\n"); - sb.Append(" Decimal: ").Append(Decimal).Append("\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" Byte: ").Append(Byte).Append("\n"); + sb.Append(" VarFloat: ").Append(VarFloat).Append("\n"); + sb.Append(" VarDouble: ").Append(VarDouble).Append("\n"); + sb.Append(" VarDecimal: ").Append(VarDecimal).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); + sb.Append(" VarByte: ").Append(VarByte).Append("\n"); sb.Append(" Binary: ").Append(Binary).Append("\n"); sb.Append(" Date: ").Append(Date).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n"); @@ -701,16 +701,16 @@ namespace Org.OpenAPITools.Model hashCode = (hashCode * 59) + this.Int64.GetHashCode(); hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); - if (this.String != null) + hashCode = (hashCode * 59) + this.VarFloat.GetHashCode(); + hashCode = (hashCode * 59) + this.VarDouble.GetHashCode(); + hashCode = (hashCode * 59) + this.VarDecimal.GetHashCode(); + if (this.VarString != null) { - hashCode = (hashCode * 59) + this.String.GetHashCode(); + hashCode = (hashCode * 59) + this.VarString.GetHashCode(); } - if (this.Byte != null) + if (this.VarByte != null) { - hashCode = (hashCode * 59) + this.Byte.GetHashCode(); + hashCode = (hashCode * 59) + this.VarByte.GetHashCode(); } if (this.Binary != null) { @@ -807,35 +807,35 @@ namespace Org.OpenAPITools.Model yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // VarFloat (float) maximum + if (this.VarFloat > (float)987.6) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value less than or equal to 987.6.", new [] { "VarFloat" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // VarFloat (float) minimum + if (this.VarFloat < (float)54.3) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value greater than or equal to 54.3.", new [] { "VarFloat" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // VarDouble (double) maximum + if (this.VarDouble > (double)123.4) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value less than or equal to 123.4.", new [] { "VarDouble" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // VarDouble (double) minimum + if (this.VarDouble < (double)67.8) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value greater than or equal to 67.8.", new [] { "VarDouble" }); } - // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (false == regexString.Match(this.String).Success) + // VarString (string) pattern + Regex regexVarString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (false == regexVarString.Match(this.VarString).Success) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarString, must match a pattern of " + regexVarString, new [] { "VarString" }); } // Password (string) maxLength diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/List.cs index 355b11be2d0..86036357f1f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/List.cs @@ -35,40 +35,40 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _123list. - public List(string _123list = default(string)) + /// var123List. + public List(string var123List = default(string)) { - this.__123List = _123list; - if (this._123List != null) + this._var123List = var123List; + if (this.var123List != null) { - this._flag_123List = true; + this._flagvar123List = true; } this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _123List + /// Gets or Sets var123List /// [DataMember(Name = "123-list", EmitDefaultValue = false)] - public string _123List + public string var123List { - get{ return __123List;} + get{ return _var123List;} set { - __123List = value; - _flag_123List = true; + _var123List = value; + _flagvar123List = true; } } - private string __123List; - private bool _flag_123List; + private string _var123List; + private bool _flagvar123List; /// - /// Returns false as _123List should not be serialized given that it's read-only. + /// Returns false as var123List should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerialize_123List() + public bool ShouldSerializevar123List() { - return _flag_123List; + return _flagvar123List; } /// /// Gets or Sets additional properties @@ -84,7 +84,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class List {\n"); - sb.Append(" _123List: ").Append(_123List).Append("\n"); + sb.Append(" var123List: ").Append(var123List).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -128,9 +128,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._123List != null) + if (this.var123List != null) { - hashCode = (hashCode * 59) + this._123List.GetHashCode(); + hashCode = (hashCode * 59) + this.var123List.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Model200Response.cs index e878c99d745..b051508fad3 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Model200Response.cs @@ -36,18 +36,18 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// name. - /// _class. - public Model200Response(int name = default(int), string _class = default(string)) + /// varClass. + public Model200Response(int name = default(int), string varClass = default(string)) { this._Name = name; if (this.Name != null) { this._flagName = true; } - this._Class = _class; - if (this.Class != null) + this._VarClass = varClass; + if (this.VarClass != null) { - this._flagClass = true; + this._flagVarClass = true; } this.AdditionalProperties = new Dictionary(); } @@ -77,28 +77,28 @@ namespace Org.OpenAPITools.Model return _flagName; } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name = "class", EmitDefaultValue = false)] - public string Class + public string VarClass { - get{ return _Class;} + get{ return _VarClass;} set { - _Class = value; - _flagClass = true; + _VarClass = value; + _flagVarClass = true; } } - private string _Class; - private bool _flagClass; + private string _VarClass; + private bool _flagVarClass; /// - /// Returns false as Class should not be serialized given that it's read-only. + /// Returns false as VarClass should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerializeClass() + public bool ShouldSerializeVarClass() { - return _flagClass; + return _flagVarClass; } /// /// Gets or Sets additional properties @@ -115,7 +115,7 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class Model200Response {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -160,9 +160,9 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + this.Name.GetHashCode(); - if (this.Class != null) + if (this.VarClass != null) { - hashCode = (hashCode * 59) + this.Class.GetHashCode(); + hashCode = (hashCode * 59) + this.VarClass.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/ModelClient.cs index 354d9791fc4..4009dc3fcf3 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/ModelClient.cs @@ -29,46 +29,46 @@ namespace Org.OpenAPITools.Model /// /// ModelClient /// - [DataContract(Name = "_Client")] + [DataContract(Name = "varClient")] public partial class ModelClient : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// - /// _client. - public ModelClient(string _client = default(string)) + /// varClient. + public ModelClient(string varClient = default(string)) { - this.__Client = _client; - if (this._Client != null) + this._varClient = varClient; + if (this.varClient != null) { - this._flag_Client = true; + this._flagvarClient = true; } this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _Client + /// Gets or Sets varClient /// [DataMember(Name = "client", EmitDefaultValue = false)] - public string _Client + public string varClient { - get{ return __Client;} + get{ return _varClient;} set { - __Client = value; - _flag_Client = true; + _varClient = value; + _flagvarClient = true; } } - private string __Client; - private bool _flag_Client; + private string _varClient; + private bool _flagvarClient; /// - /// Returns false as _Client should not be serialized given that it's read-only. + /// Returns false as varClient should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerialize_Client() + public bool ShouldSerializevarClient() { - return _flag_Client; + return _flagvarClient; } /// /// Gets or Sets additional properties @@ -84,7 +84,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ModelClient {\n"); - sb.Append(" _Client: ").Append(_Client).Append("\n"); + sb.Append(" varClient: ").Append(varClient).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -128,9 +128,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._Client != null) + if (this.varClient != null) { - hashCode = (hashCode * 59) + this._Client.GetHashCode(); + hashCode = (hashCode * 59) + this.varClient.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Name.cs index aec6d2cbb30..66c04d0e950 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Name.cs @@ -43,11 +43,11 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// name (required). + /// varName (required). /// property. - public Name(int name = default(int), string property = default(string)) + public Name(int varName = default(int), string property = default(string)) { - this.__Name = name; + this._VarName = varName; this._Property = property; if (this.Property != null) { @@ -57,28 +57,28 @@ namespace Org.OpenAPITools.Model } /// - /// Gets or Sets _Name + /// Gets or Sets VarName /// [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] - public int _Name + public int VarName { - get{ return __Name;} + get{ return _VarName;} set { - __Name = value; - _flag_Name = true; + _VarName = value; + _flagVarName = true; } } - private int __Name; - private bool _flag_Name; + private int _VarName; + private bool _flagVarName; /// - /// Returns false as _Name should not be serialized given that it's read-only. + /// Returns false as VarName should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerialize_Name() + public bool ShouldSerializeVarName() { - return _flag_Name; + return _flagVarName; } /// /// Gets or Sets SnakeCase @@ -119,16 +119,16 @@ namespace Org.OpenAPITools.Model return _flagProperty; } /// - /// Gets or Sets _123Number + /// Gets or Sets var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int _123Number { get; private set; } + public int var123Number { get; private set; } /// - /// Returns false as _123Number should not be serialized given that it's read-only. + /// Returns false as var123Number should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerialize_123Number() + public bool ShouldSerializevar123Number() { return false; } @@ -146,10 +146,10 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Name {\n"); - sb.Append(" _Name: ").Append(_Name).Append("\n"); + sb.Append(" VarName: ").Append(VarName).Append("\n"); sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n"); sb.Append(" Property: ").Append(Property).Append("\n"); - sb.Append(" _123Number: ").Append(_123Number).Append("\n"); + sb.Append(" var123Number: ").Append(var123Number).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -193,13 +193,13 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this._Name.GetHashCode(); + hashCode = (hashCode * 59) + this.VarName.GetHashCode(); hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this._123Number.GetHashCode(); + hashCode = (hashCode * 59) + this.var123Number.GetHashCode(); if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Return.cs index 8ebfb712680..687c10af3ae 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Return.cs @@ -35,40 +35,40 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _return. - public Return(int _return = default(int)) + /// varReturn. + public Return(int varReturn = default(int)) { - this.__Return = _return; - if (this._Return != null) + this._VarReturn = varReturn; + if (this.VarReturn != null) { - this._flag_Return = true; + this._flagVarReturn = true; } this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _Return + /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int _Return + public int VarReturn { - get{ return __Return;} + get{ return _VarReturn;} set { - __Return = value; - _flag_Return = true; + _VarReturn = value; + _flagVarReturn = true; } } - private int __Return; - private bool _flag_Return; + private int _VarReturn; + private bool _flagVarReturn; /// - /// Returns false as _Return should not be serialized given that it's read-only. + /// Returns false as VarReturn should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerialize_Return() + public bool ShouldSerializeVarReturn() { - return _flag_Return; + return _flagVarReturn; } /// /// Gets or Sets additional properties @@ -84,7 +84,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Return {\n"); - sb.Append(" _Return: ").Append(_Return).Append("\n"); + sb.Append(" VarReturn: ").Append(VarReturn).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -128,7 +128,7 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this._Return.GetHashCode(); + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/SpecialModelName.cs index 92fa55597f5..6fa07bb2639 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -36,18 +36,18 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// specialPropertyName. - /// specialModelName. - public SpecialModelName(long specialPropertyName = default(long), string specialModelName = default(string)) + /// varSpecialModelName. + public SpecialModelName(long specialPropertyName = default(long), string varSpecialModelName = default(string)) { this._SpecialPropertyName = specialPropertyName; if (this.SpecialPropertyName != null) { this._flagSpecialPropertyName = true; } - this.__SpecialModelName = specialModelName; - if (this._SpecialModelName != null) + this._VarSpecialModelName = varSpecialModelName; + if (this.VarSpecialModelName != null) { - this._flag_SpecialModelName = true; + this._flagVarSpecialModelName = true; } this.AdditionalProperties = new Dictionary(); } @@ -77,28 +77,28 @@ namespace Org.OpenAPITools.Model return _flagSpecialPropertyName; } /// - /// Gets or Sets _SpecialModelName + /// Gets or Sets VarSpecialModelName /// [DataMember(Name = "_special_model.name_", EmitDefaultValue = false)] - public string _SpecialModelName + public string VarSpecialModelName { - get{ return __SpecialModelName;} + get{ return _VarSpecialModelName;} set { - __SpecialModelName = value; - _flag_SpecialModelName = true; + _VarSpecialModelName = value; + _flagVarSpecialModelName = true; } } - private string __SpecialModelName; - private bool _flag_SpecialModelName; + private string _VarSpecialModelName; + private bool _flagVarSpecialModelName; /// - /// Returns false as _SpecialModelName should not be serialized given that it's read-only. + /// Returns false as VarSpecialModelName should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerialize_SpecialModelName() + public bool ShouldSerializeVarSpecialModelName() { - return _flag_SpecialModelName; + return _flagVarSpecialModelName; } /// /// Gets or Sets additional properties @@ -115,7 +115,7 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class SpecialModelName {\n"); sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n"); - sb.Append(" _SpecialModelName: ").Append(_SpecialModelName).Append("\n"); + sb.Append(" VarSpecialModelName: ").Append(VarSpecialModelName).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -160,9 +160,9 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); - if (this._SpecialModelName != null) + if (this.VarSpecialModelName != null) { - hashCode = (hashCode * 59) + this._SpecialModelName.GetHashCode(); + hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/apis/FakeApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/apis/FakeApi.md index 44d1408a04d..a3ca390c410 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/apis/FakeApi.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/apis/FakeApi.md @@ -809,7 +809,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream? binary = null, float? _float = null, int? integer = null, int? int32 = null, long? int64 = null, string? _string = null, string? password = null, string? callback = null, DateTime? dateTime = null) +> void TestEndpointParameters (byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream? binary = null, float? varFloat = null, int? integer = null, int? int32 = null, long? int64 = null, string? varString = null, string? password = null, string? callback = null, DateTime? dateTime = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -836,17 +836,17 @@ namespace Example config.Password = "YOUR_PASSWORD"; var apiInstance = new FakeApi(config); - var _byte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None + var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var number = 8.14D; // decimal | None - var _double = 1.2D; // double | None + var varDouble = 1.2D; // double | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None var date = DateTime.Parse("2013-10-20"); // DateTime? | None (optional) var binary = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream? | None (optional) - var _float = 3.4F; // float? | None (optional) + var varFloat = 3.4F; // float? | None (optional) var integer = 56; // int? | None (optional) var int32 = 56; // int? | None (optional) var int64 = 789L; // long? | None (optional) - var _string = "_string_example"; // string? | None (optional) + var varString = "string_example"; // string? | None (optional) var password = "password_example"; // string? | None (optional) var callback = "callback_example"; // string? | None (optional) var dateTime = DateTime.Parse(""2010-02-01T10:20:10.111110+01:00""); // DateTime? | None (optional) (default to "2010-02-01T10:20:10.111110+01:00") @@ -854,7 +854,7 @@ namespace Example try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParameters(_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); + apiInstance.TestEndpointParameters(varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); } catch (ApiException e) { @@ -874,7 +874,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParametersWithHttpInfo(_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); + apiInstance.TestEndpointParametersWithHttpInfo(varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); } catch (ApiException e) { @@ -888,17 +888,17 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **_byte** | **byte[]** | None | | +| **varByte** | **byte[]** | None | | | **number** | **decimal** | None | | -| **_double** | **double** | None | | +| **varDouble** | **double** | None | | | **patternWithoutDelimiter** | **string** | None | | | **date** | **DateTime?** | None | [optional] | | **binary** | **System.IO.Stream?****System.IO.Stream?** | None | [optional] | -| **_float** | **float?** | None | [optional] | +| **varFloat** | **float?** | None | [optional] | | **integer** | **int?** | None | [optional] | | **int32** | **int?** | None | [optional] | | **int64** | **long?** | None | [optional] | -| **_string** | **string?** | None | [optional] | +| **varString** | **string?** | None | [optional] | | **password** | **string?** | None | [optional] | | **callback** | **string?** | None | [optional] | | **dateTime** | **DateTime?** | None | [optional] [default to "2010-02-01T10:20:10.111110+01:00"] | diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/ClassModel.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/ClassModel.md index a098828a04f..07cd7974a65 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/ClassModel.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/ClassModel.md @@ -5,7 +5,7 @@ Model for testing model with \"_class\" property Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClassProperty** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/FooGetDefaultResponse.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/FooGetDefaultResponse.md index 78c99facf59..b9b9d302c23 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/FooGetDefaultResponse.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/FooGetDefaultResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**StringProperty** | [**Foo**](Foo.md) | | [optional] +**VarString** | [**Foo**](Foo.md) | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/FormatTest.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/FormatTest.md index 36cd3190b47..28f1a809358 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/FormatTest.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/FormatTest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Binary** | **System.IO.Stream** | | [optional] -**ByteProperty** | **byte[]** | | +**VarByte** | **byte[]** | | **Date** | **DateTime** | | **DateTime** | **DateTime** | | [optional] -**DecimalProperty** | **decimal** | | [optional] -**DoubleProperty** | **double** | | [optional] -**FloatProperty** | **float** | | [optional] +**VarDecimal** | **decimal** | | [optional] +**VarDouble** | **double** | | [optional] +**VarFloat** | **float** | | [optional] **Int32** | **int** | | [optional] **Int64** | **long** | | [optional] **Integer** | **int** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes **PatternWithBackslash** | **string** | None | [optional] **PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional] **PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] -**StringProperty** | **string** | | [optional] +**VarString** | **string** | | [optional] **UnsignedInteger** | **uint** | | [optional] **UnsignedLong** | **ulong** | | [optional] **Uuid** | **Guid** | | [optional] diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/List.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/List.md index 417d332b3af..bb3f287a205 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/List.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/List.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_123List** | **string** | | [optional] +**var123List** | **string** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/Model200Response.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/Model200Response.md index 93139e1d1aa..31bbc3f6db1 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/Model200Response.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/Model200Response.md @@ -5,7 +5,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClassProperty** | **string** | | [optional] +**VarClass** | **string** | | [optional] **Name** | **int** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/ModelClient.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/ModelClient.md index 51cf0636e72..1c5fbf112ce 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/ModelClient.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/ModelClient.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_ClientProperty** | **string** | | [optional] +**varClient** | **string** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/Name.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/Name.md index 11f49b9fd40..c975c649a72 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/Name.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/Name.md @@ -5,10 +5,10 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**NameProperty** | **int** | | +**VarName** | **int** | | **Property** | **string** | | [optional] **SnakeCase** | **int** | | [optional] [readonly] -**_123Number** | **int** | | [optional] [readonly] +**var123Number** | **int** | | [optional] [readonly] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/Return.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/Return.md index e11cdae8db9..1beb83fbaaf 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/Return.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ReturnProperty** | **int** | | [optional] +**VarReturn** | **int** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/SpecialModelName.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/SpecialModelName.md index b48f3490005..890bcd923de 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/SpecialModelName.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/SpecialModelName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialModelNameProperty** | **string** | | [optional] +**VarSpecialModelName** | **string** | | [optional] **SpecialPropertyName** | **long** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Api/FakeApi.cs index 6a0400955f9..5ee6c4ef902 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Api/FakeApi.cs @@ -243,23 +243,23 @@ namespace Org.OpenAPITools.IApi /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// /// Thrown when fails to make API call - /// None + /// None /// None - /// None + /// None /// None /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// Cancellation Token to cancel the request. /// Task<ApiResponse<object>> - Task> TestEndpointParametersAsync(byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream? binary = null, float? _float = null, int? integer = null, int? int32 = null, long? int64 = null, string? _string = null, string? password = null, string? callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default); + Task> TestEndpointParametersAsync(byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream? binary = null, float? varFloat = null, int? integer = null, int? int32 = null, long? int64 = null, string? varString = null, string? password = null, string? callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -267,23 +267,23 @@ namespace Org.OpenAPITools.IApi /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// - /// None + /// None /// None - /// None + /// None /// None /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// Cancellation Token to cancel the request. /// Task<ApiResponse>object>?> - Task?> TestEndpointParametersOrDefaultAsync(byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream? binary = null, float? _float = null, int? integer = null, int? int32 = null, long? int64 = null, string? _string = null, string? password = null, string? callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default); + Task?> TestEndpointParametersOrDefaultAsync(byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream? binary = null, float? varFloat = null, int? integer = null, int? int32 = null, long? int64 = null, string? varString = null, string? password = null, string? callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default); /// /// To test enum parameters @@ -1622,34 +1622,34 @@ namespace Org.OpenAPITools.Api /// /// Validates the request parameters /// - /// + /// /// - /// + /// /// /// /// - /// + /// /// /// /// - /// + /// /// /// /// /// - protected virtual (byte[], decimal, double, string, DateTime?, System.IO.Stream?, float?, int?, int?, long?, string?, string?, string?, DateTime?) OnTestEndpointParameters(byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date, System.IO.Stream? binary, float? _float, int? integer, int? int32, long? int64, string? _string, string? password, string? callback, DateTime? dateTime) + protected virtual (byte[], decimal, double, string, DateTime?, System.IO.Stream?, float?, int?, int?, long?, string?, string?, string?, DateTime?) OnTestEndpointParameters(byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date, System.IO.Stream? binary, float? varFloat, int? integer, int? int32, long? int64, string? varString, string? password, string? callback, DateTime? dateTime) { #pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null' #pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null' - if (_byte == null) - throw new ArgumentNullException(nameof(_byte)); + if (varByte == null) + throw new ArgumentNullException(nameof(varByte)); if (number == null) throw new ArgumentNullException(nameof(number)); - if (_double == null) - throw new ArgumentNullException(nameof(_double)); + if (varDouble == null) + throw new ArgumentNullException(nameof(varDouble)); if (patternWithoutDelimiter == null) throw new ArgumentNullException(nameof(patternWithoutDelimiter)); @@ -1657,28 +1657,28 @@ namespace Org.OpenAPITools.Api #pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null' #pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null' - return (_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); + return (varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); } /// /// Processes the server response /// /// - /// + /// /// - /// + /// /// /// /// - /// + /// /// /// /// - /// + /// /// /// /// - protected virtual void AfterTestEndpointParameters(ApiResponse apiResponseLocalVar, byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date, System.IO.Stream? binary, float? _float, int? integer, int? int32, long? int64, string? _string, string? password, string? callback, DateTime? dateTime) + protected virtual void AfterTestEndpointParameters(ApiResponse apiResponseLocalVar, byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date, System.IO.Stream? binary, float? varFloat, int? integer, int? int32, long? int64, string? varString, string? password, string? callback, DateTime? dateTime) { } @@ -1688,21 +1688,21 @@ namespace Org.OpenAPITools.Api /// /// /// - /// + /// /// - /// + /// /// /// /// - /// + /// /// /// /// - /// + /// /// /// /// - protected virtual void OnErrorTestEndpointParameters(Exception exception, string pathFormat, string path, byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date, System.IO.Stream? binary, float? _float, int? integer, int? int32, long? int64, string? _string, string? password, string? callback, DateTime? dateTime) + protected virtual void OnErrorTestEndpointParameters(Exception exception, string pathFormat, string path, byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date, System.IO.Stream? binary, float? varFloat, int? integer, int? int32, long? int64, string? varString, string? password, string? callback, DateTime? dateTime) { Logger.LogError(exception, "An error occurred while sending the request to the server."); } @@ -1710,27 +1710,27 @@ namespace Org.OpenAPITools.Api /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// - /// None + /// None /// None - /// None + /// None /// None /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// Cancellation Token to cancel the request. /// <> where T : - public async Task?> TestEndpointParametersOrDefaultAsync(byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream? binary = null, float? _float = null, int? integer = null, int? int32 = null, long? int64 = null, string? _string = null, string? password = null, string? callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default) + public async Task?> TestEndpointParametersOrDefaultAsync(byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream? binary = null, float? varFloat = null, int? integer = null, int? int32 = null, long? int64 = null, string? varString = null, string? password = null, string? callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default) { try { - return await TestEndpointParametersAsync(_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime, cancellationToken).ConfigureAwait(false); + return await TestEndpointParametersAsync(varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime, cancellationToken).ConfigureAwait(false); } catch (Exception) { @@ -1742,40 +1742,40 @@ namespace Org.OpenAPITools.Api /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// /// Thrown when fails to make API call - /// None + /// None /// None - /// None + /// None /// None /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// Cancellation Token to cancel the request. /// <> where T : - public async Task> TestEndpointParametersAsync(byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream? binary = null, float? _float = null, int? integer = null, int? int32 = null, long? int64 = null, string? _string = null, string? password = null, string? callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default) + public async Task> TestEndpointParametersAsync(byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream? binary = null, float? varFloat = null, int? integer = null, int? int32 = null, long? int64 = null, string? varString = null, string? password = null, string? callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default) { UriBuilder uriBuilderLocalVar = new UriBuilder(); try { - var validatedParameterLocalVars = OnTestEndpointParameters(_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); - _byte = validatedParameterLocalVars.Item1; + var validatedParameterLocalVars = OnTestEndpointParameters(varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); + varByte = validatedParameterLocalVars.Item1; number = validatedParameterLocalVars.Item2; - _double = validatedParameterLocalVars.Item3; + varDouble = validatedParameterLocalVars.Item3; patternWithoutDelimiter = validatedParameterLocalVars.Item4; date = validatedParameterLocalVars.Item5; binary = validatedParameterLocalVars.Item6; - _float = validatedParameterLocalVars.Item7; + varFloat = validatedParameterLocalVars.Item7; integer = validatedParameterLocalVars.Item8; int32 = validatedParameterLocalVars.Item9; int64 = validatedParameterLocalVars.Item10; - _string = validatedParameterLocalVars.Item11; + varString = validatedParameterLocalVars.Item11; password = validatedParameterLocalVars.Item12; callback = validatedParameterLocalVars.Item13; dateTime = validatedParameterLocalVars.Item14; @@ -1795,7 +1795,7 @@ namespace Org.OpenAPITools.Api multipartContentLocalVar.Add(new FormUrlEncodedContent(formParameterLocalVars)); - formParameterLocalVars.Add(new KeyValuePair("byte", ClientUtils.ParameterToString(_byte))); + formParameterLocalVars.Add(new KeyValuePair("byte", ClientUtils.ParameterToString(varByte))); @@ -1803,7 +1803,7 @@ namespace Org.OpenAPITools.Api - formParameterLocalVars.Add(new KeyValuePair("double", ClientUtils.ParameterToString(_double))); + formParameterLocalVars.Add(new KeyValuePair("double", ClientUtils.ParameterToString(varDouble))); @@ -1815,8 +1815,8 @@ namespace Org.OpenAPITools.Api if (binary != null) multipartContentLocalVar.Add(new StreamContent(binary)); - if (_float != null) - formParameterLocalVars.Add(new KeyValuePair("float", ClientUtils.ParameterToString(_float))); + if (varFloat != null) + formParameterLocalVars.Add(new KeyValuePair("float", ClientUtils.ParameterToString(varFloat))); if (integer != null) formParameterLocalVars.Add(new KeyValuePair("integer", ClientUtils.ParameterToString(integer))); @@ -1827,8 +1827,8 @@ namespace Org.OpenAPITools.Api if (int64 != null) formParameterLocalVars.Add(new KeyValuePair("int64", ClientUtils.ParameterToString(int64))); - if (_string != null) - formParameterLocalVars.Add(new KeyValuePair("string", ClientUtils.ParameterToString(_string))); + if (varString != null) + formParameterLocalVars.Add(new KeyValuePair("string", ClientUtils.ParameterToString(varString))); if (password != null) formParameterLocalVars.Add(new KeyValuePair("password", ClientUtils.ParameterToString(password))); @@ -1872,7 +1872,7 @@ namespace Org.OpenAPITools.Api ApiResponse apiResponseLocalVar = new ApiResponse(httpRequestMessageLocalVar, httpResponseMessageLocalVar, responseContentLocalVar, _jsonSerializerOptions); - AfterTestEndpointParameters(apiResponseLocalVar, _byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); + AfterTestEndpointParameters(apiResponseLocalVar, varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); if (apiResponseLocalVar.StatusCode == (HttpStatusCode) 429) foreach(TokenBase tokenBaseLocalVar in tokenBaseLocalVars) @@ -1884,7 +1884,7 @@ namespace Org.OpenAPITools.Api } catch(Exception e) { - OnErrorTestEndpointParameters(e, "/fake", uriBuilderLocalVar.Path, _byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); + OnErrorTestEndpointParameters(e, "/fake", uriBuilderLocalVar.Path, varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); throw; } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/ClassModel.cs index 184b4362616..a688305d97d 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/ClassModel.cs @@ -33,21 +33,21 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// classProperty + /// varClass [JsonConstructor] - public ClassModel(string classProperty) + public ClassModel(string varClass) { - ClassProperty = classProperty; + VarClass = varClass; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets ClassProperty + /// Gets or Sets VarClass /// [JsonPropertyName("_class")] - public string ClassProperty { get; set; } + public string VarClass { get; set; } /// /// Gets or Sets additional properties @@ -63,7 +63,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ClassModel {\n"); - sb.Append(" ClassProperty: ").Append(ClassProperty).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - string? classProperty = default; + string? varClass = default; while (utf8JsonReader.Read()) { @@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Model switch (propertyName) { case "_class": - classProperty = utf8JsonReader.GetString(); + varClass = utf8JsonReader.GetString(); break; default: break; @@ -128,10 +128,10 @@ namespace Org.OpenAPITools.Model } } - if (classProperty == null) - throw new ArgumentNullException(nameof(classProperty), "Property is required for class ClassModel."); + if (varClass == null) + throw new ArgumentNullException(nameof(varClass), "Property is required for class ClassModel."); - return new ClassModel(classProperty); + return new ClassModel(varClass); } /// @@ -145,7 +145,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteString("_class", classModel.ClassProperty); + writer.WriteString("_class", classModel.VarClass); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 0846df3e535..2ed1bda9122 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -33,21 +33,21 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// stringProperty + /// varString [JsonConstructor] - public FooGetDefaultResponse(Foo stringProperty) + public FooGetDefaultResponse(Foo varString) { - StringProperty = stringProperty; + VarString = varString; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets StringProperty + /// Gets or Sets VarString /// [JsonPropertyName("string")] - public Foo StringProperty { get; set; } + public Foo VarString { get; set; } /// /// Gets or Sets additional properties @@ -63,7 +63,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class FooGetDefaultResponse {\n"); - sb.Append(" StringProperty: ").Append(StringProperty).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Foo? stringProperty = default; + Foo? varString = default; while (utf8JsonReader.Read()) { @@ -121,7 +121,7 @@ namespace Org.OpenAPITools.Model { case "string": if (utf8JsonReader.TokenType != JsonTokenType.Null) - stringProperty = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); + varString = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); break; default: break; @@ -129,10 +129,10 @@ namespace Org.OpenAPITools.Model } } - if (stringProperty == null) - throw new ArgumentNullException(nameof(stringProperty), "Property is required for class FooGetDefaultResponse."); + if (varString == null) + throw new ArgumentNullException(nameof(varString), "Property is required for class FooGetDefaultResponse."); - return new FooGetDefaultResponse(stringProperty); + return new FooGetDefaultResponse(varString); } /// @@ -147,7 +147,7 @@ namespace Org.OpenAPITools.Model writer.WriteStartObject(); writer.WritePropertyName("string"); - JsonSerializer.Serialize(writer, fooGetDefaultResponse.StringProperty, jsonSerializerOptions); + JsonSerializer.Serialize(writer, fooGetDefaultResponse.VarString, jsonSerializerOptions); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/FormatTest.cs index 42d3ed828d0..3ca9dcebcb5 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/FormatTest.cs @@ -34,12 +34,12 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// binary - /// byteProperty + /// varByte /// date /// dateTime - /// decimalProperty - /// doubleProperty - /// floatProperty + /// varDecimal + /// varDouble + /// varFloat /// int32 /// int64 /// integer @@ -48,20 +48,20 @@ namespace Org.OpenAPITools.Model /// None /// A string that is a 10 digit number. Can have leading zeros. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. - /// stringProperty + /// varString /// unsignedInteger /// unsignedLong /// uuid [JsonConstructor] - public FormatTest(System.IO.Stream binary, byte[] byteProperty, DateTime date, DateTime dateTime, decimal decimalProperty, double doubleProperty, float floatProperty, int int32, long int64, int integer, decimal number, string password, string patternWithBackslash, string patternWithDigits, string patternWithDigitsAndDelimiter, string stringProperty, uint unsignedInteger, ulong unsignedLong, Guid uuid) + public FormatTest(System.IO.Stream binary, byte[] varByte, DateTime date, DateTime dateTime, decimal varDecimal, double varDouble, float varFloat, int int32, long int64, int integer, decimal number, string password, string patternWithBackslash, string patternWithDigits, string patternWithDigitsAndDelimiter, string varString, uint unsignedInteger, ulong unsignedLong, Guid uuid) { Binary = binary; - ByteProperty = byteProperty; + VarByte = varByte; Date = date; DateTime = dateTime; - DecimalProperty = decimalProperty; - DoubleProperty = doubleProperty; - FloatProperty = floatProperty; + VarDecimal = varDecimal; + VarDouble = varDouble; + VarFloat = varFloat; Int32 = int32; Int64 = int64; Integer = integer; @@ -70,7 +70,7 @@ namespace Org.OpenAPITools.Model PatternWithBackslash = patternWithBackslash; PatternWithDigits = patternWithDigits; PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; - StringProperty = stringProperty; + VarString = varString; UnsignedInteger = unsignedInteger; UnsignedLong = unsignedLong; Uuid = uuid; @@ -86,10 +86,10 @@ namespace Org.OpenAPITools.Model public System.IO.Stream Binary { get; set; } /// - /// Gets or Sets ByteProperty + /// Gets or Sets VarByte /// [JsonPropertyName("byte")] - public byte[] ByteProperty { get; set; } + public byte[] VarByte { get; set; } /// /// Gets or Sets Date @@ -106,22 +106,22 @@ namespace Org.OpenAPITools.Model public DateTime DateTime { get; set; } /// - /// Gets or Sets DecimalProperty + /// Gets or Sets VarDecimal /// [JsonPropertyName("decimal")] - public decimal DecimalProperty { get; set; } + public decimal VarDecimal { get; set; } /// - /// Gets or Sets DoubleProperty + /// Gets or Sets VarDouble /// [JsonPropertyName("double")] - public double DoubleProperty { get; set; } + public double VarDouble { get; set; } /// - /// Gets or Sets FloatProperty + /// Gets or Sets VarFloat /// [JsonPropertyName("float")] - public float FloatProperty { get; set; } + public float VarFloat { get; set; } /// /// Gets or Sets Int32 @@ -175,10 +175,10 @@ namespace Org.OpenAPITools.Model public string PatternWithDigitsAndDelimiter { get; set; } /// - /// Gets or Sets StringProperty + /// Gets or Sets VarString /// [JsonPropertyName("string")] - public string StringProperty { get; set; } + public string VarString { get; set; } /// /// Gets or Sets UnsignedInteger @@ -214,12 +214,12 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class FormatTest {\n"); sb.Append(" Binary: ").Append(Binary).Append("\n"); - sb.Append(" ByteProperty: ").Append(ByteProperty).Append("\n"); + sb.Append(" VarByte: ").Append(VarByte).Append("\n"); sb.Append(" Date: ").Append(Date).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n"); - sb.Append(" DecimalProperty: ").Append(DecimalProperty).Append("\n"); - sb.Append(" DoubleProperty: ").Append(DoubleProperty).Append("\n"); - sb.Append(" FloatProperty: ").Append(FloatProperty).Append("\n"); + sb.Append(" VarDecimal: ").Append(VarDecimal).Append("\n"); + sb.Append(" VarDouble: ").Append(VarDouble).Append("\n"); + sb.Append(" VarFloat: ").Append(VarFloat).Append("\n"); sb.Append(" Int32: ").Append(Int32).Append("\n"); sb.Append(" Int64: ").Append(Int64).Append("\n"); sb.Append(" Integer: ").Append(Integer).Append("\n"); @@ -228,7 +228,7 @@ namespace Org.OpenAPITools.Model sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n"); sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n"); sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n"); - sb.Append(" StringProperty: ").Append(StringProperty).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n"); sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); @@ -244,28 +244,28 @@ namespace Org.OpenAPITools.Model /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // DoubleProperty (double) maximum - if (this.DoubleProperty > (double)123.4) + // VarDouble (double) maximum + if (this.VarDouble > (double)123.4) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DoubleProperty, must be a value less than or equal to 123.4.", new [] { "DoubleProperty" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value less than or equal to 123.4.", new [] { "VarDouble" }); } - // DoubleProperty (double) minimum - if (this.DoubleProperty < (double)67.8) + // VarDouble (double) minimum + if (this.VarDouble < (double)67.8) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DoubleProperty, must be a value greater than or equal to 67.8.", new [] { "DoubleProperty" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value greater than or equal to 67.8.", new [] { "VarDouble" }); } - // FloatProperty (float) maximum - if (this.FloatProperty > (float)987.6) + // VarFloat (float) maximum + if (this.VarFloat > (float)987.6) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FloatProperty, must be a value less than or equal to 987.6.", new [] { "FloatProperty" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value less than or equal to 987.6.", new [] { "VarFloat" }); } - // FloatProperty (float) minimum - if (this.FloatProperty < (float)54.3) + // VarFloat (float) minimum + if (this.VarFloat < (float)54.3) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FloatProperty, must be a value greater than or equal to 54.3.", new [] { "FloatProperty" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value greater than or equal to 54.3.", new [] { "VarFloat" }); } // Int32 (int) maximum @@ -337,11 +337,11 @@ namespace Org.OpenAPITools.Model yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); } - // StringProperty (string) pattern - Regex regexStringProperty = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (false == regexStringProperty.Match(this.StringProperty).Success) + // VarString (string) pattern + Regex regexVarString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (false == regexVarString.Match(this.VarString).Success) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StringProperty, must match a pattern of " + regexStringProperty, new [] { "StringProperty" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarString, must match a pattern of " + regexVarString, new [] { "VarString" }); } // UnsignedInteger (uint) maximum @@ -393,12 +393,12 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; System.IO.Stream? binary = default; - byte[]? byteProperty = default; + byte[]? varByte = default; DateTime? date = default; DateTime? dateTime = default; - decimal? decimalProperty = default; - double? doubleProperty = default; - float? floatProperty = default; + decimal? varDecimal = default; + double? varDouble = default; + float? varFloat = default; int? int32 = default; long? int64 = default; int? integer = default; @@ -407,7 +407,7 @@ namespace Org.OpenAPITools.Model string? patternWithBackslash = default; string? patternWithDigits = default; string? patternWithDigitsAndDelimiter = default; - string? stringProperty = default; + string? varString = default; uint? unsignedInteger = default; ulong? unsignedLong = default; Guid? uuid = default; @@ -433,7 +433,7 @@ namespace Org.OpenAPITools.Model break; case "byte": if (utf8JsonReader.TokenType != JsonTokenType.Null) - byteProperty = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); + varByte = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); break; case "date": if (utf8JsonReader.TokenType != JsonTokenType.Null) @@ -445,15 +445,15 @@ namespace Org.OpenAPITools.Model break; case "decimal": if (utf8JsonReader.TokenType != JsonTokenType.Null) - decimalProperty = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); + varDecimal = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); break; case "double": if (utf8JsonReader.TokenType != JsonTokenType.Null) - doubleProperty = utf8JsonReader.GetDouble(); + varDouble = utf8JsonReader.GetDouble(); break; case "float": if (utf8JsonReader.TokenType != JsonTokenType.Null) - floatProperty = (float)utf8JsonReader.GetDouble(); + varFloat = (float)utf8JsonReader.GetDouble(); break; case "int32": if (utf8JsonReader.TokenType != JsonTokenType.Null) @@ -484,7 +484,7 @@ namespace Org.OpenAPITools.Model patternWithDigitsAndDelimiter = utf8JsonReader.GetString(); break; case "string": - stringProperty = utf8JsonReader.GetString(); + varString = utf8JsonReader.GetString(); break; case "unsigned_integer": if (utf8JsonReader.TokenType != JsonTokenType.Null) @@ -522,20 +522,20 @@ namespace Org.OpenAPITools.Model if (number == null) throw new ArgumentNullException(nameof(number), "Property is required for class FormatTest."); - if (floatProperty == null) - throw new ArgumentNullException(nameof(floatProperty), "Property is required for class FormatTest."); + if (varFloat == null) + throw new ArgumentNullException(nameof(varFloat), "Property is required for class FormatTest."); - if (doubleProperty == null) - throw new ArgumentNullException(nameof(doubleProperty), "Property is required for class FormatTest."); + if (varDouble == null) + throw new ArgumentNullException(nameof(varDouble), "Property is required for class FormatTest."); - if (decimalProperty == null) - throw new ArgumentNullException(nameof(decimalProperty), "Property is required for class FormatTest."); + if (varDecimal == null) + throw new ArgumentNullException(nameof(varDecimal), "Property is required for class FormatTest."); - if (stringProperty == null) - throw new ArgumentNullException(nameof(stringProperty), "Property is required for class FormatTest."); + if (varString == null) + throw new ArgumentNullException(nameof(varString), "Property is required for class FormatTest."); - if (byteProperty == null) - throw new ArgumentNullException(nameof(byteProperty), "Property is required for class FormatTest."); + if (varByte == null) + throw new ArgumentNullException(nameof(varByte), "Property is required for class FormatTest."); if (binary == null) throw new ArgumentNullException(nameof(binary), "Property is required for class FormatTest."); @@ -561,7 +561,7 @@ namespace Org.OpenAPITools.Model if (patternWithBackslash == null) throw new ArgumentNullException(nameof(patternWithBackslash), "Property is required for class FormatTest."); - return new FormatTest(binary, byteProperty, date.Value, dateTime.Value, decimalProperty.Value, doubleProperty.Value, floatProperty.Value, int32.Value, int64.Value, integer.Value, number.Value, password, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, stringProperty, unsignedInteger.Value, unsignedLong.Value, uuid.Value); + return new FormatTest(binary, varByte, date.Value, dateTime.Value, varDecimal.Value, varDouble.Value, varFloat.Value, int32.Value, int64.Value, integer.Value, number.Value, password, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, unsignedInteger.Value, unsignedLong.Value, uuid.Value); } /// @@ -578,13 +578,13 @@ namespace Org.OpenAPITools.Model writer.WritePropertyName("binary"); JsonSerializer.Serialize(writer, formatTest.Binary, jsonSerializerOptions); writer.WritePropertyName("byte"); - JsonSerializer.Serialize(writer, formatTest.ByteProperty, jsonSerializerOptions); + JsonSerializer.Serialize(writer, formatTest.VarByte, jsonSerializerOptions); writer.WriteString("date", formatTest.Date.ToString(DateFormat)); writer.WriteString("dateTime", formatTest.DateTime.ToString(DateTimeFormat)); writer.WritePropertyName("decimal"); - JsonSerializer.Serialize(writer, formatTest.DecimalProperty, jsonSerializerOptions); - writer.WriteNumber("double", formatTest.DoubleProperty); - writer.WriteNumber("float", formatTest.FloatProperty); + JsonSerializer.Serialize(writer, formatTest.VarDecimal, jsonSerializerOptions); + writer.WriteNumber("double", formatTest.VarDouble); + writer.WriteNumber("float", formatTest.VarFloat); writer.WriteNumber("int32", formatTest.Int32); writer.WriteNumber("int64", formatTest.Int64); writer.WriteNumber("integer", formatTest.Integer); @@ -593,7 +593,7 @@ namespace Org.OpenAPITools.Model writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); - writer.WriteString("string", formatTest.StringProperty); + writer.WriteString("string", formatTest.VarString); writer.WriteNumber("unsigned_integer", formatTest.UnsignedInteger); writer.WriteNumber("unsigned_long", formatTest.UnsignedLong); writer.WriteString("uuid", formatTest.Uuid); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/List.cs index f98dfcfa2e1..95333eafdb0 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/List.cs @@ -33,21 +33,21 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _123list + /// var123List [JsonConstructor] - public List(string _123list) + public List(string var123List) { - _123List = _123list; + var123List = var123List; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets _123List + /// Gets or Sets var123List /// [JsonPropertyName("123-list")] - public string _123List { get; set; } + public string var123List { get; set; } /// /// Gets or Sets additional properties @@ -63,7 +63,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class List {\n"); - sb.Append(" _123List: ").Append(_123List).Append("\n"); + sb.Append(" var123List: ").Append(var123List).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - string? _123list = default; + string? var123List = default; while (utf8JsonReader.Read()) { @@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Model switch (propertyName) { case "123-list": - _123list = utf8JsonReader.GetString(); + var123List = utf8JsonReader.GetString(); break; default: break; @@ -128,10 +128,10 @@ namespace Org.OpenAPITools.Model } } - if (_123list == null) - throw new ArgumentNullException(nameof(_123list), "Property is required for class List."); + if (var123List == null) + throw new ArgumentNullException(nameof(var123List), "Property is required for class List."); - return new List(_123list); + return new List(var123List); } /// @@ -145,7 +145,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteString("123-list", list._123List); + writer.WriteString("123-list", list.var123List); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/Model200Response.cs index 850a20e9c1e..3bc5b60783d 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/Model200Response.cs @@ -33,12 +33,12 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// classProperty + /// varClass /// name [JsonConstructor] - public Model200Response(string classProperty, int name) + public Model200Response(string varClass, int name) { - ClassProperty = classProperty; + VarClass = varClass; Name = name; OnCreated(); } @@ -46,10 +46,10 @@ namespace Org.OpenAPITools.Model partial void OnCreated(); /// - /// Gets or Sets ClassProperty + /// Gets or Sets VarClass /// [JsonPropertyName("class")] - public string ClassProperty { get; set; } + public string VarClass { get; set; } /// /// Gets or Sets Name @@ -71,7 +71,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Model200Response {\n"); - sb.Append(" ClassProperty: ").Append(ClassProperty).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -111,7 +111,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - string? classProperty = default; + string? varClass = default; int? name = default; while (utf8JsonReader.Read()) @@ -130,7 +130,7 @@ namespace Org.OpenAPITools.Model switch (propertyName) { case "class": - classProperty = utf8JsonReader.GetString(); + varClass = utf8JsonReader.GetString(); break; case "name": if (utf8JsonReader.TokenType != JsonTokenType.Null) @@ -145,10 +145,10 @@ namespace Org.OpenAPITools.Model if (name == null) throw new ArgumentNullException(nameof(name), "Property is required for class Model200Response."); - if (classProperty == null) - throw new ArgumentNullException(nameof(classProperty), "Property is required for class Model200Response."); + if (varClass == null) + throw new ArgumentNullException(nameof(varClass), "Property is required for class Model200Response."); - return new Model200Response(classProperty, name.Value); + return new Model200Response(varClass, name.Value); } /// @@ -162,7 +162,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteString("class", model200Response.ClassProperty); + writer.WriteString("class", model200Response.VarClass); writer.WriteNumber("name", model200Response.Name); writer.WriteEndObject(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/ModelClient.cs index 4c04b1f91e1..ca3a0a7fc7e 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/ModelClient.cs @@ -33,21 +33,21 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// clientProperty + /// varClient [JsonConstructor] - public ModelClient(string clientProperty) + public ModelClient(string varClient) { - _ClientProperty = clientProperty; + varClient = varClient; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets _ClientProperty + /// Gets or Sets varClient /// [JsonPropertyName("client")] - public string _ClientProperty { get; set; } + public string varClient { get; set; } /// /// Gets or Sets additional properties @@ -63,7 +63,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ModelClient {\n"); - sb.Append(" _ClientProperty: ").Append(_ClientProperty).Append("\n"); + sb.Append(" varClient: ").Append(varClient).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - string? clientProperty = default; + string? varClient = default; while (utf8JsonReader.Read()) { @@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Model switch (propertyName) { case "client": - clientProperty = utf8JsonReader.GetString(); + varClient = utf8JsonReader.GetString(); break; default: break; @@ -128,10 +128,10 @@ namespace Org.OpenAPITools.Model } } - if (clientProperty == null) - throw new ArgumentNullException(nameof(clientProperty), "Property is required for class ModelClient."); + if (varClient == null) + throw new ArgumentNullException(nameof(varClient), "Property is required for class ModelClient."); - return new ModelClient(clientProperty); + return new ModelClient(varClient); } /// @@ -145,7 +145,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteString("client", modelClient._ClientProperty); + writer.WriteString("client", modelClient.varClient); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/Name.cs index 1b2df1b7f9c..b3688ec4645 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/Name.cs @@ -33,27 +33,27 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// nameProperty + /// varName /// property /// snakeCase - /// _123number + /// var123Number [JsonConstructor] - public Name(int nameProperty, string property, int snakeCase, int _123number) + public Name(int varName, string property, int snakeCase, int var123Number) { - NameProperty = nameProperty; + VarName = varName; Property = property; SnakeCase = snakeCase; - _123Number = _123number; + var123Number = var123Number; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets NameProperty + /// Gets or Sets VarName /// [JsonPropertyName("name")] - public int NameProperty { get; set; } + public int VarName { get; set; } /// /// Gets or Sets Property @@ -68,10 +68,10 @@ namespace Org.OpenAPITools.Model public int SnakeCase { get; } /// - /// Gets or Sets _123Number + /// Gets or Sets var123Number /// [JsonPropertyName("123Number")] - public int _123Number { get; } + public int var123Number { get; } /// /// Gets or Sets additional properties @@ -87,10 +87,10 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Name {\n"); - sb.Append(" NameProperty: ").Append(NameProperty).Append("\n"); + sb.Append(" VarName: ").Append(VarName).Append("\n"); sb.Append(" Property: ").Append(Property).Append("\n"); sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n"); - sb.Append(" _123Number: ").Append(_123Number).Append("\n"); + sb.Append(" var123Number: ").Append(var123Number).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -126,7 +126,7 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + SnakeCase.GetHashCode(); - hashCode = (hashCode * 59) + _123Number.GetHashCode(); + hashCode = (hashCode * 59) + var123Number.GetHashCode(); hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode(); return hashCode; @@ -166,10 +166,10 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - int? nameProperty = default; + int? varName = default; string? property = default; int? snakeCase = default; - int? _123number = default; + int? var123Number = default; while (utf8JsonReader.Read()) { @@ -188,7 +188,7 @@ namespace Org.OpenAPITools.Model { case "name": if (utf8JsonReader.TokenType != JsonTokenType.Null) - nameProperty = utf8JsonReader.GetInt32(); + varName = utf8JsonReader.GetInt32(); break; case "property": property = utf8JsonReader.GetString(); @@ -199,7 +199,7 @@ namespace Org.OpenAPITools.Model break; case "123Number": if (utf8JsonReader.TokenType != JsonTokenType.Null) - _123number = utf8JsonReader.GetInt32(); + var123Number = utf8JsonReader.GetInt32(); break; default: break; @@ -207,8 +207,8 @@ namespace Org.OpenAPITools.Model } } - if (nameProperty == null) - throw new ArgumentNullException(nameof(nameProperty), "Property is required for class Name."); + if (varName == null) + throw new ArgumentNullException(nameof(varName), "Property is required for class Name."); if (snakeCase == null) throw new ArgumentNullException(nameof(snakeCase), "Property is required for class Name."); @@ -216,10 +216,10 @@ namespace Org.OpenAPITools.Model if (property == null) throw new ArgumentNullException(nameof(property), "Property is required for class Name."); - if (_123number == null) - throw new ArgumentNullException(nameof(_123number), "Property is required for class Name."); + if (var123Number == null) + throw new ArgumentNullException(nameof(var123Number), "Property is required for class Name."); - return new Name(nameProperty.Value, property, snakeCase.Value, _123number.Value); + return new Name(varName.Value, property, snakeCase.Value, var123Number.Value); } /// @@ -233,10 +233,10 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteNumber("name", name.NameProperty); + writer.WriteNumber("name", name.VarName); writer.WriteString("property", name.Property); writer.WriteNumber("snake_case", name.SnakeCase); - writer.WriteNumber("123Number", name._123Number); + writer.WriteNumber("123Number", name.var123Number); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/OneOfString.cs index c215236bfdc..2eaf3b7bac6 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/OneOfString.cs @@ -33,11 +33,11 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// + /// [JsonConstructor] - internal OneOfString(string _string) + internal OneOfString(string varString) { - String = _string; + String = varString; OnCreated(); } @@ -121,9 +121,9 @@ namespace Org.OpenAPITools.Model } } - Utf8JsonReader _stringReader = utf8JsonReader; - if (Client.ClientUtils.TryDeserialize(ref _stringReader, jsonSerializerOptions, out string? _string)) - return new OneOfString(_string); + Utf8JsonReader varStringReader = utf8JsonReader; + if (Client.ClientUtils.TryDeserialize(ref varStringReader, jsonSerializerOptions, out string? varString)) + return new OneOfString(varString); throw new JsonException(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 892925c754a..2cb1329cf79 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -33,33 +33,33 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// + /// [JsonConstructor] - internal PolymorphicProperty(bool _bool) + internal PolymorphicProperty(bool varBool) { - Bool = _bool; + Bool = varBool; OnCreated(); } /// /// Initializes a new instance of the class. /// - /// + /// [JsonConstructor] - internal PolymorphicProperty(string _string) + internal PolymorphicProperty(string varString) { - String = _string; + String = varString; OnCreated(); } /// /// Initializes a new instance of the class. /// - /// + /// [JsonConstructor] - internal PolymorphicProperty(Object _object) + internal PolymorphicProperty(Object varObject) { - Object = _object; + Object = varObject; OnCreated(); } @@ -169,17 +169,17 @@ namespace Org.OpenAPITools.Model } } - Utf8JsonReader _boolReader = utf8JsonReader; - if (Client.ClientUtils.TryDeserialize(ref _boolReader, jsonSerializerOptions, out bool _bool)) - return new PolymorphicProperty(_bool); + Utf8JsonReader varBoolReader = utf8JsonReader; + if (Client.ClientUtils.TryDeserialize(ref varBoolReader, jsonSerializerOptions, out bool varBool)) + return new PolymorphicProperty(varBool); - Utf8JsonReader _stringReader = utf8JsonReader; - if (Client.ClientUtils.TryDeserialize(ref _stringReader, jsonSerializerOptions, out string? _string)) - return new PolymorphicProperty(_string); + Utf8JsonReader varStringReader = utf8JsonReader; + if (Client.ClientUtils.TryDeserialize(ref varStringReader, jsonSerializerOptions, out string? varString)) + return new PolymorphicProperty(varString); - Utf8JsonReader _objectReader = utf8JsonReader; - if (Client.ClientUtils.TryDeserialize(ref _objectReader, jsonSerializerOptions, out Object? _object)) - return new PolymorphicProperty(_object); + Utf8JsonReader varObjectReader = utf8JsonReader; + if (Client.ClientUtils.TryDeserialize(ref varObjectReader, jsonSerializerOptions, out Object? varObject)) + return new PolymorphicProperty(varObject); Utf8JsonReader liststringReader = utf8JsonReader; if (Client.ClientUtils.TryDeserialize>(ref liststringReader, jsonSerializerOptions, out List? liststring)) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/Return.cs index 624e1fc2b80..fb696e9a6e5 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/Return.cs @@ -33,21 +33,21 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// returnProperty + /// varReturn [JsonConstructor] - public Return(int returnProperty) + public Return(int varReturn) { - ReturnProperty = returnProperty; + VarReturn = varReturn; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets ReturnProperty + /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int ReturnProperty { get; set; } + public int VarReturn { get; set; } /// /// Gets or Sets additional properties @@ -63,7 +63,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Return {\n"); - sb.Append(" ReturnProperty: ").Append(ReturnProperty).Append("\n"); + sb.Append(" VarReturn: ").Append(VarReturn).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - int? returnProperty = default; + int? varReturn = default; while (utf8JsonReader.Read()) { @@ -121,7 +121,7 @@ namespace Org.OpenAPITools.Model { case "return": if (utf8JsonReader.TokenType != JsonTokenType.Null) - returnProperty = utf8JsonReader.GetInt32(); + varReturn = utf8JsonReader.GetInt32(); break; default: break; @@ -129,24 +129,24 @@ namespace Org.OpenAPITools.Model } } - if (returnProperty == null) - throw new ArgumentNullException(nameof(returnProperty), "Property is required for class Return."); + if (varReturn == null) + throw new ArgumentNullException(nameof(varReturn), "Property is required for class Return."); - return new Return(returnProperty.Value); + return new Return(varReturn.Value); } /// /// A Json writer /// /// - /// + /// /// /// - public override void Write(Utf8JsonWriter writer, Return _return, JsonSerializerOptions jsonSerializerOptions) + public override void Write(Utf8JsonWriter writer, Return varReturn, JsonSerializerOptions jsonSerializerOptions) { writer.WriteStartObject(); - writer.WriteNumber("return", _return.ReturnProperty); + writer.WriteNumber("return", varReturn.VarReturn); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/SpecialModelName.cs index 05931e731b9..7d313470b03 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -33,12 +33,12 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// specialModelNameProperty + /// varSpecialModelName /// specialPropertyName [JsonConstructor] - public SpecialModelName(string specialModelNameProperty, long specialPropertyName) + public SpecialModelName(string varSpecialModelName, long specialPropertyName) { - SpecialModelNameProperty = specialModelNameProperty; + VarSpecialModelName = varSpecialModelName; SpecialPropertyName = specialPropertyName; OnCreated(); } @@ -46,10 +46,10 @@ namespace Org.OpenAPITools.Model partial void OnCreated(); /// - /// Gets or Sets SpecialModelNameProperty + /// Gets or Sets VarSpecialModelName /// [JsonPropertyName("_special_model.name_")] - public string SpecialModelNameProperty { get; set; } + public string VarSpecialModelName { get; set; } /// /// Gets or Sets SpecialPropertyName @@ -71,7 +71,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class SpecialModelName {\n"); - sb.Append(" SpecialModelNameProperty: ").Append(SpecialModelNameProperty).Append("\n"); + sb.Append(" VarSpecialModelName: ").Append(VarSpecialModelName).Append("\n"); sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -111,7 +111,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - string? specialModelNameProperty = default; + string? varSpecialModelName = default; long? specialPropertyName = default; while (utf8JsonReader.Read()) @@ -130,7 +130,7 @@ namespace Org.OpenAPITools.Model switch (propertyName) { case "_special_model.name_": - specialModelNameProperty = utf8JsonReader.GetString(); + varSpecialModelName = utf8JsonReader.GetString(); break; case "$special[property.name]": if (utf8JsonReader.TokenType != JsonTokenType.Null) @@ -145,10 +145,10 @@ namespace Org.OpenAPITools.Model if (specialPropertyName == null) throw new ArgumentNullException(nameof(specialPropertyName), "Property is required for class SpecialModelName."); - if (specialModelNameProperty == null) - throw new ArgumentNullException(nameof(specialModelNameProperty), "Property is required for class SpecialModelName."); + if (varSpecialModelName == null) + throw new ArgumentNullException(nameof(varSpecialModelName), "Property is required for class SpecialModelName."); - return new SpecialModelName(specialModelNameProperty, specialPropertyName.Value); + return new SpecialModelName(varSpecialModelName, specialPropertyName.Value); } /// @@ -162,7 +162,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteString("_special_model.name_", specialModelName.SpecialModelNameProperty); + writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyName); writer.WriteEndObject(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/apis/FakeApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/apis/FakeApi.md index db746373b8a..6314e8c93b8 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/apis/FakeApi.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/apis/FakeApi.md @@ -809,7 +809,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? _float = null, int? integer = null, int? int32 = null, long? int64 = null, string _string = null, string password = null, string callback = null, DateTime? dateTime = null) +> void TestEndpointParameters (byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? varFloat = null, int? integer = null, int? int32 = null, long? int64 = null, string varString = null, string password = null, string callback = null, DateTime? dateTime = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -836,17 +836,17 @@ namespace Example config.Password = "YOUR_PASSWORD"; var apiInstance = new FakeApi(config); - var _byte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None + var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var number = 8.14D; // decimal | None - var _double = 1.2D; // double | None + var varDouble = 1.2D; // double | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None var date = DateTime.Parse("2013-10-20"); // DateTime? | None (optional) var binary = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | None (optional) - var _float = 3.4F; // float? | None (optional) + var varFloat = 3.4F; // float? | None (optional) var integer = 56; // int? | None (optional) var int32 = 56; // int? | None (optional) var int64 = 789L; // long? | None (optional) - var _string = "_string_example"; // string | None (optional) + var varString = "string_example"; // string | None (optional) var password = "password_example"; // string | None (optional) var callback = "callback_example"; // string | None (optional) var dateTime = DateTime.Parse(""2010-02-01T10:20:10.111110+01:00""); // DateTime? | None (optional) (default to "2010-02-01T10:20:10.111110+01:00") @@ -854,7 +854,7 @@ namespace Example try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParameters(_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); + apiInstance.TestEndpointParameters(varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); } catch (ApiException e) { @@ -874,7 +874,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParametersWithHttpInfo(_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); + apiInstance.TestEndpointParametersWithHttpInfo(varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); } catch (ApiException e) { @@ -888,17 +888,17 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **_byte** | **byte[]** | None | | +| **varByte** | **byte[]** | None | | | **number** | **decimal** | None | | -| **_double** | **double** | None | | +| **varDouble** | **double** | None | | | **patternWithoutDelimiter** | **string** | None | | | **date** | **DateTime?** | None | [optional] | | **binary** | **System.IO.Stream****System.IO.Stream** | None | [optional] | -| **_float** | **float?** | None | [optional] | +| **varFloat** | **float?** | None | [optional] | | **integer** | **int?** | None | [optional] | | **int32** | **int?** | None | [optional] | | **int64** | **long?** | None | [optional] | -| **_string** | **string** | None | [optional] | +| **varString** | **string** | None | [optional] | | **password** | **string** | None | [optional] | | **callback** | **string** | None | [optional] | | **dateTime** | **DateTime?** | None | [optional] [default to "2010-02-01T10:20:10.111110+01:00"] | diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/ClassModel.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/ClassModel.md index a098828a04f..07cd7974a65 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/ClassModel.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/ClassModel.md @@ -5,7 +5,7 @@ Model for testing model with \"_class\" property Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClassProperty** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/FooGetDefaultResponse.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/FooGetDefaultResponse.md index 78c99facf59..b9b9d302c23 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/FooGetDefaultResponse.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/FooGetDefaultResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**StringProperty** | [**Foo**](Foo.md) | | [optional] +**VarString** | [**Foo**](Foo.md) | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/FormatTest.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/FormatTest.md index 36cd3190b47..28f1a809358 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/FormatTest.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/FormatTest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Binary** | **System.IO.Stream** | | [optional] -**ByteProperty** | **byte[]** | | +**VarByte** | **byte[]** | | **Date** | **DateTime** | | **DateTime** | **DateTime** | | [optional] -**DecimalProperty** | **decimal** | | [optional] -**DoubleProperty** | **double** | | [optional] -**FloatProperty** | **float** | | [optional] +**VarDecimal** | **decimal** | | [optional] +**VarDouble** | **double** | | [optional] +**VarFloat** | **float** | | [optional] **Int32** | **int** | | [optional] **Int64** | **long** | | [optional] **Integer** | **int** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes **PatternWithBackslash** | **string** | None | [optional] **PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional] **PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] -**StringProperty** | **string** | | [optional] +**VarString** | **string** | | [optional] **UnsignedInteger** | **uint** | | [optional] **UnsignedLong** | **ulong** | | [optional] **Uuid** | **Guid** | | [optional] diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/List.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/List.md index 417d332b3af..bb3f287a205 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/List.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/List.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_123List** | **string** | | [optional] +**var123List** | **string** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/Model200Response.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/Model200Response.md index 93139e1d1aa..31bbc3f6db1 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/Model200Response.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/Model200Response.md @@ -5,7 +5,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClassProperty** | **string** | | [optional] +**VarClass** | **string** | | [optional] **Name** | **int** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/ModelClient.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/ModelClient.md index 51cf0636e72..1c5fbf112ce 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/ModelClient.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/ModelClient.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_ClientProperty** | **string** | | [optional] +**varClient** | **string** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/Name.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/Name.md index 11f49b9fd40..c975c649a72 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/Name.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/Name.md @@ -5,10 +5,10 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**NameProperty** | **int** | | +**VarName** | **int** | | **Property** | **string** | | [optional] **SnakeCase** | **int** | | [optional] [readonly] -**_123Number** | **int** | | [optional] [readonly] +**var123Number** | **int** | | [optional] [readonly] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/Return.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/Return.md index e11cdae8db9..1beb83fbaaf 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/Return.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ReturnProperty** | **int** | | [optional] +**VarReturn** | **int** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/SpecialModelName.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/SpecialModelName.md index b48f3490005..890bcd923de 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/SpecialModelName.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/SpecialModelName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialModelNameProperty** | **string** | | [optional] +**VarSpecialModelName** | **string** | | [optional] **SpecialPropertyName** | **long** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Api/FakeApi.cs index 2480b674d97..c8fa77df134 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Api/FakeApi.cs @@ -241,23 +241,23 @@ namespace Org.OpenAPITools.IApi /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// /// Thrown when fails to make API call - /// None + /// None /// None - /// None + /// None /// None /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// Cancellation Token to cancel the request. /// Task<ApiResponse<object>> - Task> TestEndpointParametersAsync(byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? _float = null, int? integer = null, int? int32 = null, long? int64 = null, string _string = null, string password = null, string callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default); + Task> TestEndpointParametersAsync(byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? varFloat = null, int? integer = null, int? int32 = null, long? int64 = null, string varString = null, string password = null, string callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -265,23 +265,23 @@ namespace Org.OpenAPITools.IApi /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// - /// None + /// None /// None - /// None + /// None /// None /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// Cancellation Token to cancel the request. /// Task<ApiResponse>object>> - Task> TestEndpointParametersOrDefaultAsync(byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? _float = null, int? integer = null, int? int32 = null, long? int64 = null, string _string = null, string password = null, string callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default); + Task> TestEndpointParametersOrDefaultAsync(byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? varFloat = null, int? integer = null, int? int32 = null, long? int64 = null, string varString = null, string password = null, string callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default); /// /// To test enum parameters @@ -1620,34 +1620,34 @@ namespace Org.OpenAPITools.Api /// /// Validates the request parameters /// - /// + /// /// - /// + /// /// /// /// - /// + /// /// /// /// - /// + /// /// /// /// /// - protected virtual (byte[], decimal, double, string, DateTime?, System.IO.Stream, float?, int?, int?, long?, string, string, string, DateTime?) OnTestEndpointParameters(byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date, System.IO.Stream binary, float? _float, int? integer, int? int32, long? int64, string _string, string password, string callback, DateTime? dateTime) + protected virtual (byte[], decimal, double, string, DateTime?, System.IO.Stream, float?, int?, int?, long?, string, string, string, DateTime?) OnTestEndpointParameters(byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date, System.IO.Stream binary, float? varFloat, int? integer, int? int32, long? int64, string varString, string password, string callback, DateTime? dateTime) { #pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null' #pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null' - if (_byte == null) - throw new ArgumentNullException(nameof(_byte)); + if (varByte == null) + throw new ArgumentNullException(nameof(varByte)); if (number == null) throw new ArgumentNullException(nameof(number)); - if (_double == null) - throw new ArgumentNullException(nameof(_double)); + if (varDouble == null) + throw new ArgumentNullException(nameof(varDouble)); if (patternWithoutDelimiter == null) throw new ArgumentNullException(nameof(patternWithoutDelimiter)); @@ -1655,28 +1655,28 @@ namespace Org.OpenAPITools.Api #pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null' #pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null' - return (_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); + return (varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); } /// /// Processes the server response /// /// - /// + /// /// - /// + /// /// /// /// - /// + /// /// /// /// - /// + /// /// /// /// - protected virtual void AfterTestEndpointParameters(ApiResponse apiResponseLocalVar, byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date, System.IO.Stream binary, float? _float, int? integer, int? int32, long? int64, string _string, string password, string callback, DateTime? dateTime) + protected virtual void AfterTestEndpointParameters(ApiResponse apiResponseLocalVar, byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date, System.IO.Stream binary, float? varFloat, int? integer, int? int32, long? int64, string varString, string password, string callback, DateTime? dateTime) { } @@ -1686,21 +1686,21 @@ namespace Org.OpenAPITools.Api /// /// /// - /// + /// /// - /// + /// /// /// /// - /// + /// /// /// /// - /// + /// /// /// /// - protected virtual void OnErrorTestEndpointParameters(Exception exception, string pathFormat, string path, byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date, System.IO.Stream binary, float? _float, int? integer, int? int32, long? int64, string _string, string password, string callback, DateTime? dateTime) + protected virtual void OnErrorTestEndpointParameters(Exception exception, string pathFormat, string path, byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date, System.IO.Stream binary, float? varFloat, int? integer, int? int32, long? int64, string varString, string password, string callback, DateTime? dateTime) { Logger.LogError(exception, "An error occurred while sending the request to the server."); } @@ -1708,27 +1708,27 @@ namespace Org.OpenAPITools.Api /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// - /// None + /// None /// None - /// None + /// None /// None /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// Cancellation Token to cancel the request. /// <> where T : - public async Task> TestEndpointParametersOrDefaultAsync(byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? _float = null, int? integer = null, int? int32 = null, long? int64 = null, string _string = null, string password = null, string callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default) + public async Task> TestEndpointParametersOrDefaultAsync(byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? varFloat = null, int? integer = null, int? int32 = null, long? int64 = null, string varString = null, string password = null, string callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default) { try { - return await TestEndpointParametersAsync(_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime, cancellationToken).ConfigureAwait(false); + return await TestEndpointParametersAsync(varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime, cancellationToken).ConfigureAwait(false); } catch (Exception) { @@ -1740,40 +1740,40 @@ namespace Org.OpenAPITools.Api /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// /// Thrown when fails to make API call - /// None + /// None /// None - /// None + /// None /// None /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// Cancellation Token to cancel the request. /// <> where T : - public async Task> TestEndpointParametersAsync(byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? _float = null, int? integer = null, int? int32 = null, long? int64 = null, string _string = null, string password = null, string callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default) + public async Task> TestEndpointParametersAsync(byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? varFloat = null, int? integer = null, int? int32 = null, long? int64 = null, string varString = null, string password = null, string callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default) { UriBuilder uriBuilderLocalVar = new UriBuilder(); try { - var validatedParameterLocalVars = OnTestEndpointParameters(_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); - _byte = validatedParameterLocalVars.Item1; + var validatedParameterLocalVars = OnTestEndpointParameters(varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); + varByte = validatedParameterLocalVars.Item1; number = validatedParameterLocalVars.Item2; - _double = validatedParameterLocalVars.Item3; + varDouble = validatedParameterLocalVars.Item3; patternWithoutDelimiter = validatedParameterLocalVars.Item4; date = validatedParameterLocalVars.Item5; binary = validatedParameterLocalVars.Item6; - _float = validatedParameterLocalVars.Item7; + varFloat = validatedParameterLocalVars.Item7; integer = validatedParameterLocalVars.Item8; int32 = validatedParameterLocalVars.Item9; int64 = validatedParameterLocalVars.Item10; - _string = validatedParameterLocalVars.Item11; + varString = validatedParameterLocalVars.Item11; password = validatedParameterLocalVars.Item12; callback = validatedParameterLocalVars.Item13; dateTime = validatedParameterLocalVars.Item14; @@ -1793,7 +1793,7 @@ namespace Org.OpenAPITools.Api multipartContentLocalVar.Add(new FormUrlEncodedContent(formParameterLocalVars)); - formParameterLocalVars.Add(new KeyValuePair("byte", ClientUtils.ParameterToString(_byte))); + formParameterLocalVars.Add(new KeyValuePair("byte", ClientUtils.ParameterToString(varByte))); @@ -1801,7 +1801,7 @@ namespace Org.OpenAPITools.Api - formParameterLocalVars.Add(new KeyValuePair("double", ClientUtils.ParameterToString(_double))); + formParameterLocalVars.Add(new KeyValuePair("double", ClientUtils.ParameterToString(varDouble))); @@ -1813,8 +1813,8 @@ namespace Org.OpenAPITools.Api if (binary != null) multipartContentLocalVar.Add(new StreamContent(binary)); - if (_float != null) - formParameterLocalVars.Add(new KeyValuePair("float", ClientUtils.ParameterToString(_float))); + if (varFloat != null) + formParameterLocalVars.Add(new KeyValuePair("float", ClientUtils.ParameterToString(varFloat))); if (integer != null) formParameterLocalVars.Add(new KeyValuePair("integer", ClientUtils.ParameterToString(integer))); @@ -1825,8 +1825,8 @@ namespace Org.OpenAPITools.Api if (int64 != null) formParameterLocalVars.Add(new KeyValuePair("int64", ClientUtils.ParameterToString(int64))); - if (_string != null) - formParameterLocalVars.Add(new KeyValuePair("string", ClientUtils.ParameterToString(_string))); + if (varString != null) + formParameterLocalVars.Add(new KeyValuePair("string", ClientUtils.ParameterToString(varString))); if (password != null) formParameterLocalVars.Add(new KeyValuePair("password", ClientUtils.ParameterToString(password))); @@ -1870,7 +1870,7 @@ namespace Org.OpenAPITools.Api ApiResponse apiResponseLocalVar = new ApiResponse(httpRequestMessageLocalVar, httpResponseMessageLocalVar, responseContentLocalVar, _jsonSerializerOptions); - AfterTestEndpointParameters(apiResponseLocalVar, _byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); + AfterTestEndpointParameters(apiResponseLocalVar, varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); if (apiResponseLocalVar.StatusCode == (HttpStatusCode) 429) foreach(TokenBase tokenBaseLocalVar in tokenBaseLocalVars) @@ -1882,7 +1882,7 @@ namespace Org.OpenAPITools.Api } catch(Exception e) { - OnErrorTestEndpointParameters(e, "/fake", uriBuilderLocalVar.Path, _byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); + OnErrorTestEndpointParameters(e, "/fake", uriBuilderLocalVar.Path, varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); throw; } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/ClassModel.cs index e3a146864d1..3a5da924b78 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/ClassModel.cs @@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// classProperty + /// varClass [JsonConstructor] - public ClassModel(string classProperty) + public ClassModel(string varClass) { - ClassProperty = classProperty; + VarClass = varClass; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets ClassProperty + /// Gets or Sets VarClass /// [JsonPropertyName("_class")] - public string ClassProperty { get; set; } + public string VarClass { get; set; } /// /// Gets or Sets additional properties @@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ClassModel {\n"); - sb.Append(" ClassProperty: ").Append(ClassProperty).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -100,7 +100,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - string classProperty = default; + string varClass = default; while (utf8JsonReader.Read()) { @@ -118,7 +118,7 @@ namespace Org.OpenAPITools.Model switch (propertyName) { case "_class": - classProperty = utf8JsonReader.GetString(); + varClass = utf8JsonReader.GetString(); break; default: break; @@ -126,10 +126,10 @@ namespace Org.OpenAPITools.Model } } - if (classProperty == null) - throw new ArgumentNullException(nameof(classProperty), "Property is required for class ClassModel."); + if (varClass == null) + throw new ArgumentNullException(nameof(varClass), "Property is required for class ClassModel."); - return new ClassModel(classProperty); + return new ClassModel(varClass); } /// @@ -143,7 +143,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteString("_class", classModel.ClassProperty); + writer.WriteString("_class", classModel.VarClass); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index a04de35840d..2f5cd937ae4 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// stringProperty + /// varString [JsonConstructor] - public FooGetDefaultResponse(Foo stringProperty) + public FooGetDefaultResponse(Foo varString) { - StringProperty = stringProperty; + VarString = varString; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets StringProperty + /// Gets or Sets VarString /// [JsonPropertyName("string")] - public Foo StringProperty { get; set; } + public Foo VarString { get; set; } /// /// Gets or Sets additional properties @@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class FooGetDefaultResponse {\n"); - sb.Append(" StringProperty: ").Append(StringProperty).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -100,7 +100,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Foo stringProperty = default; + Foo varString = default; while (utf8JsonReader.Read()) { @@ -119,7 +119,7 @@ namespace Org.OpenAPITools.Model { case "string": if (utf8JsonReader.TokenType != JsonTokenType.Null) - stringProperty = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); + varString = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); break; default: break; @@ -127,10 +127,10 @@ namespace Org.OpenAPITools.Model } } - if (stringProperty == null) - throw new ArgumentNullException(nameof(stringProperty), "Property is required for class FooGetDefaultResponse."); + if (varString == null) + throw new ArgumentNullException(nameof(varString), "Property is required for class FooGetDefaultResponse."); - return new FooGetDefaultResponse(stringProperty); + return new FooGetDefaultResponse(varString); } /// @@ -145,7 +145,7 @@ namespace Org.OpenAPITools.Model writer.WriteStartObject(); writer.WritePropertyName("string"); - JsonSerializer.Serialize(writer, fooGetDefaultResponse.StringProperty, jsonSerializerOptions); + JsonSerializer.Serialize(writer, fooGetDefaultResponse.VarString, jsonSerializerOptions); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/FormatTest.cs index 5d2551a1bbe..eb82f9ee349 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/FormatTest.cs @@ -32,12 +32,12 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// binary - /// byteProperty + /// varByte /// date /// dateTime - /// decimalProperty - /// doubleProperty - /// floatProperty + /// varDecimal + /// varDouble + /// varFloat /// int32 /// int64 /// integer @@ -46,20 +46,20 @@ namespace Org.OpenAPITools.Model /// None /// A string that is a 10 digit number. Can have leading zeros. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. - /// stringProperty + /// varString /// unsignedInteger /// unsignedLong /// uuid [JsonConstructor] - public FormatTest(System.IO.Stream binary, byte[] byteProperty, DateTime date, DateTime dateTime, decimal decimalProperty, double doubleProperty, float floatProperty, int int32, long int64, int integer, decimal number, string password, string patternWithBackslash, string patternWithDigits, string patternWithDigitsAndDelimiter, string stringProperty, uint unsignedInteger, ulong unsignedLong, Guid uuid) + public FormatTest(System.IO.Stream binary, byte[] varByte, DateTime date, DateTime dateTime, decimal varDecimal, double varDouble, float varFloat, int int32, long int64, int integer, decimal number, string password, string patternWithBackslash, string patternWithDigits, string patternWithDigitsAndDelimiter, string varString, uint unsignedInteger, ulong unsignedLong, Guid uuid) { Binary = binary; - ByteProperty = byteProperty; + VarByte = varByte; Date = date; DateTime = dateTime; - DecimalProperty = decimalProperty; - DoubleProperty = doubleProperty; - FloatProperty = floatProperty; + VarDecimal = varDecimal; + VarDouble = varDouble; + VarFloat = varFloat; Int32 = int32; Int64 = int64; Integer = integer; @@ -68,7 +68,7 @@ namespace Org.OpenAPITools.Model PatternWithBackslash = patternWithBackslash; PatternWithDigits = patternWithDigits; PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; - StringProperty = stringProperty; + VarString = varString; UnsignedInteger = unsignedInteger; UnsignedLong = unsignedLong; Uuid = uuid; @@ -84,10 +84,10 @@ namespace Org.OpenAPITools.Model public System.IO.Stream Binary { get; set; } /// - /// Gets or Sets ByteProperty + /// Gets or Sets VarByte /// [JsonPropertyName("byte")] - public byte[] ByteProperty { get; set; } + public byte[] VarByte { get; set; } /// /// Gets or Sets Date @@ -104,22 +104,22 @@ namespace Org.OpenAPITools.Model public DateTime DateTime { get; set; } /// - /// Gets or Sets DecimalProperty + /// Gets or Sets VarDecimal /// [JsonPropertyName("decimal")] - public decimal DecimalProperty { get; set; } + public decimal VarDecimal { get; set; } /// - /// Gets or Sets DoubleProperty + /// Gets or Sets VarDouble /// [JsonPropertyName("double")] - public double DoubleProperty { get; set; } + public double VarDouble { get; set; } /// - /// Gets or Sets FloatProperty + /// Gets or Sets VarFloat /// [JsonPropertyName("float")] - public float FloatProperty { get; set; } + public float VarFloat { get; set; } /// /// Gets or Sets Int32 @@ -173,10 +173,10 @@ namespace Org.OpenAPITools.Model public string PatternWithDigitsAndDelimiter { get; set; } /// - /// Gets or Sets StringProperty + /// Gets or Sets VarString /// [JsonPropertyName("string")] - public string StringProperty { get; set; } + public string VarString { get; set; } /// /// Gets or Sets UnsignedInteger @@ -212,12 +212,12 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class FormatTest {\n"); sb.Append(" Binary: ").Append(Binary).Append("\n"); - sb.Append(" ByteProperty: ").Append(ByteProperty).Append("\n"); + sb.Append(" VarByte: ").Append(VarByte).Append("\n"); sb.Append(" Date: ").Append(Date).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n"); - sb.Append(" DecimalProperty: ").Append(DecimalProperty).Append("\n"); - sb.Append(" DoubleProperty: ").Append(DoubleProperty).Append("\n"); - sb.Append(" FloatProperty: ").Append(FloatProperty).Append("\n"); + sb.Append(" VarDecimal: ").Append(VarDecimal).Append("\n"); + sb.Append(" VarDouble: ").Append(VarDouble).Append("\n"); + sb.Append(" VarFloat: ").Append(VarFloat).Append("\n"); sb.Append(" Int32: ").Append(Int32).Append("\n"); sb.Append(" Int64: ").Append(Int64).Append("\n"); sb.Append(" Integer: ").Append(Integer).Append("\n"); @@ -226,7 +226,7 @@ namespace Org.OpenAPITools.Model sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n"); sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n"); sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n"); - sb.Append(" StringProperty: ").Append(StringProperty).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n"); sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); @@ -242,28 +242,28 @@ namespace Org.OpenAPITools.Model /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // DoubleProperty (double) maximum - if (this.DoubleProperty > (double)123.4) + // VarDouble (double) maximum + if (this.VarDouble > (double)123.4) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DoubleProperty, must be a value less than or equal to 123.4.", new [] { "DoubleProperty" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value less than or equal to 123.4.", new [] { "VarDouble" }); } - // DoubleProperty (double) minimum - if (this.DoubleProperty < (double)67.8) + // VarDouble (double) minimum + if (this.VarDouble < (double)67.8) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DoubleProperty, must be a value greater than or equal to 67.8.", new [] { "DoubleProperty" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value greater than or equal to 67.8.", new [] { "VarDouble" }); } - // FloatProperty (float) maximum - if (this.FloatProperty > (float)987.6) + // VarFloat (float) maximum + if (this.VarFloat > (float)987.6) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FloatProperty, must be a value less than or equal to 987.6.", new [] { "FloatProperty" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value less than or equal to 987.6.", new [] { "VarFloat" }); } - // FloatProperty (float) minimum - if (this.FloatProperty < (float)54.3) + // VarFloat (float) minimum + if (this.VarFloat < (float)54.3) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FloatProperty, must be a value greater than or equal to 54.3.", new [] { "FloatProperty" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value greater than or equal to 54.3.", new [] { "VarFloat" }); } // Int32 (int) maximum @@ -335,11 +335,11 @@ namespace Org.OpenAPITools.Model yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); } - // StringProperty (string) pattern - Regex regexStringProperty = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (false == regexStringProperty.Match(this.StringProperty).Success) + // VarString (string) pattern + Regex regexVarString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (false == regexVarString.Match(this.VarString).Success) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StringProperty, must match a pattern of " + regexStringProperty, new [] { "StringProperty" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarString, must match a pattern of " + regexVarString, new [] { "VarString" }); } // UnsignedInteger (uint) maximum @@ -391,12 +391,12 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; System.IO.Stream binary = default; - byte[] byteProperty = default; + byte[] varByte = default; DateTime? date = default; DateTime? dateTime = default; - decimal? decimalProperty = default; - double? doubleProperty = default; - float? floatProperty = default; + decimal? varDecimal = default; + double? varDouble = default; + float? varFloat = default; int? int32 = default; long? int64 = default; int? integer = default; @@ -405,7 +405,7 @@ namespace Org.OpenAPITools.Model string patternWithBackslash = default; string patternWithDigits = default; string patternWithDigitsAndDelimiter = default; - string stringProperty = default; + string varString = default; uint? unsignedInteger = default; ulong? unsignedLong = default; Guid? uuid = default; @@ -431,7 +431,7 @@ namespace Org.OpenAPITools.Model break; case "byte": if (utf8JsonReader.TokenType != JsonTokenType.Null) - byteProperty = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); + varByte = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); break; case "date": if (utf8JsonReader.TokenType != JsonTokenType.Null) @@ -443,15 +443,15 @@ namespace Org.OpenAPITools.Model break; case "decimal": if (utf8JsonReader.TokenType != JsonTokenType.Null) - decimalProperty = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); + varDecimal = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); break; case "double": if (utf8JsonReader.TokenType != JsonTokenType.Null) - doubleProperty = utf8JsonReader.GetDouble(); + varDouble = utf8JsonReader.GetDouble(); break; case "float": if (utf8JsonReader.TokenType != JsonTokenType.Null) - floatProperty = (float)utf8JsonReader.GetDouble(); + varFloat = (float)utf8JsonReader.GetDouble(); break; case "int32": if (utf8JsonReader.TokenType != JsonTokenType.Null) @@ -482,7 +482,7 @@ namespace Org.OpenAPITools.Model patternWithDigitsAndDelimiter = utf8JsonReader.GetString(); break; case "string": - stringProperty = utf8JsonReader.GetString(); + varString = utf8JsonReader.GetString(); break; case "unsigned_integer": if (utf8JsonReader.TokenType != JsonTokenType.Null) @@ -520,20 +520,20 @@ namespace Org.OpenAPITools.Model if (number == null) throw new ArgumentNullException(nameof(number), "Property is required for class FormatTest."); - if (floatProperty == null) - throw new ArgumentNullException(nameof(floatProperty), "Property is required for class FormatTest."); + if (varFloat == null) + throw new ArgumentNullException(nameof(varFloat), "Property is required for class FormatTest."); - if (doubleProperty == null) - throw new ArgumentNullException(nameof(doubleProperty), "Property is required for class FormatTest."); + if (varDouble == null) + throw new ArgumentNullException(nameof(varDouble), "Property is required for class FormatTest."); - if (decimalProperty == null) - throw new ArgumentNullException(nameof(decimalProperty), "Property is required for class FormatTest."); + if (varDecimal == null) + throw new ArgumentNullException(nameof(varDecimal), "Property is required for class FormatTest."); - if (stringProperty == null) - throw new ArgumentNullException(nameof(stringProperty), "Property is required for class FormatTest."); + if (varString == null) + throw new ArgumentNullException(nameof(varString), "Property is required for class FormatTest."); - if (byteProperty == null) - throw new ArgumentNullException(nameof(byteProperty), "Property is required for class FormatTest."); + if (varByte == null) + throw new ArgumentNullException(nameof(varByte), "Property is required for class FormatTest."); if (binary == null) throw new ArgumentNullException(nameof(binary), "Property is required for class FormatTest."); @@ -559,7 +559,7 @@ namespace Org.OpenAPITools.Model if (patternWithBackslash == null) throw new ArgumentNullException(nameof(patternWithBackslash), "Property is required for class FormatTest."); - return new FormatTest(binary, byteProperty, date.Value, dateTime.Value, decimalProperty.Value, doubleProperty.Value, floatProperty.Value, int32.Value, int64.Value, integer.Value, number.Value, password, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, stringProperty, unsignedInteger.Value, unsignedLong.Value, uuid.Value); + return new FormatTest(binary, varByte, date.Value, dateTime.Value, varDecimal.Value, varDouble.Value, varFloat.Value, int32.Value, int64.Value, integer.Value, number.Value, password, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, unsignedInteger.Value, unsignedLong.Value, uuid.Value); } /// @@ -576,13 +576,13 @@ namespace Org.OpenAPITools.Model writer.WritePropertyName("binary"); JsonSerializer.Serialize(writer, formatTest.Binary, jsonSerializerOptions); writer.WritePropertyName("byte"); - JsonSerializer.Serialize(writer, formatTest.ByteProperty, jsonSerializerOptions); + JsonSerializer.Serialize(writer, formatTest.VarByte, jsonSerializerOptions); writer.WriteString("date", formatTest.Date.ToString(DateFormat)); writer.WriteString("dateTime", formatTest.DateTime.ToString(DateTimeFormat)); writer.WritePropertyName("decimal"); - JsonSerializer.Serialize(writer, formatTest.DecimalProperty, jsonSerializerOptions); - writer.WriteNumber("double", formatTest.DoubleProperty); - writer.WriteNumber("float", formatTest.FloatProperty); + JsonSerializer.Serialize(writer, formatTest.VarDecimal, jsonSerializerOptions); + writer.WriteNumber("double", formatTest.VarDouble); + writer.WriteNumber("float", formatTest.VarFloat); writer.WriteNumber("int32", formatTest.Int32); writer.WriteNumber("int64", formatTest.Int64); writer.WriteNumber("integer", formatTest.Integer); @@ -591,7 +591,7 @@ namespace Org.OpenAPITools.Model writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); - writer.WriteString("string", formatTest.StringProperty); + writer.WriteString("string", formatTest.VarString); writer.WriteNumber("unsigned_integer", formatTest.UnsignedInteger); writer.WriteNumber("unsigned_long", formatTest.UnsignedLong); writer.WriteString("uuid", formatTest.Uuid); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/List.cs index e0a1bebc78a..97177f74a38 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/List.cs @@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _123list + /// var123List [JsonConstructor] - public List(string _123list) + public List(string var123List) { - _123List = _123list; + var123List = var123List; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets _123List + /// Gets or Sets var123List /// [JsonPropertyName("123-list")] - public string _123List { get; set; } + public string var123List { get; set; } /// /// Gets or Sets additional properties @@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class List {\n"); - sb.Append(" _123List: ").Append(_123List).Append("\n"); + sb.Append(" var123List: ").Append(var123List).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -100,7 +100,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - string _123list = default; + string var123List = default; while (utf8JsonReader.Read()) { @@ -118,7 +118,7 @@ namespace Org.OpenAPITools.Model switch (propertyName) { case "123-list": - _123list = utf8JsonReader.GetString(); + var123List = utf8JsonReader.GetString(); break; default: break; @@ -126,10 +126,10 @@ namespace Org.OpenAPITools.Model } } - if (_123list == null) - throw new ArgumentNullException(nameof(_123list), "Property is required for class List."); + if (var123List == null) + throw new ArgumentNullException(nameof(var123List), "Property is required for class List."); - return new List(_123list); + return new List(var123List); } /// @@ -143,7 +143,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteString("123-list", list._123List); + writer.WriteString("123-list", list.var123List); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/Model200Response.cs index f0206c1a01b..6fba7094d47 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/Model200Response.cs @@ -31,12 +31,12 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// classProperty + /// varClass /// name [JsonConstructor] - public Model200Response(string classProperty, int name) + public Model200Response(string varClass, int name) { - ClassProperty = classProperty; + VarClass = varClass; Name = name; OnCreated(); } @@ -44,10 +44,10 @@ namespace Org.OpenAPITools.Model partial void OnCreated(); /// - /// Gets or Sets ClassProperty + /// Gets or Sets VarClass /// [JsonPropertyName("class")] - public string ClassProperty { get; set; } + public string VarClass { get; set; } /// /// Gets or Sets Name @@ -69,7 +69,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Model200Response {\n"); - sb.Append(" ClassProperty: ").Append(ClassProperty).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - string classProperty = default; + string varClass = default; int? name = default; while (utf8JsonReader.Read()) @@ -128,7 +128,7 @@ namespace Org.OpenAPITools.Model switch (propertyName) { case "class": - classProperty = utf8JsonReader.GetString(); + varClass = utf8JsonReader.GetString(); break; case "name": if (utf8JsonReader.TokenType != JsonTokenType.Null) @@ -143,10 +143,10 @@ namespace Org.OpenAPITools.Model if (name == null) throw new ArgumentNullException(nameof(name), "Property is required for class Model200Response."); - if (classProperty == null) - throw new ArgumentNullException(nameof(classProperty), "Property is required for class Model200Response."); + if (varClass == null) + throw new ArgumentNullException(nameof(varClass), "Property is required for class Model200Response."); - return new Model200Response(classProperty, name.Value); + return new Model200Response(varClass, name.Value); } /// @@ -160,7 +160,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteString("class", model200Response.ClassProperty); + writer.WriteString("class", model200Response.VarClass); writer.WriteNumber("name", model200Response.Name); writer.WriteEndObject(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/ModelClient.cs index 49336cff7a5..23fbf4f37eb 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/ModelClient.cs @@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// clientProperty + /// varClient [JsonConstructor] - public ModelClient(string clientProperty) + public ModelClient(string varClient) { - _ClientProperty = clientProperty; + varClient = varClient; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets _ClientProperty + /// Gets or Sets varClient /// [JsonPropertyName("client")] - public string _ClientProperty { get; set; } + public string varClient { get; set; } /// /// Gets or Sets additional properties @@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ModelClient {\n"); - sb.Append(" _ClientProperty: ").Append(_ClientProperty).Append("\n"); + sb.Append(" varClient: ").Append(varClient).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -100,7 +100,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - string clientProperty = default; + string varClient = default; while (utf8JsonReader.Read()) { @@ -118,7 +118,7 @@ namespace Org.OpenAPITools.Model switch (propertyName) { case "client": - clientProperty = utf8JsonReader.GetString(); + varClient = utf8JsonReader.GetString(); break; default: break; @@ -126,10 +126,10 @@ namespace Org.OpenAPITools.Model } } - if (clientProperty == null) - throw new ArgumentNullException(nameof(clientProperty), "Property is required for class ModelClient."); + if (varClient == null) + throw new ArgumentNullException(nameof(varClient), "Property is required for class ModelClient."); - return new ModelClient(clientProperty); + return new ModelClient(varClient); } /// @@ -143,7 +143,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteString("client", modelClient._ClientProperty); + writer.WriteString("client", modelClient.varClient); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/Name.cs index e84d1732fec..c057897861a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/Name.cs @@ -31,27 +31,27 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// nameProperty + /// varName /// property /// snakeCase - /// _123number + /// var123Number [JsonConstructor] - public Name(int nameProperty, string property, int snakeCase, int _123number) + public Name(int varName, string property, int snakeCase, int var123Number) { - NameProperty = nameProperty; + VarName = varName; Property = property; SnakeCase = snakeCase; - _123Number = _123number; + var123Number = var123Number; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets NameProperty + /// Gets or Sets VarName /// [JsonPropertyName("name")] - public int NameProperty { get; set; } + public int VarName { get; set; } /// /// Gets or Sets Property @@ -66,10 +66,10 @@ namespace Org.OpenAPITools.Model public int SnakeCase { get; } /// - /// Gets or Sets _123Number + /// Gets or Sets var123Number /// [JsonPropertyName("123Number")] - public int _123Number { get; } + public int var123Number { get; } /// /// Gets or Sets additional properties @@ -85,10 +85,10 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Name {\n"); - sb.Append(" NameProperty: ").Append(NameProperty).Append("\n"); + sb.Append(" VarName: ").Append(VarName).Append("\n"); sb.Append(" Property: ").Append(Property).Append("\n"); sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n"); - sb.Append(" _123Number: ").Append(_123Number).Append("\n"); + sb.Append(" var123Number: ").Append(var123Number).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -124,7 +124,7 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + SnakeCase.GetHashCode(); - hashCode = (hashCode * 59) + _123Number.GetHashCode(); + hashCode = (hashCode * 59) + var123Number.GetHashCode(); hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode(); return hashCode; @@ -164,10 +164,10 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - int? nameProperty = default; + int? varName = default; string property = default; int? snakeCase = default; - int? _123number = default; + int? var123Number = default; while (utf8JsonReader.Read()) { @@ -186,7 +186,7 @@ namespace Org.OpenAPITools.Model { case "name": if (utf8JsonReader.TokenType != JsonTokenType.Null) - nameProperty = utf8JsonReader.GetInt32(); + varName = utf8JsonReader.GetInt32(); break; case "property": property = utf8JsonReader.GetString(); @@ -197,7 +197,7 @@ namespace Org.OpenAPITools.Model break; case "123Number": if (utf8JsonReader.TokenType != JsonTokenType.Null) - _123number = utf8JsonReader.GetInt32(); + var123Number = utf8JsonReader.GetInt32(); break; default: break; @@ -205,8 +205,8 @@ namespace Org.OpenAPITools.Model } } - if (nameProperty == null) - throw new ArgumentNullException(nameof(nameProperty), "Property is required for class Name."); + if (varName == null) + throw new ArgumentNullException(nameof(varName), "Property is required for class Name."); if (snakeCase == null) throw new ArgumentNullException(nameof(snakeCase), "Property is required for class Name."); @@ -214,10 +214,10 @@ namespace Org.OpenAPITools.Model if (property == null) throw new ArgumentNullException(nameof(property), "Property is required for class Name."); - if (_123number == null) - throw new ArgumentNullException(nameof(_123number), "Property is required for class Name."); + if (var123Number == null) + throw new ArgumentNullException(nameof(var123Number), "Property is required for class Name."); - return new Name(nameProperty.Value, property, snakeCase.Value, _123number.Value); + return new Name(varName.Value, property, snakeCase.Value, var123Number.Value); } /// @@ -231,10 +231,10 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteNumber("name", name.NameProperty); + writer.WriteNumber("name", name.VarName); writer.WriteString("property", name.Property); writer.WriteNumber("snake_case", name.SnakeCase); - writer.WriteNumber("123Number", name._123Number); + writer.WriteNumber("123Number", name.var123Number); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/OneOfString.cs index c6bd77e4252..7a978c5eeda 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/OneOfString.cs @@ -31,11 +31,11 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// + /// [JsonConstructor] - internal OneOfString(string _string) + internal OneOfString(string varString) { - String = _string; + String = varString; OnCreated(); } @@ -119,9 +119,9 @@ namespace Org.OpenAPITools.Model } } - Utf8JsonReader _stringReader = utf8JsonReader; - if (Client.ClientUtils.TryDeserialize(ref _stringReader, jsonSerializerOptions, out string _string)) - return new OneOfString(_string); + Utf8JsonReader varStringReader = utf8JsonReader; + if (Client.ClientUtils.TryDeserialize(ref varStringReader, jsonSerializerOptions, out string varString)) + return new OneOfString(varString); throw new JsonException(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 1cd630cff76..10dcf5c9fa5 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -31,33 +31,33 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// + /// [JsonConstructor] - internal PolymorphicProperty(bool _bool) + internal PolymorphicProperty(bool varBool) { - Bool = _bool; + Bool = varBool; OnCreated(); } /// /// Initializes a new instance of the class. /// - /// + /// [JsonConstructor] - internal PolymorphicProperty(string _string) + internal PolymorphicProperty(string varString) { - String = _string; + String = varString; OnCreated(); } /// /// Initializes a new instance of the class. /// - /// + /// [JsonConstructor] - internal PolymorphicProperty(Object _object) + internal PolymorphicProperty(Object varObject) { - Object = _object; + Object = varObject; OnCreated(); } @@ -167,17 +167,17 @@ namespace Org.OpenAPITools.Model } } - Utf8JsonReader _boolReader = utf8JsonReader; - if (Client.ClientUtils.TryDeserialize(ref _boolReader, jsonSerializerOptions, out bool _bool)) - return new PolymorphicProperty(_bool); + Utf8JsonReader varBoolReader = utf8JsonReader; + if (Client.ClientUtils.TryDeserialize(ref varBoolReader, jsonSerializerOptions, out bool varBool)) + return new PolymorphicProperty(varBool); - Utf8JsonReader _stringReader = utf8JsonReader; - if (Client.ClientUtils.TryDeserialize(ref _stringReader, jsonSerializerOptions, out string _string)) - return new PolymorphicProperty(_string); + Utf8JsonReader varStringReader = utf8JsonReader; + if (Client.ClientUtils.TryDeserialize(ref varStringReader, jsonSerializerOptions, out string varString)) + return new PolymorphicProperty(varString); - Utf8JsonReader _objectReader = utf8JsonReader; - if (Client.ClientUtils.TryDeserialize(ref _objectReader, jsonSerializerOptions, out Object _object)) - return new PolymorphicProperty(_object); + Utf8JsonReader varObjectReader = utf8JsonReader; + if (Client.ClientUtils.TryDeserialize(ref varObjectReader, jsonSerializerOptions, out Object varObject)) + return new PolymorphicProperty(varObject); Utf8JsonReader liststringReader = utf8JsonReader; if (Client.ClientUtils.TryDeserialize>(ref liststringReader, jsonSerializerOptions, out List liststring)) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/Return.cs index 076d3a3b569..881c80f187c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/Return.cs @@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// returnProperty + /// varReturn [JsonConstructor] - public Return(int returnProperty) + public Return(int varReturn) { - ReturnProperty = returnProperty; + VarReturn = varReturn; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets ReturnProperty + /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int ReturnProperty { get; set; } + public int VarReturn { get; set; } /// /// Gets or Sets additional properties @@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Return {\n"); - sb.Append(" ReturnProperty: ").Append(ReturnProperty).Append("\n"); + sb.Append(" VarReturn: ").Append(VarReturn).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -100,7 +100,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - int? returnProperty = default; + int? varReturn = default; while (utf8JsonReader.Read()) { @@ -119,7 +119,7 @@ namespace Org.OpenAPITools.Model { case "return": if (utf8JsonReader.TokenType != JsonTokenType.Null) - returnProperty = utf8JsonReader.GetInt32(); + varReturn = utf8JsonReader.GetInt32(); break; default: break; @@ -127,24 +127,24 @@ namespace Org.OpenAPITools.Model } } - if (returnProperty == null) - throw new ArgumentNullException(nameof(returnProperty), "Property is required for class Return."); + if (varReturn == null) + throw new ArgumentNullException(nameof(varReturn), "Property is required for class Return."); - return new Return(returnProperty.Value); + return new Return(varReturn.Value); } /// /// A Json writer /// /// - /// + /// /// /// - public override void Write(Utf8JsonWriter writer, Return _return, JsonSerializerOptions jsonSerializerOptions) + public override void Write(Utf8JsonWriter writer, Return varReturn, JsonSerializerOptions jsonSerializerOptions) { writer.WriteStartObject(); - writer.WriteNumber("return", _return.ReturnProperty); + writer.WriteNumber("return", varReturn.VarReturn); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/SpecialModelName.cs index 13d870a94fd..609f6bb6891 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -31,12 +31,12 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// specialModelNameProperty + /// varSpecialModelName /// specialPropertyName [JsonConstructor] - public SpecialModelName(string specialModelNameProperty, long specialPropertyName) + public SpecialModelName(string varSpecialModelName, long specialPropertyName) { - SpecialModelNameProperty = specialModelNameProperty; + VarSpecialModelName = varSpecialModelName; SpecialPropertyName = specialPropertyName; OnCreated(); } @@ -44,10 +44,10 @@ namespace Org.OpenAPITools.Model partial void OnCreated(); /// - /// Gets or Sets SpecialModelNameProperty + /// Gets or Sets VarSpecialModelName /// [JsonPropertyName("_special_model.name_")] - public string SpecialModelNameProperty { get; set; } + public string VarSpecialModelName { get; set; } /// /// Gets or Sets SpecialPropertyName @@ -69,7 +69,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class SpecialModelName {\n"); - sb.Append(" SpecialModelNameProperty: ").Append(SpecialModelNameProperty).Append("\n"); + sb.Append(" VarSpecialModelName: ").Append(VarSpecialModelName).Append("\n"); sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - string specialModelNameProperty = default; + string varSpecialModelName = default; long? specialPropertyName = default; while (utf8JsonReader.Read()) @@ -128,7 +128,7 @@ namespace Org.OpenAPITools.Model switch (propertyName) { case "_special_model.name_": - specialModelNameProperty = utf8JsonReader.GetString(); + varSpecialModelName = utf8JsonReader.GetString(); break; case "$special[property.name]": if (utf8JsonReader.TokenType != JsonTokenType.Null) @@ -143,10 +143,10 @@ namespace Org.OpenAPITools.Model if (specialPropertyName == null) throw new ArgumentNullException(nameof(specialPropertyName), "Property is required for class SpecialModelName."); - if (specialModelNameProperty == null) - throw new ArgumentNullException(nameof(specialModelNameProperty), "Property is required for class SpecialModelName."); + if (varSpecialModelName == null) + throw new ArgumentNullException(nameof(varSpecialModelName), "Property is required for class SpecialModelName."); - return new SpecialModelName(specialModelNameProperty, specialPropertyName.Value); + return new SpecialModelName(varSpecialModelName, specialPropertyName.Value); } /// @@ -160,7 +160,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteString("_special_model.name_", specialModelName.SpecialModelNameProperty); + writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyName); writer.WriteEndObject(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/apis/FakeApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/apis/FakeApi.md index db746373b8a..6314e8c93b8 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/apis/FakeApi.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/apis/FakeApi.md @@ -809,7 +809,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? _float = null, int? integer = null, int? int32 = null, long? int64 = null, string _string = null, string password = null, string callback = null, DateTime? dateTime = null) +> void TestEndpointParameters (byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? varFloat = null, int? integer = null, int? int32 = null, long? int64 = null, string varString = null, string password = null, string callback = null, DateTime? dateTime = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -836,17 +836,17 @@ namespace Example config.Password = "YOUR_PASSWORD"; var apiInstance = new FakeApi(config); - var _byte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None + var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var number = 8.14D; // decimal | None - var _double = 1.2D; // double | None + var varDouble = 1.2D; // double | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None var date = DateTime.Parse("2013-10-20"); // DateTime? | None (optional) var binary = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | None (optional) - var _float = 3.4F; // float? | None (optional) + var varFloat = 3.4F; // float? | None (optional) var integer = 56; // int? | None (optional) var int32 = 56; // int? | None (optional) var int64 = 789L; // long? | None (optional) - var _string = "_string_example"; // string | None (optional) + var varString = "string_example"; // string | None (optional) var password = "password_example"; // string | None (optional) var callback = "callback_example"; // string | None (optional) var dateTime = DateTime.Parse(""2010-02-01T10:20:10.111110+01:00""); // DateTime? | None (optional) (default to "2010-02-01T10:20:10.111110+01:00") @@ -854,7 +854,7 @@ namespace Example try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParameters(_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); + apiInstance.TestEndpointParameters(varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); } catch (ApiException e) { @@ -874,7 +874,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParametersWithHttpInfo(_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); + apiInstance.TestEndpointParametersWithHttpInfo(varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); } catch (ApiException e) { @@ -888,17 +888,17 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **_byte** | **byte[]** | None | | +| **varByte** | **byte[]** | None | | | **number** | **decimal** | None | | -| **_double** | **double** | None | | +| **varDouble** | **double** | None | | | **patternWithoutDelimiter** | **string** | None | | | **date** | **DateTime?** | None | [optional] | | **binary** | **System.IO.Stream****System.IO.Stream** | None | [optional] | -| **_float** | **float?** | None | [optional] | +| **varFloat** | **float?** | None | [optional] | | **integer** | **int?** | None | [optional] | | **int32** | **int?** | None | [optional] | | **int64** | **long?** | None | [optional] | -| **_string** | **string** | None | [optional] | +| **varString** | **string** | None | [optional] | | **password** | **string** | None | [optional] | | **callback** | **string** | None | [optional] | | **dateTime** | **DateTime?** | None | [optional] [default to "2010-02-01T10:20:10.111110+01:00"] | diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/ClassModel.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/ClassModel.md index a098828a04f..07cd7974a65 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/ClassModel.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/ClassModel.md @@ -5,7 +5,7 @@ Model for testing model with \"_class\" property Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClassProperty** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/FooGetDefaultResponse.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/FooGetDefaultResponse.md index 78c99facf59..b9b9d302c23 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/FooGetDefaultResponse.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/FooGetDefaultResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**StringProperty** | [**Foo**](Foo.md) | | [optional] +**VarString** | [**Foo**](Foo.md) | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/FormatTest.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/FormatTest.md index 36cd3190b47..28f1a809358 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/FormatTest.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/FormatTest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Binary** | **System.IO.Stream** | | [optional] -**ByteProperty** | **byte[]** | | +**VarByte** | **byte[]** | | **Date** | **DateTime** | | **DateTime** | **DateTime** | | [optional] -**DecimalProperty** | **decimal** | | [optional] -**DoubleProperty** | **double** | | [optional] -**FloatProperty** | **float** | | [optional] +**VarDecimal** | **decimal** | | [optional] +**VarDouble** | **double** | | [optional] +**VarFloat** | **float** | | [optional] **Int32** | **int** | | [optional] **Int64** | **long** | | [optional] **Integer** | **int** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes **PatternWithBackslash** | **string** | None | [optional] **PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional] **PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] -**StringProperty** | **string** | | [optional] +**VarString** | **string** | | [optional] **UnsignedInteger** | **uint** | | [optional] **UnsignedLong** | **ulong** | | [optional] **Uuid** | **Guid** | | [optional] diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/List.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/List.md index 417d332b3af..bb3f287a205 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/List.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/List.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_123List** | **string** | | [optional] +**var123List** | **string** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/Model200Response.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/Model200Response.md index 93139e1d1aa..31bbc3f6db1 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/Model200Response.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/Model200Response.md @@ -5,7 +5,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClassProperty** | **string** | | [optional] +**VarClass** | **string** | | [optional] **Name** | **int** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/ModelClient.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/ModelClient.md index 51cf0636e72..1c5fbf112ce 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/ModelClient.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/ModelClient.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_ClientProperty** | **string** | | [optional] +**varClient** | **string** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/Name.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/Name.md index 11f49b9fd40..c975c649a72 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/Name.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/Name.md @@ -5,10 +5,10 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**NameProperty** | **int** | | +**VarName** | **int** | | **Property** | **string** | | [optional] **SnakeCase** | **int** | | [optional] [readonly] -**_123Number** | **int** | | [optional] [readonly] +**var123Number** | **int** | | [optional] [readonly] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/Return.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/Return.md index e11cdae8db9..1beb83fbaaf 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/Return.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ReturnProperty** | **int** | | [optional] +**VarReturn** | **int** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/SpecialModelName.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/SpecialModelName.md index b48f3490005..890bcd923de 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/SpecialModelName.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/SpecialModelName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialModelNameProperty** | **string** | | [optional] +**VarSpecialModelName** | **string** | | [optional] **SpecialPropertyName** | **long** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Api/FakeApi.cs index ad01ed0b851..0b5191127f8 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Api/FakeApi.cs @@ -241,23 +241,23 @@ namespace Org.OpenAPITools.IApi /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// /// Thrown when fails to make API call - /// None + /// None /// None - /// None + /// None /// None /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// Cancellation Token to cancel the request. /// Task<ApiResponse<object>> - Task> TestEndpointParametersAsync(byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? _float = null, int? integer = null, int? int32 = null, long? int64 = null, string _string = null, string password = null, string callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default); + Task> TestEndpointParametersAsync(byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? varFloat = null, int? integer = null, int? int32 = null, long? int64 = null, string varString = null, string password = null, string callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -265,23 +265,23 @@ namespace Org.OpenAPITools.IApi /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// - /// None + /// None /// None - /// None + /// None /// None /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// Cancellation Token to cancel the request. /// Task<ApiResponse>object>> - Task> TestEndpointParametersOrDefaultAsync(byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? _float = null, int? integer = null, int? int32 = null, long? int64 = null, string _string = null, string password = null, string callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default); + Task> TestEndpointParametersOrDefaultAsync(byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? varFloat = null, int? integer = null, int? int32 = null, long? int64 = null, string varString = null, string password = null, string callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default); /// /// To test enum parameters @@ -1620,34 +1620,34 @@ namespace Org.OpenAPITools.Api /// /// Validates the request parameters /// - /// + /// /// - /// + /// /// /// /// - /// + /// /// /// /// - /// + /// /// /// /// /// - protected virtual (byte[], decimal, double, string, DateTime?, System.IO.Stream, float?, int?, int?, long?, string, string, string, DateTime?) OnTestEndpointParameters(byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date, System.IO.Stream binary, float? _float, int? integer, int? int32, long? int64, string _string, string password, string callback, DateTime? dateTime) + protected virtual (byte[], decimal, double, string, DateTime?, System.IO.Stream, float?, int?, int?, long?, string, string, string, DateTime?) OnTestEndpointParameters(byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date, System.IO.Stream binary, float? varFloat, int? integer, int? int32, long? int64, string varString, string password, string callback, DateTime? dateTime) { #pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null' #pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null' - if (_byte == null) - throw new ArgumentNullException(nameof(_byte)); + if (varByte == null) + throw new ArgumentNullException(nameof(varByte)); if (number == null) throw new ArgumentNullException(nameof(number)); - if (_double == null) - throw new ArgumentNullException(nameof(_double)); + if (varDouble == null) + throw new ArgumentNullException(nameof(varDouble)); if (patternWithoutDelimiter == null) throw new ArgumentNullException(nameof(patternWithoutDelimiter)); @@ -1655,28 +1655,28 @@ namespace Org.OpenAPITools.Api #pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null' #pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null' - return (_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); + return (varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); } /// /// Processes the server response /// /// - /// + /// /// - /// + /// /// /// /// - /// + /// /// /// /// - /// + /// /// /// /// - protected virtual void AfterTestEndpointParameters(ApiResponse apiResponseLocalVar, byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date, System.IO.Stream binary, float? _float, int? integer, int? int32, long? int64, string _string, string password, string callback, DateTime? dateTime) + protected virtual void AfterTestEndpointParameters(ApiResponse apiResponseLocalVar, byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date, System.IO.Stream binary, float? varFloat, int? integer, int? int32, long? int64, string varString, string password, string callback, DateTime? dateTime) { } @@ -1686,21 +1686,21 @@ namespace Org.OpenAPITools.Api /// /// /// - /// + /// /// - /// + /// /// /// /// - /// + /// /// /// /// - /// + /// /// /// /// - protected virtual void OnErrorTestEndpointParameters(Exception exception, string pathFormat, string path, byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date, System.IO.Stream binary, float? _float, int? integer, int? int32, long? int64, string _string, string password, string callback, DateTime? dateTime) + protected virtual void OnErrorTestEndpointParameters(Exception exception, string pathFormat, string path, byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date, System.IO.Stream binary, float? varFloat, int? integer, int? int32, long? int64, string varString, string password, string callback, DateTime? dateTime) { Logger.LogError(exception, "An error occurred while sending the request to the server."); } @@ -1708,27 +1708,27 @@ namespace Org.OpenAPITools.Api /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// - /// None + /// None /// None - /// None + /// None /// None /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// Cancellation Token to cancel the request. /// <> where T : - public async Task> TestEndpointParametersOrDefaultAsync(byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? _float = null, int? integer = null, int? int32 = null, long? int64 = null, string _string = null, string password = null, string callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default) + public async Task> TestEndpointParametersOrDefaultAsync(byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? varFloat = null, int? integer = null, int? int32 = null, long? int64 = null, string varString = null, string password = null, string callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default) { try { - return await TestEndpointParametersAsync(_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime, cancellationToken).ConfigureAwait(false); + return await TestEndpointParametersAsync(varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime, cancellationToken).ConfigureAwait(false); } catch (Exception) { @@ -1740,40 +1740,40 @@ namespace Org.OpenAPITools.Api /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// /// Thrown when fails to make API call - /// None + /// None /// None - /// None + /// None /// None /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) - /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// Cancellation Token to cancel the request. /// <> where T : - public async Task> TestEndpointParametersAsync(byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? _float = null, int? integer = null, int? int32 = null, long? int64 = null, string _string = null, string password = null, string callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default) + public async Task> TestEndpointParametersAsync(byte[] varByte, decimal number, double varDouble, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream binary = null, float? varFloat = null, int? integer = null, int? int32 = null, long? int64 = null, string varString = null, string password = null, string callback = null, DateTime? dateTime = null, System.Threading.CancellationToken cancellationToken = default) { UriBuilder uriBuilderLocalVar = new UriBuilder(); try { - var validatedParameterLocalVars = OnTestEndpointParameters(_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); - _byte = validatedParameterLocalVars.Item1; + var validatedParameterLocalVars = OnTestEndpointParameters(varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); + varByte = validatedParameterLocalVars.Item1; number = validatedParameterLocalVars.Item2; - _double = validatedParameterLocalVars.Item3; + varDouble = validatedParameterLocalVars.Item3; patternWithoutDelimiter = validatedParameterLocalVars.Item4; date = validatedParameterLocalVars.Item5; binary = validatedParameterLocalVars.Item6; - _float = validatedParameterLocalVars.Item7; + varFloat = validatedParameterLocalVars.Item7; integer = validatedParameterLocalVars.Item8; int32 = validatedParameterLocalVars.Item9; int64 = validatedParameterLocalVars.Item10; - _string = validatedParameterLocalVars.Item11; + varString = validatedParameterLocalVars.Item11; password = validatedParameterLocalVars.Item12; callback = validatedParameterLocalVars.Item13; dateTime = validatedParameterLocalVars.Item14; @@ -1793,7 +1793,7 @@ namespace Org.OpenAPITools.Api multipartContentLocalVar.Add(new FormUrlEncodedContent(formParameterLocalVars)); - formParameterLocalVars.Add(new KeyValuePair("byte", ClientUtils.ParameterToString(_byte))); + formParameterLocalVars.Add(new KeyValuePair("byte", ClientUtils.ParameterToString(varByte))); @@ -1801,7 +1801,7 @@ namespace Org.OpenAPITools.Api - formParameterLocalVars.Add(new KeyValuePair("double", ClientUtils.ParameterToString(_double))); + formParameterLocalVars.Add(new KeyValuePair("double", ClientUtils.ParameterToString(varDouble))); @@ -1813,8 +1813,8 @@ namespace Org.OpenAPITools.Api if (binary != null) multipartContentLocalVar.Add(new StreamContent(binary)); - if (_float != null) - formParameterLocalVars.Add(new KeyValuePair("float", ClientUtils.ParameterToString(_float))); + if (varFloat != null) + formParameterLocalVars.Add(new KeyValuePair("float", ClientUtils.ParameterToString(varFloat))); if (integer != null) formParameterLocalVars.Add(new KeyValuePair("integer", ClientUtils.ParameterToString(integer))); @@ -1825,8 +1825,8 @@ namespace Org.OpenAPITools.Api if (int64 != null) formParameterLocalVars.Add(new KeyValuePair("int64", ClientUtils.ParameterToString(int64))); - if (_string != null) - formParameterLocalVars.Add(new KeyValuePair("string", ClientUtils.ParameterToString(_string))); + if (varString != null) + formParameterLocalVars.Add(new KeyValuePair("string", ClientUtils.ParameterToString(varString))); if (password != null) formParameterLocalVars.Add(new KeyValuePair("password", ClientUtils.ParameterToString(password))); @@ -1870,7 +1870,7 @@ namespace Org.OpenAPITools.Api ApiResponse apiResponseLocalVar = new ApiResponse(httpRequestMessageLocalVar, httpResponseMessageLocalVar, responseContentLocalVar, _jsonSerializerOptions); - AfterTestEndpointParameters(apiResponseLocalVar, _byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); + AfterTestEndpointParameters(apiResponseLocalVar, varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); if (apiResponseLocalVar.StatusCode == (HttpStatusCode) 429) foreach(TokenBase tokenBaseLocalVar in tokenBaseLocalVars) @@ -1882,7 +1882,7 @@ namespace Org.OpenAPITools.Api } catch(Exception e) { - OnErrorTestEndpointParameters(e, "/fake", uriBuilderLocalVar.Path, _byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime); + OnErrorTestEndpointParameters(e, "/fake", uriBuilderLocalVar.Path, varByte, number, varDouble, patternWithoutDelimiter, date, binary, varFloat, integer, int32, int64, varString, password, callback, dateTime); throw; } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/ClassModel.cs index e3a146864d1..3a5da924b78 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/ClassModel.cs @@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// classProperty + /// varClass [JsonConstructor] - public ClassModel(string classProperty) + public ClassModel(string varClass) { - ClassProperty = classProperty; + VarClass = varClass; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets ClassProperty + /// Gets or Sets VarClass /// [JsonPropertyName("_class")] - public string ClassProperty { get; set; } + public string VarClass { get; set; } /// /// Gets or Sets additional properties @@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ClassModel {\n"); - sb.Append(" ClassProperty: ").Append(ClassProperty).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -100,7 +100,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - string classProperty = default; + string varClass = default; while (utf8JsonReader.Read()) { @@ -118,7 +118,7 @@ namespace Org.OpenAPITools.Model switch (propertyName) { case "_class": - classProperty = utf8JsonReader.GetString(); + varClass = utf8JsonReader.GetString(); break; default: break; @@ -126,10 +126,10 @@ namespace Org.OpenAPITools.Model } } - if (classProperty == null) - throw new ArgumentNullException(nameof(classProperty), "Property is required for class ClassModel."); + if (varClass == null) + throw new ArgumentNullException(nameof(varClass), "Property is required for class ClassModel."); - return new ClassModel(classProperty); + return new ClassModel(varClass); } /// @@ -143,7 +143,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteString("_class", classModel.ClassProperty); + writer.WriteString("_class", classModel.VarClass); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index a04de35840d..2f5cd937ae4 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// stringProperty + /// varString [JsonConstructor] - public FooGetDefaultResponse(Foo stringProperty) + public FooGetDefaultResponse(Foo varString) { - StringProperty = stringProperty; + VarString = varString; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets StringProperty + /// Gets or Sets VarString /// [JsonPropertyName("string")] - public Foo StringProperty { get; set; } + public Foo VarString { get; set; } /// /// Gets or Sets additional properties @@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class FooGetDefaultResponse {\n"); - sb.Append(" StringProperty: ").Append(StringProperty).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -100,7 +100,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Foo stringProperty = default; + Foo varString = default; while (utf8JsonReader.Read()) { @@ -119,7 +119,7 @@ namespace Org.OpenAPITools.Model { case "string": if (utf8JsonReader.TokenType != JsonTokenType.Null) - stringProperty = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); + varString = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); break; default: break; @@ -127,10 +127,10 @@ namespace Org.OpenAPITools.Model } } - if (stringProperty == null) - throw new ArgumentNullException(nameof(stringProperty), "Property is required for class FooGetDefaultResponse."); + if (varString == null) + throw new ArgumentNullException(nameof(varString), "Property is required for class FooGetDefaultResponse."); - return new FooGetDefaultResponse(stringProperty); + return new FooGetDefaultResponse(varString); } /// @@ -145,7 +145,7 @@ namespace Org.OpenAPITools.Model writer.WriteStartObject(); writer.WritePropertyName("string"); - JsonSerializer.Serialize(writer, fooGetDefaultResponse.StringProperty, jsonSerializerOptions); + JsonSerializer.Serialize(writer, fooGetDefaultResponse.VarString, jsonSerializerOptions); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/FormatTest.cs index 5d2551a1bbe..eb82f9ee349 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/FormatTest.cs @@ -32,12 +32,12 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// binary - /// byteProperty + /// varByte /// date /// dateTime - /// decimalProperty - /// doubleProperty - /// floatProperty + /// varDecimal + /// varDouble + /// varFloat /// int32 /// int64 /// integer @@ -46,20 +46,20 @@ namespace Org.OpenAPITools.Model /// None /// A string that is a 10 digit number. Can have leading zeros. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. - /// stringProperty + /// varString /// unsignedInteger /// unsignedLong /// uuid [JsonConstructor] - public FormatTest(System.IO.Stream binary, byte[] byteProperty, DateTime date, DateTime dateTime, decimal decimalProperty, double doubleProperty, float floatProperty, int int32, long int64, int integer, decimal number, string password, string patternWithBackslash, string patternWithDigits, string patternWithDigitsAndDelimiter, string stringProperty, uint unsignedInteger, ulong unsignedLong, Guid uuid) + public FormatTest(System.IO.Stream binary, byte[] varByte, DateTime date, DateTime dateTime, decimal varDecimal, double varDouble, float varFloat, int int32, long int64, int integer, decimal number, string password, string patternWithBackslash, string patternWithDigits, string patternWithDigitsAndDelimiter, string varString, uint unsignedInteger, ulong unsignedLong, Guid uuid) { Binary = binary; - ByteProperty = byteProperty; + VarByte = varByte; Date = date; DateTime = dateTime; - DecimalProperty = decimalProperty; - DoubleProperty = doubleProperty; - FloatProperty = floatProperty; + VarDecimal = varDecimal; + VarDouble = varDouble; + VarFloat = varFloat; Int32 = int32; Int64 = int64; Integer = integer; @@ -68,7 +68,7 @@ namespace Org.OpenAPITools.Model PatternWithBackslash = patternWithBackslash; PatternWithDigits = patternWithDigits; PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; - StringProperty = stringProperty; + VarString = varString; UnsignedInteger = unsignedInteger; UnsignedLong = unsignedLong; Uuid = uuid; @@ -84,10 +84,10 @@ namespace Org.OpenAPITools.Model public System.IO.Stream Binary { get; set; } /// - /// Gets or Sets ByteProperty + /// Gets or Sets VarByte /// [JsonPropertyName("byte")] - public byte[] ByteProperty { get; set; } + public byte[] VarByte { get; set; } /// /// Gets or Sets Date @@ -104,22 +104,22 @@ namespace Org.OpenAPITools.Model public DateTime DateTime { get; set; } /// - /// Gets or Sets DecimalProperty + /// Gets or Sets VarDecimal /// [JsonPropertyName("decimal")] - public decimal DecimalProperty { get; set; } + public decimal VarDecimal { get; set; } /// - /// Gets or Sets DoubleProperty + /// Gets or Sets VarDouble /// [JsonPropertyName("double")] - public double DoubleProperty { get; set; } + public double VarDouble { get; set; } /// - /// Gets or Sets FloatProperty + /// Gets or Sets VarFloat /// [JsonPropertyName("float")] - public float FloatProperty { get; set; } + public float VarFloat { get; set; } /// /// Gets or Sets Int32 @@ -173,10 +173,10 @@ namespace Org.OpenAPITools.Model public string PatternWithDigitsAndDelimiter { get; set; } /// - /// Gets or Sets StringProperty + /// Gets or Sets VarString /// [JsonPropertyName("string")] - public string StringProperty { get; set; } + public string VarString { get; set; } /// /// Gets or Sets UnsignedInteger @@ -212,12 +212,12 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class FormatTest {\n"); sb.Append(" Binary: ").Append(Binary).Append("\n"); - sb.Append(" ByteProperty: ").Append(ByteProperty).Append("\n"); + sb.Append(" VarByte: ").Append(VarByte).Append("\n"); sb.Append(" Date: ").Append(Date).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n"); - sb.Append(" DecimalProperty: ").Append(DecimalProperty).Append("\n"); - sb.Append(" DoubleProperty: ").Append(DoubleProperty).Append("\n"); - sb.Append(" FloatProperty: ").Append(FloatProperty).Append("\n"); + sb.Append(" VarDecimal: ").Append(VarDecimal).Append("\n"); + sb.Append(" VarDouble: ").Append(VarDouble).Append("\n"); + sb.Append(" VarFloat: ").Append(VarFloat).Append("\n"); sb.Append(" Int32: ").Append(Int32).Append("\n"); sb.Append(" Int64: ").Append(Int64).Append("\n"); sb.Append(" Integer: ").Append(Integer).Append("\n"); @@ -226,7 +226,7 @@ namespace Org.OpenAPITools.Model sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n"); sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n"); sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n"); - sb.Append(" StringProperty: ").Append(StringProperty).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n"); sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); @@ -242,28 +242,28 @@ namespace Org.OpenAPITools.Model /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // DoubleProperty (double) maximum - if (this.DoubleProperty > (double)123.4) + // VarDouble (double) maximum + if (this.VarDouble > (double)123.4) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DoubleProperty, must be a value less than or equal to 123.4.", new [] { "DoubleProperty" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value less than or equal to 123.4.", new [] { "VarDouble" }); } - // DoubleProperty (double) minimum - if (this.DoubleProperty < (double)67.8) + // VarDouble (double) minimum + if (this.VarDouble < (double)67.8) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DoubleProperty, must be a value greater than or equal to 67.8.", new [] { "DoubleProperty" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value greater than or equal to 67.8.", new [] { "VarDouble" }); } - // FloatProperty (float) maximum - if (this.FloatProperty > (float)987.6) + // VarFloat (float) maximum + if (this.VarFloat > (float)987.6) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FloatProperty, must be a value less than or equal to 987.6.", new [] { "FloatProperty" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value less than or equal to 987.6.", new [] { "VarFloat" }); } - // FloatProperty (float) minimum - if (this.FloatProperty < (float)54.3) + // VarFloat (float) minimum + if (this.VarFloat < (float)54.3) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FloatProperty, must be a value greater than or equal to 54.3.", new [] { "FloatProperty" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value greater than or equal to 54.3.", new [] { "VarFloat" }); } // Int32 (int) maximum @@ -335,11 +335,11 @@ namespace Org.OpenAPITools.Model yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); } - // StringProperty (string) pattern - Regex regexStringProperty = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (false == regexStringProperty.Match(this.StringProperty).Success) + // VarString (string) pattern + Regex regexVarString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (false == regexVarString.Match(this.VarString).Success) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StringProperty, must match a pattern of " + regexStringProperty, new [] { "StringProperty" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarString, must match a pattern of " + regexVarString, new [] { "VarString" }); } // UnsignedInteger (uint) maximum @@ -391,12 +391,12 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; System.IO.Stream binary = default; - byte[] byteProperty = default; + byte[] varByte = default; DateTime? date = default; DateTime? dateTime = default; - decimal? decimalProperty = default; - double? doubleProperty = default; - float? floatProperty = default; + decimal? varDecimal = default; + double? varDouble = default; + float? varFloat = default; int? int32 = default; long? int64 = default; int? integer = default; @@ -405,7 +405,7 @@ namespace Org.OpenAPITools.Model string patternWithBackslash = default; string patternWithDigits = default; string patternWithDigitsAndDelimiter = default; - string stringProperty = default; + string varString = default; uint? unsignedInteger = default; ulong? unsignedLong = default; Guid? uuid = default; @@ -431,7 +431,7 @@ namespace Org.OpenAPITools.Model break; case "byte": if (utf8JsonReader.TokenType != JsonTokenType.Null) - byteProperty = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); + varByte = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); break; case "date": if (utf8JsonReader.TokenType != JsonTokenType.Null) @@ -443,15 +443,15 @@ namespace Org.OpenAPITools.Model break; case "decimal": if (utf8JsonReader.TokenType != JsonTokenType.Null) - decimalProperty = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); + varDecimal = JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions); break; case "double": if (utf8JsonReader.TokenType != JsonTokenType.Null) - doubleProperty = utf8JsonReader.GetDouble(); + varDouble = utf8JsonReader.GetDouble(); break; case "float": if (utf8JsonReader.TokenType != JsonTokenType.Null) - floatProperty = (float)utf8JsonReader.GetDouble(); + varFloat = (float)utf8JsonReader.GetDouble(); break; case "int32": if (utf8JsonReader.TokenType != JsonTokenType.Null) @@ -482,7 +482,7 @@ namespace Org.OpenAPITools.Model patternWithDigitsAndDelimiter = utf8JsonReader.GetString(); break; case "string": - stringProperty = utf8JsonReader.GetString(); + varString = utf8JsonReader.GetString(); break; case "unsigned_integer": if (utf8JsonReader.TokenType != JsonTokenType.Null) @@ -520,20 +520,20 @@ namespace Org.OpenAPITools.Model if (number == null) throw new ArgumentNullException(nameof(number), "Property is required for class FormatTest."); - if (floatProperty == null) - throw new ArgumentNullException(nameof(floatProperty), "Property is required for class FormatTest."); + if (varFloat == null) + throw new ArgumentNullException(nameof(varFloat), "Property is required for class FormatTest."); - if (doubleProperty == null) - throw new ArgumentNullException(nameof(doubleProperty), "Property is required for class FormatTest."); + if (varDouble == null) + throw new ArgumentNullException(nameof(varDouble), "Property is required for class FormatTest."); - if (decimalProperty == null) - throw new ArgumentNullException(nameof(decimalProperty), "Property is required for class FormatTest."); + if (varDecimal == null) + throw new ArgumentNullException(nameof(varDecimal), "Property is required for class FormatTest."); - if (stringProperty == null) - throw new ArgumentNullException(nameof(stringProperty), "Property is required for class FormatTest."); + if (varString == null) + throw new ArgumentNullException(nameof(varString), "Property is required for class FormatTest."); - if (byteProperty == null) - throw new ArgumentNullException(nameof(byteProperty), "Property is required for class FormatTest."); + if (varByte == null) + throw new ArgumentNullException(nameof(varByte), "Property is required for class FormatTest."); if (binary == null) throw new ArgumentNullException(nameof(binary), "Property is required for class FormatTest."); @@ -559,7 +559,7 @@ namespace Org.OpenAPITools.Model if (patternWithBackslash == null) throw new ArgumentNullException(nameof(patternWithBackslash), "Property is required for class FormatTest."); - return new FormatTest(binary, byteProperty, date.Value, dateTime.Value, decimalProperty.Value, doubleProperty.Value, floatProperty.Value, int32.Value, int64.Value, integer.Value, number.Value, password, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, stringProperty, unsignedInteger.Value, unsignedLong.Value, uuid.Value); + return new FormatTest(binary, varByte, date.Value, dateTime.Value, varDecimal.Value, varDouble.Value, varFloat.Value, int32.Value, int64.Value, integer.Value, number.Value, password, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, unsignedInteger.Value, unsignedLong.Value, uuid.Value); } /// @@ -576,13 +576,13 @@ namespace Org.OpenAPITools.Model writer.WritePropertyName("binary"); JsonSerializer.Serialize(writer, formatTest.Binary, jsonSerializerOptions); writer.WritePropertyName("byte"); - JsonSerializer.Serialize(writer, formatTest.ByteProperty, jsonSerializerOptions); + JsonSerializer.Serialize(writer, formatTest.VarByte, jsonSerializerOptions); writer.WriteString("date", formatTest.Date.ToString(DateFormat)); writer.WriteString("dateTime", formatTest.DateTime.ToString(DateTimeFormat)); writer.WritePropertyName("decimal"); - JsonSerializer.Serialize(writer, formatTest.DecimalProperty, jsonSerializerOptions); - writer.WriteNumber("double", formatTest.DoubleProperty); - writer.WriteNumber("float", formatTest.FloatProperty); + JsonSerializer.Serialize(writer, formatTest.VarDecimal, jsonSerializerOptions); + writer.WriteNumber("double", formatTest.VarDouble); + writer.WriteNumber("float", formatTest.VarFloat); writer.WriteNumber("int32", formatTest.Int32); writer.WriteNumber("int64", formatTest.Int64); writer.WriteNumber("integer", formatTest.Integer); @@ -591,7 +591,7 @@ namespace Org.OpenAPITools.Model writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); - writer.WriteString("string", formatTest.StringProperty); + writer.WriteString("string", formatTest.VarString); writer.WriteNumber("unsigned_integer", formatTest.UnsignedInteger); writer.WriteNumber("unsigned_long", formatTest.UnsignedLong); writer.WriteString("uuid", formatTest.Uuid); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/List.cs index e0a1bebc78a..97177f74a38 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/List.cs @@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _123list + /// var123List [JsonConstructor] - public List(string _123list) + public List(string var123List) { - _123List = _123list; + var123List = var123List; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets _123List + /// Gets or Sets var123List /// [JsonPropertyName("123-list")] - public string _123List { get; set; } + public string var123List { get; set; } /// /// Gets or Sets additional properties @@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class List {\n"); - sb.Append(" _123List: ").Append(_123List).Append("\n"); + sb.Append(" var123List: ").Append(var123List).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -100,7 +100,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - string _123list = default; + string var123List = default; while (utf8JsonReader.Read()) { @@ -118,7 +118,7 @@ namespace Org.OpenAPITools.Model switch (propertyName) { case "123-list": - _123list = utf8JsonReader.GetString(); + var123List = utf8JsonReader.GetString(); break; default: break; @@ -126,10 +126,10 @@ namespace Org.OpenAPITools.Model } } - if (_123list == null) - throw new ArgumentNullException(nameof(_123list), "Property is required for class List."); + if (var123List == null) + throw new ArgumentNullException(nameof(var123List), "Property is required for class List."); - return new List(_123list); + return new List(var123List); } /// @@ -143,7 +143,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteString("123-list", list._123List); + writer.WriteString("123-list", list.var123List); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/Model200Response.cs index f0206c1a01b..6fba7094d47 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/Model200Response.cs @@ -31,12 +31,12 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// classProperty + /// varClass /// name [JsonConstructor] - public Model200Response(string classProperty, int name) + public Model200Response(string varClass, int name) { - ClassProperty = classProperty; + VarClass = varClass; Name = name; OnCreated(); } @@ -44,10 +44,10 @@ namespace Org.OpenAPITools.Model partial void OnCreated(); /// - /// Gets or Sets ClassProperty + /// Gets or Sets VarClass /// [JsonPropertyName("class")] - public string ClassProperty { get; set; } + public string VarClass { get; set; } /// /// Gets or Sets Name @@ -69,7 +69,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Model200Response {\n"); - sb.Append(" ClassProperty: ").Append(ClassProperty).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - string classProperty = default; + string varClass = default; int? name = default; while (utf8JsonReader.Read()) @@ -128,7 +128,7 @@ namespace Org.OpenAPITools.Model switch (propertyName) { case "class": - classProperty = utf8JsonReader.GetString(); + varClass = utf8JsonReader.GetString(); break; case "name": if (utf8JsonReader.TokenType != JsonTokenType.Null) @@ -143,10 +143,10 @@ namespace Org.OpenAPITools.Model if (name == null) throw new ArgumentNullException(nameof(name), "Property is required for class Model200Response."); - if (classProperty == null) - throw new ArgumentNullException(nameof(classProperty), "Property is required for class Model200Response."); + if (varClass == null) + throw new ArgumentNullException(nameof(varClass), "Property is required for class Model200Response."); - return new Model200Response(classProperty, name.Value); + return new Model200Response(varClass, name.Value); } /// @@ -160,7 +160,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteString("class", model200Response.ClassProperty); + writer.WriteString("class", model200Response.VarClass); writer.WriteNumber("name", model200Response.Name); writer.WriteEndObject(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/ModelClient.cs index 49336cff7a5..23fbf4f37eb 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/ModelClient.cs @@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// clientProperty + /// varClient [JsonConstructor] - public ModelClient(string clientProperty) + public ModelClient(string varClient) { - _ClientProperty = clientProperty; + varClient = varClient; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets _ClientProperty + /// Gets or Sets varClient /// [JsonPropertyName("client")] - public string _ClientProperty { get; set; } + public string varClient { get; set; } /// /// Gets or Sets additional properties @@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ModelClient {\n"); - sb.Append(" _ClientProperty: ").Append(_ClientProperty).Append("\n"); + sb.Append(" varClient: ").Append(varClient).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -100,7 +100,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - string clientProperty = default; + string varClient = default; while (utf8JsonReader.Read()) { @@ -118,7 +118,7 @@ namespace Org.OpenAPITools.Model switch (propertyName) { case "client": - clientProperty = utf8JsonReader.GetString(); + varClient = utf8JsonReader.GetString(); break; default: break; @@ -126,10 +126,10 @@ namespace Org.OpenAPITools.Model } } - if (clientProperty == null) - throw new ArgumentNullException(nameof(clientProperty), "Property is required for class ModelClient."); + if (varClient == null) + throw new ArgumentNullException(nameof(varClient), "Property is required for class ModelClient."); - return new ModelClient(clientProperty); + return new ModelClient(varClient); } /// @@ -143,7 +143,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteString("client", modelClient._ClientProperty); + writer.WriteString("client", modelClient.varClient); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/Name.cs index e84d1732fec..c057897861a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/Name.cs @@ -31,27 +31,27 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// nameProperty + /// varName /// property /// snakeCase - /// _123number + /// var123Number [JsonConstructor] - public Name(int nameProperty, string property, int snakeCase, int _123number) + public Name(int varName, string property, int snakeCase, int var123Number) { - NameProperty = nameProperty; + VarName = varName; Property = property; SnakeCase = snakeCase; - _123Number = _123number; + var123Number = var123Number; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets NameProperty + /// Gets or Sets VarName /// [JsonPropertyName("name")] - public int NameProperty { get; set; } + public int VarName { get; set; } /// /// Gets or Sets Property @@ -66,10 +66,10 @@ namespace Org.OpenAPITools.Model public int SnakeCase { get; } /// - /// Gets or Sets _123Number + /// Gets or Sets var123Number /// [JsonPropertyName("123Number")] - public int _123Number { get; } + public int var123Number { get; } /// /// Gets or Sets additional properties @@ -85,10 +85,10 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Name {\n"); - sb.Append(" NameProperty: ").Append(NameProperty).Append("\n"); + sb.Append(" VarName: ").Append(VarName).Append("\n"); sb.Append(" Property: ").Append(Property).Append("\n"); sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n"); - sb.Append(" _123Number: ").Append(_123Number).Append("\n"); + sb.Append(" var123Number: ").Append(var123Number).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -124,7 +124,7 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + SnakeCase.GetHashCode(); - hashCode = (hashCode * 59) + _123Number.GetHashCode(); + hashCode = (hashCode * 59) + var123Number.GetHashCode(); hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode(); return hashCode; @@ -164,10 +164,10 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - int? nameProperty = default; + int? varName = default; string property = default; int? snakeCase = default; - int? _123number = default; + int? var123Number = default; while (utf8JsonReader.Read()) { @@ -186,7 +186,7 @@ namespace Org.OpenAPITools.Model { case "name": if (utf8JsonReader.TokenType != JsonTokenType.Null) - nameProperty = utf8JsonReader.GetInt32(); + varName = utf8JsonReader.GetInt32(); break; case "property": property = utf8JsonReader.GetString(); @@ -197,7 +197,7 @@ namespace Org.OpenAPITools.Model break; case "123Number": if (utf8JsonReader.TokenType != JsonTokenType.Null) - _123number = utf8JsonReader.GetInt32(); + var123Number = utf8JsonReader.GetInt32(); break; default: break; @@ -205,8 +205,8 @@ namespace Org.OpenAPITools.Model } } - if (nameProperty == null) - throw new ArgumentNullException(nameof(nameProperty), "Property is required for class Name."); + if (varName == null) + throw new ArgumentNullException(nameof(varName), "Property is required for class Name."); if (snakeCase == null) throw new ArgumentNullException(nameof(snakeCase), "Property is required for class Name."); @@ -214,10 +214,10 @@ namespace Org.OpenAPITools.Model if (property == null) throw new ArgumentNullException(nameof(property), "Property is required for class Name."); - if (_123number == null) - throw new ArgumentNullException(nameof(_123number), "Property is required for class Name."); + if (var123Number == null) + throw new ArgumentNullException(nameof(var123Number), "Property is required for class Name."); - return new Name(nameProperty.Value, property, snakeCase.Value, _123number.Value); + return new Name(varName.Value, property, snakeCase.Value, var123Number.Value); } /// @@ -231,10 +231,10 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteNumber("name", name.NameProperty); + writer.WriteNumber("name", name.VarName); writer.WriteString("property", name.Property); writer.WriteNumber("snake_case", name.SnakeCase); - writer.WriteNumber("123Number", name._123Number); + writer.WriteNumber("123Number", name.var123Number); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/OneOfString.cs index c6bd77e4252..7a978c5eeda 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/OneOfString.cs @@ -31,11 +31,11 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// + /// [JsonConstructor] - internal OneOfString(string _string) + internal OneOfString(string varString) { - String = _string; + String = varString; OnCreated(); } @@ -119,9 +119,9 @@ namespace Org.OpenAPITools.Model } } - Utf8JsonReader _stringReader = utf8JsonReader; - if (Client.ClientUtils.TryDeserialize(ref _stringReader, jsonSerializerOptions, out string _string)) - return new OneOfString(_string); + Utf8JsonReader varStringReader = utf8JsonReader; + if (Client.ClientUtils.TryDeserialize(ref varStringReader, jsonSerializerOptions, out string varString)) + return new OneOfString(varString); throw new JsonException(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 1cd630cff76..10dcf5c9fa5 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -31,33 +31,33 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// + /// [JsonConstructor] - internal PolymorphicProperty(bool _bool) + internal PolymorphicProperty(bool varBool) { - Bool = _bool; + Bool = varBool; OnCreated(); } /// /// Initializes a new instance of the class. /// - /// + /// [JsonConstructor] - internal PolymorphicProperty(string _string) + internal PolymorphicProperty(string varString) { - String = _string; + String = varString; OnCreated(); } /// /// Initializes a new instance of the class. /// - /// + /// [JsonConstructor] - internal PolymorphicProperty(Object _object) + internal PolymorphicProperty(Object varObject) { - Object = _object; + Object = varObject; OnCreated(); } @@ -167,17 +167,17 @@ namespace Org.OpenAPITools.Model } } - Utf8JsonReader _boolReader = utf8JsonReader; - if (Client.ClientUtils.TryDeserialize(ref _boolReader, jsonSerializerOptions, out bool _bool)) - return new PolymorphicProperty(_bool); + Utf8JsonReader varBoolReader = utf8JsonReader; + if (Client.ClientUtils.TryDeserialize(ref varBoolReader, jsonSerializerOptions, out bool varBool)) + return new PolymorphicProperty(varBool); - Utf8JsonReader _stringReader = utf8JsonReader; - if (Client.ClientUtils.TryDeserialize(ref _stringReader, jsonSerializerOptions, out string _string)) - return new PolymorphicProperty(_string); + Utf8JsonReader varStringReader = utf8JsonReader; + if (Client.ClientUtils.TryDeserialize(ref varStringReader, jsonSerializerOptions, out string varString)) + return new PolymorphicProperty(varString); - Utf8JsonReader _objectReader = utf8JsonReader; - if (Client.ClientUtils.TryDeserialize(ref _objectReader, jsonSerializerOptions, out Object _object)) - return new PolymorphicProperty(_object); + Utf8JsonReader varObjectReader = utf8JsonReader; + if (Client.ClientUtils.TryDeserialize(ref varObjectReader, jsonSerializerOptions, out Object varObject)) + return new PolymorphicProperty(varObject); Utf8JsonReader liststringReader = utf8JsonReader; if (Client.ClientUtils.TryDeserialize>(ref liststringReader, jsonSerializerOptions, out List liststring)) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/Return.cs index 076d3a3b569..881c80f187c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/Return.cs @@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// returnProperty + /// varReturn [JsonConstructor] - public Return(int returnProperty) + public Return(int varReturn) { - ReturnProperty = returnProperty; + VarReturn = varReturn; OnCreated(); } partial void OnCreated(); /// - /// Gets or Sets ReturnProperty + /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int ReturnProperty { get; set; } + public int VarReturn { get; set; } /// /// Gets or Sets additional properties @@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Return {\n"); - sb.Append(" ReturnProperty: ").Append(ReturnProperty).Append("\n"); + sb.Append(" VarReturn: ").Append(VarReturn).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -100,7 +100,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - int? returnProperty = default; + int? varReturn = default; while (utf8JsonReader.Read()) { @@ -119,7 +119,7 @@ namespace Org.OpenAPITools.Model { case "return": if (utf8JsonReader.TokenType != JsonTokenType.Null) - returnProperty = utf8JsonReader.GetInt32(); + varReturn = utf8JsonReader.GetInt32(); break; default: break; @@ -127,24 +127,24 @@ namespace Org.OpenAPITools.Model } } - if (returnProperty == null) - throw new ArgumentNullException(nameof(returnProperty), "Property is required for class Return."); + if (varReturn == null) + throw new ArgumentNullException(nameof(varReturn), "Property is required for class Return."); - return new Return(returnProperty.Value); + return new Return(varReturn.Value); } /// /// A Json writer /// /// - /// + /// /// /// - public override void Write(Utf8JsonWriter writer, Return _return, JsonSerializerOptions jsonSerializerOptions) + public override void Write(Utf8JsonWriter writer, Return varReturn, JsonSerializerOptions jsonSerializerOptions) { writer.WriteStartObject(); - writer.WriteNumber("return", _return.ReturnProperty); + writer.WriteNumber("return", varReturn.VarReturn); writer.WriteEndObject(); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/SpecialModelName.cs index 13d870a94fd..609f6bb6891 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -31,12 +31,12 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// specialModelNameProperty + /// varSpecialModelName /// specialPropertyName [JsonConstructor] - public SpecialModelName(string specialModelNameProperty, long specialPropertyName) + public SpecialModelName(string varSpecialModelName, long specialPropertyName) { - SpecialModelNameProperty = specialModelNameProperty; + VarSpecialModelName = varSpecialModelName; SpecialPropertyName = specialPropertyName; OnCreated(); } @@ -44,10 +44,10 @@ namespace Org.OpenAPITools.Model partial void OnCreated(); /// - /// Gets or Sets SpecialModelNameProperty + /// Gets or Sets VarSpecialModelName /// [JsonPropertyName("_special_model.name_")] - public string SpecialModelNameProperty { get; set; } + public string VarSpecialModelName { get; set; } /// /// Gets or Sets SpecialPropertyName @@ -69,7 +69,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class SpecialModelName {\n"); - sb.Append(" SpecialModelNameProperty: ").Append(SpecialModelNameProperty).Append("\n"); + sb.Append(" VarSpecialModelName: ").Append(VarSpecialModelName).Append("\n"); sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Model JsonTokenType startingTokenType = utf8JsonReader.TokenType; - string specialModelNameProperty = default; + string varSpecialModelName = default; long? specialPropertyName = default; while (utf8JsonReader.Read()) @@ -128,7 +128,7 @@ namespace Org.OpenAPITools.Model switch (propertyName) { case "_special_model.name_": - specialModelNameProperty = utf8JsonReader.GetString(); + varSpecialModelName = utf8JsonReader.GetString(); break; case "$special[property.name]": if (utf8JsonReader.TokenType != JsonTokenType.Null) @@ -143,10 +143,10 @@ namespace Org.OpenAPITools.Model if (specialPropertyName == null) throw new ArgumentNullException(nameof(specialPropertyName), "Property is required for class SpecialModelName."); - if (specialModelNameProperty == null) - throw new ArgumentNullException(nameof(specialModelNameProperty), "Property is required for class SpecialModelName."); + if (varSpecialModelName == null) + throw new ArgumentNullException(nameof(varSpecialModelName), "Property is required for class SpecialModelName."); - return new SpecialModelName(specialModelNameProperty, specialPropertyName.Value); + return new SpecialModelName(varSpecialModelName, specialPropertyName.Value); } /// @@ -160,7 +160,7 @@ namespace Org.OpenAPITools.Model { writer.WriteStartObject(); - writer.WriteString("_special_model.name_", specialModelName.SpecialModelNameProperty); + writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyName); writer.WriteEndObject(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/ClassModel.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/ClassModel.md index f39982657c8..c90a44a6f84 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/ClassModel.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/ClassModel.md @@ -5,7 +5,7 @@ Model for testing model with \"_class\" property Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/FakeApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/FakeApi.md index 21277623ef6..703290f204a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/FakeApi.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/FakeApi.md @@ -845,7 +845,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, FileParameter binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) +> void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, FileParameter binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -877,14 +877,14 @@ namespace Example HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new FakeApi(httpClient, config, httpClientHandler); var number = 8.14D; // decimal | None - var _double = 1.2D; // double | None + var varDouble = 1.2D; // double | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None - var _byte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None + var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var integer = 56; // int? | None (optional) var int32 = 56; // int? | None (optional) var int64 = 789L; // long? | None (optional) - var _float = 3.4F; // float? | None (optional) - var _string = "_string_example"; // string | None (optional) + var varFloat = 3.4F; // float? | None (optional) + var varString = "string_example"; // string | None (optional) var binary = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // FileParameter | None (optional) var date = DateTime.Parse("2013-10-20"); // DateTime? | None (optional) var dateTime = DateTime.Parse(""2010-02-01T10:20:10.111110+01:00""); // DateTime? | None (optional) (default to "2010-02-01T10:20:10.111110+01:00") @@ -894,7 +894,7 @@ namespace Example try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + apiInstance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } catch (ApiException e) { @@ -914,7 +914,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + apiInstance.TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } catch (ApiException e) { @@ -929,14 +929,14 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **number** | **decimal** | None | | -| **_double** | **double** | None | | +| **varDouble** | **double** | None | | | **patternWithoutDelimiter** | **string** | None | | -| **_byte** | **byte[]** | None | | +| **varByte** | **byte[]** | None | | | **integer** | **int?** | None | [optional] | | **int32** | **int?** | None | [optional] | | **int64** | **long?** | None | [optional] | -| **_float** | **float?** | None | [optional] | -| **_string** | **string** | None | [optional] | +| **varFloat** | **float?** | None | [optional] | +| **varString** | **string** | None | [optional] | | **binary** | **FileParameter****FileParameter** | None | [optional] | | **date** | **DateTime?** | None | [optional] | | **dateTime** | **DateTime?** | None | [optional] [default to "2010-02-01T10:20:10.111110+01:00"] | diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/FooGetDefaultResponse.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/FooGetDefaultResponse.md index dde9b9729b9..9ebee827949 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/FooGetDefaultResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] +**VarString** | [**Foo**](Foo.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/FormatTest.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/FormatTest.md index 7c06c37839c..dd68009f6dc 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/FormatTest.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/FormatTest.md @@ -10,11 +10,11 @@ Name | Type | Description | Notes **Int64** | **long** | | [optional] **UnsignedLong** | **ulong** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] -**String** | **string** | | [optional] -**Byte** | **byte[]** | | +**VarFloat** | **float** | | [optional] +**VarDouble** | **double** | | [optional] +**VarDecimal** | **decimal** | | [optional] +**VarString** | **string** | | [optional] +**VarByte** | **byte[]** | | **Binary** | [**FileParameter**](FileParameter.md) | | [optional] **Date** | **DateTime** | | **DateTime** | **DateTime** | | [optional] diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/List.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/List.md index 2862c7e5321..ef729179265 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/List.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/List.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_123List** | **string** | | [optional] +**var123List** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/Model200Response.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/Model200Response.md index 31f4d86fe43..4b6338af424 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/Model200Response.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/Model200Response.md @@ -6,7 +6,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **int** | | [optional] -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/ModelClient.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/ModelClient.md index c29a6287433..45f4e41644f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/ModelClient.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/ModelClient.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Client** | **string** | | [optional] +**varClient** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/Name.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/Name.md index 692af702b5b..a5ee6ef12f9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/Name.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/Name.md @@ -5,10 +5,10 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Name** | **int** | | +**VarName** | **int** | | **SnakeCase** | **int** | | [optional] [readonly] **Property** | **string** | | [optional] -**_123Number** | **int** | | [optional] [readonly] +**var123Number** | **int** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/Return.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/Return.md index 2c7c97e09da..052ac919006 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/Return.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Return** | **int** | | [optional] +**VarReturn** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/SpecialModelName.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/SpecialModelName.md index 648179799e1..7f8ffca34fa 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/SpecialModelName.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SpecialPropertyName** | **long** | | [optional] -**_SpecialModelName** | **string** | | [optional] +**VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeApi.cs index 575bee123ae..cbc78b4dc1f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeApi.cs @@ -215,21 +215,21 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) /// - void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -239,21 +239,21 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); /// /// To test enum parameters /// @@ -611,14 +611,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -626,7 +626,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -636,14 +636,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -651,7 +651,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// To test enum parameters /// @@ -2020,23 +2020,23 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) /// - public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) { - TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } /// @@ -2044,29 +2044,29 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); - // verify the required parameter '_byte' is set - if (_byte == null) - throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + // verify the required parameter 'varByte' is set + if (varByte == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2097,17 +2097,17 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.FormParameters.Add("int64", Org.OpenAPITools.Client.ClientUtils.ParameterToString(int64)); // form parameter } localVarRequestOptions.FormParameters.Add("number", Org.OpenAPITools.Client.ClientUtils.ParameterToString(number)); // form parameter - if (_float != null) + if (varFloat != null) { - localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_float)); // form parameter + localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varFloat)); // form parameter } - localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_double)); // form parameter - if (_string != null) + localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varDouble)); // form parameter + if (varString != null) { - localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_string)); // form parameter + localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varString)); // form parameter } localVarRequestOptions.FormParameters.Add("pattern_without_delimiter", Org.OpenAPITools.Client.ClientUtils.ParameterToString(patternWithoutDelimiter)); // form parameter - localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter + localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varByte)); // form parameter if (binary != null) { localVarRequestOptions.FileParameters.Add("binary", binary); @@ -2153,14 +2153,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2168,9 +2168,9 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, cancellationToken).ConfigureAwait(false); + await TestEndpointParametersWithHttpInfoAsync(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback, cancellationToken).ConfigureAwait(false); } /// @@ -2178,14 +2178,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2193,15 +2193,15 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); - // verify the required parameter '_byte' is set - if (_byte == null) - throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + // verify the required parameter 'varByte' is set + if (varByte == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2234,17 +2234,17 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.FormParameters.Add("int64", Org.OpenAPITools.Client.ClientUtils.ParameterToString(int64)); // form parameter } localVarRequestOptions.FormParameters.Add("number", Org.OpenAPITools.Client.ClientUtils.ParameterToString(number)); // form parameter - if (_float != null) + if (varFloat != null) { - localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_float)); // form parameter + localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varFloat)); // form parameter } - localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_double)); // form parameter - if (_string != null) + localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varDouble)); // form parameter + if (varString != null) { - localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_string)); // form parameter + localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varString)); // form parameter } localVarRequestOptions.FormParameters.Add("pattern_without_delimiter", Org.OpenAPITools.Client.ClientUtils.ParameterToString(patternWithoutDelimiter)); // form parameter - localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter + localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varByte)); // form parameter if (binary != null) { localVarRequestOptions.FileParameters.Add("binary", binary); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/ClassModel.cs index 376386e55f7..04fdc54204c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/ClassModel.cs @@ -36,18 +36,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _class. - public ClassModel(string _class = default(string)) + /// varClass. + public ClassModel(string varClass = default(string)) { - this.Class = _class; + this.VarClass = varClass; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name = "_class", EmitDefaultValue = false)] - public string Class { get; set; } + public string VarClass { get; set; } /// /// Gets or Sets additional properties @@ -63,7 +63,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ClassModel {\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -107,9 +107,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Class != null) + if (this.VarClass != null) { - hashCode = (hashCode * 59) + this.Class.GetHashCode(); + hashCode = (hashCode * 59) + this.VarClass.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 17b4937d0cc..3ff42d399d2 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -36,18 +36,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _string. - public FooGetDefaultResponse(Foo _string = default(Foo)) + /// varString. + public FooGetDefaultResponse(Foo varString = default(Foo)) { - this.String = _string; + this.VarString = varString; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String { get; set; } + public Foo VarString { get; set; } /// /// Gets or Sets additional properties @@ -63,7 +63,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class FooGetDefaultResponse {\n"); - sb.Append(" String: ").Append(String).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -107,9 +107,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.String != null) + if (this.VarString != null) { - hashCode = (hashCode * 59) + this.String.GetHashCode(); + hashCode = (hashCode * 59) + this.VarString.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/FormatTest.cs index 6b7c049490b..4466573de65 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/FormatTest.cs @@ -50,11 +50,11 @@ namespace Org.OpenAPITools.Model /// int64. /// unsignedLong. /// number (required). - /// _float. - /// _double. - /// _decimal. - /// _string. - /// _byte (required). + /// varFloat. + /// varDouble. + /// varDecimal. + /// varString. + /// varByte (required). /// binary. /// date (required). /// dateTime. @@ -63,15 +63,15 @@ namespace Org.OpenAPITools.Model /// A string that is a 10 digit number. Can have leading zeros.. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. /// None. - public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), FileParameter binary = default(FileParameter), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) + public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), FileParameter binary = default(FileParameter), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) { this.Number = number; - // to ensure "_byte" is required (not null) - if (_byte == null) + // to ensure "varByte" is required (not null) + if (varByte == null) { - throw new ArgumentNullException("_byte is a required property for FormatTest and cannot be null"); + throw new ArgumentNullException("varByte is a required property for FormatTest and cannot be null"); } - this.Byte = _byte; + this.VarByte = varByte; this.Date = date; // to ensure "password" is required (not null) if (password == null) @@ -84,10 +84,10 @@ namespace Org.OpenAPITools.Model this.UnsignedInteger = unsignedInteger; this.Int64 = int64; this.UnsignedLong = unsignedLong; - this.Float = _float; - this.Double = _double; - this.Decimal = _decimal; - this.String = _string; + this.VarFloat = varFloat; + this.VarDouble = varDouble; + this.VarDecimal = varDecimal; + this.VarString = varString; this.Binary = binary; this.DateTime = dateTime; this.Uuid = uuid; @@ -134,34 +134,34 @@ namespace Org.OpenAPITools.Model public decimal Number { get; set; } /// - /// Gets or Sets Float + /// Gets or Sets VarFloat /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float VarFloat { get; set; } /// - /// Gets or Sets Double + /// Gets or Sets VarDouble /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double VarDouble { get; set; } /// - /// Gets or Sets Decimal + /// Gets or Sets VarDecimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal VarDecimal { get; set; } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name = "string", EmitDefaultValue = false)] - public string String { get; set; } + public string VarString { get; set; } /// - /// Gets or Sets Byte + /// Gets or Sets VarByte /// [DataMember(Name = "byte", IsRequired = true, EmitDefaultValue = true)] - public byte[] Byte { get; set; } + public byte[] VarByte { get; set; } /// /// Gets or Sets Binary @@ -238,11 +238,11 @@ namespace Org.OpenAPITools.Model sb.Append(" Int64: ").Append(Int64).Append("\n"); sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n"); sb.Append(" Number: ").Append(Number).Append("\n"); - sb.Append(" Float: ").Append(Float).Append("\n"); - sb.Append(" Double: ").Append(Double).Append("\n"); - sb.Append(" Decimal: ").Append(Decimal).Append("\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" Byte: ").Append(Byte).Append("\n"); + sb.Append(" VarFloat: ").Append(VarFloat).Append("\n"); + sb.Append(" VarDouble: ").Append(VarDouble).Append("\n"); + sb.Append(" VarDecimal: ").Append(VarDecimal).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); + sb.Append(" VarByte: ").Append(VarByte).Append("\n"); sb.Append(" Binary: ").Append(Binary).Append("\n"); sb.Append(" Date: ").Append(Date).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n"); @@ -300,16 +300,16 @@ namespace Org.OpenAPITools.Model hashCode = (hashCode * 59) + this.Int64.GetHashCode(); hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); - if (this.String != null) + hashCode = (hashCode * 59) + this.VarFloat.GetHashCode(); + hashCode = (hashCode * 59) + this.VarDouble.GetHashCode(); + hashCode = (hashCode * 59) + this.VarDecimal.GetHashCode(); + if (this.VarString != null) { - hashCode = (hashCode * 59) + this.String.GetHashCode(); + hashCode = (hashCode * 59) + this.VarString.GetHashCode(); } - if (this.Byte != null) + if (this.VarByte != null) { - hashCode = (hashCode * 59) + this.Byte.GetHashCode(); + hashCode = (hashCode * 59) + this.VarByte.GetHashCode(); } if (this.Binary != null) { @@ -406,35 +406,35 @@ namespace Org.OpenAPITools.Model yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // VarFloat (float) maximum + if (this.VarFloat > (float)987.6) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value less than or equal to 987.6.", new [] { "VarFloat" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // VarFloat (float) minimum + if (this.VarFloat < (float)54.3) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value greater than or equal to 54.3.", new [] { "VarFloat" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // VarDouble (double) maximum + if (this.VarDouble > (double)123.4) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value less than or equal to 123.4.", new [] { "VarDouble" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // VarDouble (double) minimum + if (this.VarDouble < (double)67.8) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value greater than or equal to 67.8.", new [] { "VarDouble" }); } - // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (false == regexString.Match(this.String).Success) + // VarString (string) pattern + Regex regexVarString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (false == regexVarString.Match(this.VarString).Success) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarString, must match a pattern of " + regexVarString, new [] { "VarString" }); } // Password (string) maxLength diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/List.cs index 0b82ae2a68f..94cea05aee5 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/List.cs @@ -36,18 +36,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _123list. - public List(string _123list = default(string)) + /// var123List. + public List(string var123List = default(string)) { - this._123List = _123list; + this.var123List = var123List; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _123List + /// Gets or Sets var123List /// [DataMember(Name = "123-list", EmitDefaultValue = false)] - public string _123List { get; set; } + public string var123List { get; set; } /// /// Gets or Sets additional properties @@ -63,7 +63,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class List {\n"); - sb.Append(" _123List: ").Append(_123List).Append("\n"); + sb.Append(" var123List: ").Append(var123List).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -107,9 +107,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._123List != null) + if (this.var123List != null) { - hashCode = (hashCode * 59) + this._123List.GetHashCode(); + hashCode = (hashCode * 59) + this.var123List.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Model200Response.cs index 8a418ebc73f..8f1a2792497 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Model200Response.cs @@ -37,11 +37,11 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// name. - /// _class. - public Model200Response(int name = default(int), string _class = default(string)) + /// varClass. + public Model200Response(int name = default(int), string varClass = default(string)) { this.Name = name; - this.Class = _class; + this.VarClass = varClass; this.AdditionalProperties = new Dictionary(); } @@ -52,10 +52,10 @@ namespace Org.OpenAPITools.Model public int Name { get; set; } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name = "class", EmitDefaultValue = false)] - public string Class { get; set; } + public string VarClass { get; set; } /// /// Gets or Sets additional properties @@ -72,7 +72,7 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class Model200Response {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -117,9 +117,9 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + this.Name.GetHashCode(); - if (this.Class != null) + if (this.VarClass != null) { - hashCode = (hashCode * 59) + this.Class.GetHashCode(); + hashCode = (hashCode * 59) + this.VarClass.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/ModelClient.cs index e9371830487..9cc72a7b4a4 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/ModelClient.cs @@ -30,24 +30,24 @@ namespace Org.OpenAPITools.Model /// /// ModelClient /// - [DataContract(Name = "_Client")] + [DataContract(Name = "varClient")] public partial class ModelClient : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// - /// _client. - public ModelClient(string _client = default(string)) + /// varClient. + public ModelClient(string varClient = default(string)) { - this._Client = _client; + this.varClient = varClient; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _Client + /// Gets or Sets varClient /// [DataMember(Name = "client", EmitDefaultValue = false)] - public string _Client { get; set; } + public string varClient { get; set; } /// /// Gets or Sets additional properties @@ -63,7 +63,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ModelClient {\n"); - sb.Append(" _Client: ").Append(_Client).Append("\n"); + sb.Append(" varClient: ").Append(varClient).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -107,9 +107,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._Client != null) + if (this.varClient != null) { - hashCode = (hashCode * 59) + this._Client.GetHashCode(); + hashCode = (hashCode * 59) + this.varClient.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Name.cs index 0b13d4f392f..641772cef0f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Name.cs @@ -44,20 +44,20 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// name (required). + /// varName (required). /// property. - public Name(int name = default(int), string property = default(string)) + public Name(int varName = default(int), string property = default(string)) { - this._Name = name; + this.VarName = varName; this.Property = property; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _Name + /// Gets or Sets VarName /// [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] - public int _Name { get; set; } + public int VarName { get; set; } /// /// Gets or Sets SnakeCase @@ -80,16 +80,16 @@ namespace Org.OpenAPITools.Model public string Property { get; set; } /// - /// Gets or Sets _123Number + /// Gets or Sets var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int _123Number { get; private set; } + public int var123Number { get; private set; } /// - /// Returns false as _123Number should not be serialized given that it's read-only. + /// Returns false as var123Number should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerialize_123Number() + public bool ShouldSerializevar123Number() { return false; } @@ -107,10 +107,10 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Name {\n"); - sb.Append(" _Name: ").Append(_Name).Append("\n"); + sb.Append(" VarName: ").Append(VarName).Append("\n"); sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n"); sb.Append(" Property: ").Append(Property).Append("\n"); - sb.Append(" _123Number: ").Append(_123Number).Append("\n"); + sb.Append(" var123Number: ").Append(var123Number).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -154,13 +154,13 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this._Name.GetHashCode(); + hashCode = (hashCode * 59) + this.VarName.GetHashCode(); hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this._123Number.GetHashCode(); + hashCode = (hashCode * 59) + this.var123Number.GetHashCode(); if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Return.cs index 5c2685ac2a7..b6f903f78d5 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Return.cs @@ -36,18 +36,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _return. - public Return(int _return = default(int)) + /// varReturn. + public Return(int varReturn = default(int)) { - this._Return = _return; + this.VarReturn = varReturn; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _Return + /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int _Return { get; set; } + public int VarReturn { get; set; } /// /// Gets or Sets additional properties @@ -63,7 +63,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Return {\n"); - sb.Append(" _Return: ").Append(_Return).Append("\n"); + sb.Append(" VarReturn: ").Append(VarReturn).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -107,7 +107,7 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this._Return.GetHashCode(); + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/SpecialModelName.cs index 7894796d308..514b1d9c077 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -37,11 +37,11 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// specialPropertyName. - /// specialModelName. - public SpecialModelName(long specialPropertyName = default(long), string specialModelName = default(string)) + /// varSpecialModelName. + public SpecialModelName(long specialPropertyName = default(long), string varSpecialModelName = default(string)) { this.SpecialPropertyName = specialPropertyName; - this._SpecialModelName = specialModelName; + this.VarSpecialModelName = varSpecialModelName; this.AdditionalProperties = new Dictionary(); } @@ -52,10 +52,10 @@ namespace Org.OpenAPITools.Model public long SpecialPropertyName { get; set; } /// - /// Gets or Sets _SpecialModelName + /// Gets or Sets VarSpecialModelName /// [DataMember(Name = "_special_model.name_", EmitDefaultValue = false)] - public string _SpecialModelName { get; set; } + public string VarSpecialModelName { get; set; } /// /// Gets or Sets additional properties @@ -72,7 +72,7 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class SpecialModelName {\n"); sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n"); - sb.Append(" _SpecialModelName: ").Append(_SpecialModelName).Append("\n"); + sb.Append(" VarSpecialModelName: ").Append(VarSpecialModelName).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -117,9 +117,9 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); - if (this._SpecialModelName != null) + if (this.VarSpecialModelName != null) { - hashCode = (hashCode * 59) + this._SpecialModelName.GetHashCode(); + hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/ClassModel.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/ClassModel.md index f39982657c8..c90a44a6f84 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/ClassModel.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/ClassModel.md @@ -5,7 +5,7 @@ Model for testing model with \"_class\" property Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/FakeApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/FakeApi.md index c5ed3eb8340..7bdf5246aac 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/FakeApi.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/FakeApi.md @@ -809,7 +809,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) +> void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -837,14 +837,14 @@ namespace Example var apiInstance = new FakeApi(config); var number = 8.14D; // decimal | None - var _double = 1.2D; // double | None + var varDouble = 1.2D; // double | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None - var _byte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None + var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var integer = 56; // int? | None (optional) var int32 = 56; // int? | None (optional) var int64 = 789L; // long? | None (optional) - var _float = 3.4F; // float? | None (optional) - var _string = "_string_example"; // string | None (optional) + var varFloat = 3.4F; // float? | None (optional) + var varString = "string_example"; // string | None (optional) var binary = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | None (optional) var date = DateTime.Parse("2013-10-20"); // DateTime? | None (optional) var dateTime = DateTime.Parse(""2010-02-01T10:20:10.111110+01:00""); // DateTime? | None (optional) (default to "2010-02-01T10:20:10.111110+01:00") @@ -854,7 +854,7 @@ namespace Example try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + apiInstance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } catch (ApiException e) { @@ -874,7 +874,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + apiInstance.TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } catch (ApiException e) { @@ -889,14 +889,14 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **number** | **decimal** | None | | -| **_double** | **double** | None | | +| **varDouble** | **double** | None | | | **patternWithoutDelimiter** | **string** | None | | -| **_byte** | **byte[]** | None | | +| **varByte** | **byte[]** | None | | | **integer** | **int?** | None | [optional] | | **int32** | **int?** | None | [optional] | | **int64** | **long?** | None | [optional] | -| **_float** | **float?** | None | [optional] | -| **_string** | **string** | None | [optional] | +| **varFloat** | **float?** | None | [optional] | +| **varString** | **string** | None | [optional] | | **binary** | **System.IO.Stream****System.IO.Stream** | None | [optional] | | **date** | **DateTime?** | None | [optional] | | **dateTime** | **DateTime?** | None | [optional] [default to "2010-02-01T10:20:10.111110+01:00"] | diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/FooGetDefaultResponse.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/FooGetDefaultResponse.md index dde9b9729b9..9ebee827949 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/FooGetDefaultResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] +**VarString** | [**Foo**](Foo.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/FormatTest.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/FormatTest.md index c2144b5e3cf..2d28c89fa30 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/FormatTest.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/FormatTest.md @@ -10,11 +10,11 @@ Name | Type | Description | Notes **Int64** | **long** | | [optional] **UnsignedLong** | **ulong** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] -**String** | **string** | | [optional] -**Byte** | **byte[]** | | +**VarFloat** | **float** | | [optional] +**VarDouble** | **double** | | [optional] +**VarDecimal** | **decimal** | | [optional] +**VarString** | **string** | | [optional] +**VarByte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] **Date** | **DateTime** | | **DateTime** | **DateTime** | | [optional] diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/List.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/List.md index 2862c7e5321..ef729179265 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/List.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/List.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_123List** | **string** | | [optional] +**var123List** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/Model200Response.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/Model200Response.md index 31f4d86fe43..4b6338af424 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/Model200Response.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/Model200Response.md @@ -6,7 +6,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **int** | | [optional] -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/ModelClient.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/ModelClient.md index c29a6287433..45f4e41644f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/ModelClient.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/ModelClient.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Client** | **string** | | [optional] +**varClient** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/Name.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/Name.md index 692af702b5b..a5ee6ef12f9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/Name.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/Name.md @@ -5,10 +5,10 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Name** | **int** | | +**VarName** | **int** | | **SnakeCase** | **int** | | [optional] [readonly] **Property** | **string** | | [optional] -**_123Number** | **int** | | [optional] [readonly] +**var123Number** | **int** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/Return.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/Return.md index 2c7c97e09da..052ac919006 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/Return.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Return** | **int** | | [optional] +**VarReturn** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/SpecialModelName.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/SpecialModelName.md index 648179799e1..7f8ffca34fa 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/SpecialModelName.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SpecialPropertyName** | **long** | | [optional] -**_SpecialModelName** | **string** | | [optional] +**VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/FakeApi.cs index ca68e330338..db7210ad86f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/FakeApi.cs @@ -233,14 +233,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// - void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); + void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -258,14 +258,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); + ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); /// /// To test enum parameters /// @@ -659,14 +659,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -675,7 +675,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -685,14 +685,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -701,7 +701,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// To test enum parameters /// @@ -2228,14 +2228,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2243,9 +2243,9 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// - public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) + public void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) { - TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } /// @@ -2253,14 +2253,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2268,7 +2268,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2276,10 +2276,10 @@ namespace Org.OpenAPITools.Api throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); } - // verify the required parameter '_byte' is set - if (_byte == null) + // verify the required parameter 'varByte' is set + if (varByte == null) { - throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); } Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2317,17 +2317,17 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.FormParameters.Add("int64", Org.OpenAPITools.Client.ClientUtils.ParameterToString(int64)); // form parameter } localVarRequestOptions.FormParameters.Add("number", Org.OpenAPITools.Client.ClientUtils.ParameterToString(number)); // form parameter - if (_float != null) + if (varFloat != null) { - localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_float)); // form parameter + localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varFloat)); // form parameter } - localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_double)); // form parameter - if (_string != null) + localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varDouble)); // form parameter + if (varString != null) { - localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_string)); // form parameter + localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varString)); // form parameter } localVarRequestOptions.FormParameters.Add("pattern_without_delimiter", Org.OpenAPITools.Client.ClientUtils.ParameterToString(patternWithoutDelimiter)); // form parameter - localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter + localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varByte)); // form parameter if (binary != null) { localVarRequestOptions.FileParameters.Add("binary", binary); @@ -2378,14 +2378,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2394,9 +2394,9 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); + await TestEndpointParametersWithHttpInfoAsync(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -2404,14 +2404,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2420,7 +2420,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2428,10 +2428,10 @@ namespace Org.OpenAPITools.Api throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); } - // verify the required parameter '_byte' is set - if (_byte == null) + // verify the required parameter 'varByte' is set + if (varByte == null) { - throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); } @@ -2470,17 +2470,17 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.FormParameters.Add("int64", Org.OpenAPITools.Client.ClientUtils.ParameterToString(int64)); // form parameter } localVarRequestOptions.FormParameters.Add("number", Org.OpenAPITools.Client.ClientUtils.ParameterToString(number)); // form parameter - if (_float != null) + if (varFloat != null) { - localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_float)); // form parameter + localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varFloat)); // form parameter } - localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_double)); // form parameter - if (_string != null) + localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varDouble)); // form parameter + if (varString != null) { - localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_string)); // form parameter + localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varString)); // form parameter } localVarRequestOptions.FormParameters.Add("pattern_without_delimiter", Org.OpenAPITools.Client.ClientUtils.ParameterToString(patternWithoutDelimiter)); // form parameter - localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter + localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varByte)); // form parameter if (binary != null) { localVarRequestOptions.FileParameters.Add("binary", binary); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/ClassModel.cs index 59c85f3e79b..19aedc1734b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/ClassModel.cs @@ -35,18 +35,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _class. - public ClassModel(string _class = default(string)) + /// varClass. + public ClassModel(string varClass = default(string)) { - this.Class = _class; + this.VarClass = varClass; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name = "_class", EmitDefaultValue = false)] - public string Class { get; set; } + public string VarClass { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ClassModel {\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Class != null) + if (this.VarClass != null) { - hashCode = (hashCode * 59) + this.Class.GetHashCode(); + hashCode = (hashCode * 59) + this.VarClass.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 70554062020..55cd8eb7482 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -35,18 +35,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _string. - public FooGetDefaultResponse(Foo _string = default(Foo)) + /// varString. + public FooGetDefaultResponse(Foo varString = default(Foo)) { - this.String = _string; + this.VarString = varString; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String { get; set; } + public Foo VarString { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class FooGetDefaultResponse {\n"); - sb.Append(" String: ").Append(String).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.String != null) + if (this.VarString != null) { - hashCode = (hashCode * 59) + this.String.GetHashCode(); + hashCode = (hashCode * 59) + this.VarString.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/FormatTest.cs index 5d1f524948f..99b26c4bf7b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/FormatTest.cs @@ -49,11 +49,11 @@ namespace Org.OpenAPITools.Model /// int64. /// unsignedLong. /// number (required). - /// _float. - /// _double. - /// _decimal. - /// _string. - /// _byte (required). + /// varFloat. + /// varDouble. + /// varDecimal. + /// varString. + /// varByte (required). /// binary. /// date (required). /// dateTime. @@ -62,15 +62,15 @@ namespace Org.OpenAPITools.Model /// A string that is a 10 digit number. Can have leading zeros.. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. /// None. - public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) + public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) { this.Number = number; - // to ensure "_byte" is required (not null) - if (_byte == null) + // to ensure "varByte" is required (not null) + if (varByte == null) { - throw new ArgumentNullException("_byte is a required property for FormatTest and cannot be null"); + throw new ArgumentNullException("varByte is a required property for FormatTest and cannot be null"); } - this.Byte = _byte; + this.VarByte = varByte; this.Date = date; // to ensure "password" is required (not null) if (password == null) @@ -83,10 +83,10 @@ namespace Org.OpenAPITools.Model this.UnsignedInteger = unsignedInteger; this.Int64 = int64; this.UnsignedLong = unsignedLong; - this.Float = _float; - this.Double = _double; - this.Decimal = _decimal; - this.String = _string; + this.VarFloat = varFloat; + this.VarDouble = varDouble; + this.VarDecimal = varDecimal; + this.VarString = varString; this.Binary = binary; this.DateTime = dateTime; this.Uuid = uuid; @@ -133,34 +133,34 @@ namespace Org.OpenAPITools.Model public decimal Number { get; set; } /// - /// Gets or Sets Float + /// Gets or Sets VarFloat /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float VarFloat { get; set; } /// - /// Gets or Sets Double + /// Gets or Sets VarDouble /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double VarDouble { get; set; } /// - /// Gets or Sets Decimal + /// Gets or Sets VarDecimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal VarDecimal { get; set; } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name = "string", EmitDefaultValue = false)] - public string String { get; set; } + public string VarString { get; set; } /// - /// Gets or Sets Byte + /// Gets or Sets VarByte /// [DataMember(Name = "byte", IsRequired = true, EmitDefaultValue = true)] - public byte[] Byte { get; set; } + public byte[] VarByte { get; set; } /// /// Gets or Sets Binary @@ -237,11 +237,11 @@ namespace Org.OpenAPITools.Model sb.Append(" Int64: ").Append(Int64).Append("\n"); sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n"); sb.Append(" Number: ").Append(Number).Append("\n"); - sb.Append(" Float: ").Append(Float).Append("\n"); - sb.Append(" Double: ").Append(Double).Append("\n"); - sb.Append(" Decimal: ").Append(Decimal).Append("\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" Byte: ").Append(Byte).Append("\n"); + sb.Append(" VarFloat: ").Append(VarFloat).Append("\n"); + sb.Append(" VarDouble: ").Append(VarDouble).Append("\n"); + sb.Append(" VarDecimal: ").Append(VarDecimal).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); + sb.Append(" VarByte: ").Append(VarByte).Append("\n"); sb.Append(" Binary: ").Append(Binary).Append("\n"); sb.Append(" Date: ").Append(Date).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n"); @@ -299,16 +299,16 @@ namespace Org.OpenAPITools.Model hashCode = (hashCode * 59) + this.Int64.GetHashCode(); hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); - if (this.String != null) + hashCode = (hashCode * 59) + this.VarFloat.GetHashCode(); + hashCode = (hashCode * 59) + this.VarDouble.GetHashCode(); + hashCode = (hashCode * 59) + this.VarDecimal.GetHashCode(); + if (this.VarString != null) { - hashCode = (hashCode * 59) + this.String.GetHashCode(); + hashCode = (hashCode * 59) + this.VarString.GetHashCode(); } - if (this.Byte != null) + if (this.VarByte != null) { - hashCode = (hashCode * 59) + this.Byte.GetHashCode(); + hashCode = (hashCode * 59) + this.VarByte.GetHashCode(); } if (this.Binary != null) { @@ -405,35 +405,35 @@ namespace Org.OpenAPITools.Model yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // VarFloat (float) maximum + if (this.VarFloat > (float)987.6) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value less than or equal to 987.6.", new [] { "VarFloat" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // VarFloat (float) minimum + if (this.VarFloat < (float)54.3) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value greater than or equal to 54.3.", new [] { "VarFloat" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // VarDouble (double) maximum + if (this.VarDouble > (double)123.4) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value less than or equal to 123.4.", new [] { "VarDouble" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // VarDouble (double) minimum + if (this.VarDouble < (double)67.8) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value greater than or equal to 67.8.", new [] { "VarDouble" }); } - // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (false == regexString.Match(this.String).Success) + // VarString (string) pattern + Regex regexVarString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (false == regexVarString.Match(this.VarString).Success) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarString, must match a pattern of " + regexVarString, new [] { "VarString" }); } // Password (string) maxLength diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/List.cs index 8933b19e210..34aa730e796 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/List.cs @@ -35,18 +35,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _123list. - public List(string _123list = default(string)) + /// var123List. + public List(string var123List = default(string)) { - this._123List = _123list; + this.var123List = var123List; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _123List + /// Gets or Sets var123List /// [DataMember(Name = "123-list", EmitDefaultValue = false)] - public string _123List { get; set; } + public string var123List { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class List {\n"); - sb.Append(" _123List: ").Append(_123List).Append("\n"); + sb.Append(" var123List: ").Append(var123List).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._123List != null) + if (this.var123List != null) { - hashCode = (hashCode * 59) + this._123List.GetHashCode(); + hashCode = (hashCode * 59) + this.var123List.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Model200Response.cs index 72383f9de33..6e5acdf9e69 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Model200Response.cs @@ -36,11 +36,11 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// name. - /// _class. - public Model200Response(int name = default(int), string _class = default(string)) + /// varClass. + public Model200Response(int name = default(int), string varClass = default(string)) { this.Name = name; - this.Class = _class; + this.VarClass = varClass; this.AdditionalProperties = new Dictionary(); } @@ -51,10 +51,10 @@ namespace Org.OpenAPITools.Model public int Name { get; set; } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name = "class", EmitDefaultValue = false)] - public string Class { get; set; } + public string VarClass { get; set; } /// /// Gets or Sets additional properties @@ -71,7 +71,7 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class Model200Response {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -116,9 +116,9 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + this.Name.GetHashCode(); - if (this.Class != null) + if (this.VarClass != null) { - hashCode = (hashCode * 59) + this.Class.GetHashCode(); + hashCode = (hashCode * 59) + this.VarClass.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/ModelClient.cs index d9a94592395..c5433e622d9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/ModelClient.cs @@ -29,24 +29,24 @@ namespace Org.OpenAPITools.Model /// /// ModelClient /// - [DataContract(Name = "_Client")] + [DataContract(Name = "varClient")] public partial class ModelClient : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// - /// _client. - public ModelClient(string _client = default(string)) + /// varClient. + public ModelClient(string varClient = default(string)) { - this._Client = _client; + this.varClient = varClient; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _Client + /// Gets or Sets varClient /// [DataMember(Name = "client", EmitDefaultValue = false)] - public string _Client { get; set; } + public string varClient { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ModelClient {\n"); - sb.Append(" _Client: ").Append(_Client).Append("\n"); + sb.Append(" varClient: ").Append(varClient).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._Client != null) + if (this.varClient != null) { - hashCode = (hashCode * 59) + this._Client.GetHashCode(); + hashCode = (hashCode * 59) + this.varClient.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Name.cs index 515b498cb5b..8354a3c82bd 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Name.cs @@ -43,20 +43,20 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// name (required). + /// varName (required). /// property. - public Name(int name = default(int), string property = default(string)) + public Name(int varName = default(int), string property = default(string)) { - this._Name = name; + this.VarName = varName; this.Property = property; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _Name + /// Gets or Sets VarName /// [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] - public int _Name { get; set; } + public int VarName { get; set; } /// /// Gets or Sets SnakeCase @@ -79,16 +79,16 @@ namespace Org.OpenAPITools.Model public string Property { get; set; } /// - /// Gets or Sets _123Number + /// Gets or Sets var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int _123Number { get; private set; } + public int var123Number { get; private set; } /// - /// Returns false as _123Number should not be serialized given that it's read-only. + /// Returns false as var123Number should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerialize_123Number() + public bool ShouldSerializevar123Number() { return false; } @@ -106,10 +106,10 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Name {\n"); - sb.Append(" _Name: ").Append(_Name).Append("\n"); + sb.Append(" VarName: ").Append(VarName).Append("\n"); sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n"); sb.Append(" Property: ").Append(Property).Append("\n"); - sb.Append(" _123Number: ").Append(_123Number).Append("\n"); + sb.Append(" var123Number: ").Append(var123Number).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -153,13 +153,13 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this._Name.GetHashCode(); + hashCode = (hashCode * 59) + this.VarName.GetHashCode(); hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this._123Number.GetHashCode(); + hashCode = (hashCode * 59) + this.var123Number.GetHashCode(); if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Return.cs index c6edbea2f71..aaab21dc58c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Return.cs @@ -35,18 +35,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _return. - public Return(int _return = default(int)) + /// varReturn. + public Return(int varReturn = default(int)) { - this._Return = _return; + this.VarReturn = varReturn; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _Return + /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int _Return { get; set; } + public int VarReturn { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Return {\n"); - sb.Append(" _Return: ").Append(_Return).Append("\n"); + sb.Append(" VarReturn: ").Append(VarReturn).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,7 +106,7 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this._Return.GetHashCode(); + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/SpecialModelName.cs index fd741fa9e1a..ca5adcd816b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -36,11 +36,11 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// specialPropertyName. - /// specialModelName. - public SpecialModelName(long specialPropertyName = default(long), string specialModelName = default(string)) + /// varSpecialModelName. + public SpecialModelName(long specialPropertyName = default(long), string varSpecialModelName = default(string)) { this.SpecialPropertyName = specialPropertyName; - this._SpecialModelName = specialModelName; + this.VarSpecialModelName = varSpecialModelName; this.AdditionalProperties = new Dictionary(); } @@ -51,10 +51,10 @@ namespace Org.OpenAPITools.Model public long SpecialPropertyName { get; set; } /// - /// Gets or Sets _SpecialModelName + /// Gets or Sets VarSpecialModelName /// [DataMember(Name = "_special_model.name_", EmitDefaultValue = false)] - public string _SpecialModelName { get; set; } + public string VarSpecialModelName { get; set; } /// /// Gets or Sets additional properties @@ -71,7 +71,7 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class SpecialModelName {\n"); sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n"); - sb.Append(" _SpecialModelName: ").Append(_SpecialModelName).Append("\n"); + sb.Append(" VarSpecialModelName: ").Append(VarSpecialModelName).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -116,9 +116,9 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); - if (this._SpecialModelName != null) + if (this.VarSpecialModelName != null) { - hashCode = (hashCode * 59) + this._SpecialModelName.GetHashCode(); + hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/ClassModel.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/ClassModel.md index f39982657c8..c90a44a6f84 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/ClassModel.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/ClassModel.md @@ -5,7 +5,7 @@ Model for testing model with \"_class\" property Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/FakeApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/FakeApi.md index c5ed3eb8340..7bdf5246aac 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/FakeApi.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/FakeApi.md @@ -809,7 +809,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) +> void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -837,14 +837,14 @@ namespace Example var apiInstance = new FakeApi(config); var number = 8.14D; // decimal | None - var _double = 1.2D; // double | None + var varDouble = 1.2D; // double | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None - var _byte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None + var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var integer = 56; // int? | None (optional) var int32 = 56; // int? | None (optional) var int64 = 789L; // long? | None (optional) - var _float = 3.4F; // float? | None (optional) - var _string = "_string_example"; // string | None (optional) + var varFloat = 3.4F; // float? | None (optional) + var varString = "string_example"; // string | None (optional) var binary = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | None (optional) var date = DateTime.Parse("2013-10-20"); // DateTime? | None (optional) var dateTime = DateTime.Parse(""2010-02-01T10:20:10.111110+01:00""); // DateTime? | None (optional) (default to "2010-02-01T10:20:10.111110+01:00") @@ -854,7 +854,7 @@ namespace Example try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + apiInstance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } catch (ApiException e) { @@ -874,7 +874,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + apiInstance.TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } catch (ApiException e) { @@ -889,14 +889,14 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **number** | **decimal** | None | | -| **_double** | **double** | None | | +| **varDouble** | **double** | None | | | **patternWithoutDelimiter** | **string** | None | | -| **_byte** | **byte[]** | None | | +| **varByte** | **byte[]** | None | | | **integer** | **int?** | None | [optional] | | **int32** | **int?** | None | [optional] | | **int64** | **long?** | None | [optional] | -| **_float** | **float?** | None | [optional] | -| **_string** | **string** | None | [optional] | +| **varFloat** | **float?** | None | [optional] | +| **varString** | **string** | None | [optional] | | **binary** | **System.IO.Stream****System.IO.Stream** | None | [optional] | | **date** | **DateTime?** | None | [optional] | | **dateTime** | **DateTime?** | None | [optional] [default to "2010-02-01T10:20:10.111110+01:00"] | diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/FooGetDefaultResponse.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/FooGetDefaultResponse.md index dde9b9729b9..9ebee827949 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/FooGetDefaultResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] +**VarString** | [**Foo**](Foo.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/FormatTest.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/FormatTest.md index c2144b5e3cf..2d28c89fa30 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/FormatTest.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/FormatTest.md @@ -10,11 +10,11 @@ Name | Type | Description | Notes **Int64** | **long** | | [optional] **UnsignedLong** | **ulong** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] -**String** | **string** | | [optional] -**Byte** | **byte[]** | | +**VarFloat** | **float** | | [optional] +**VarDouble** | **double** | | [optional] +**VarDecimal** | **decimal** | | [optional] +**VarString** | **string** | | [optional] +**VarByte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] **Date** | **DateTime** | | **DateTime** | **DateTime** | | [optional] diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/List.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/List.md index 2862c7e5321..ef729179265 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/List.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/List.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_123List** | **string** | | [optional] +**var123List** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/Model200Response.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/Model200Response.md index 31f4d86fe43..4b6338af424 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/Model200Response.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/Model200Response.md @@ -6,7 +6,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **int** | | [optional] -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/ModelClient.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/ModelClient.md index c29a6287433..45f4e41644f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/ModelClient.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/ModelClient.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Client** | **string** | | [optional] +**varClient** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/Name.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/Name.md index 692af702b5b..a5ee6ef12f9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/Name.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/Name.md @@ -5,10 +5,10 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Name** | **int** | | +**VarName** | **int** | | **SnakeCase** | **int** | | [optional] [readonly] **Property** | **string** | | [optional] -**_123Number** | **int** | | [optional] [readonly] +**var123Number** | **int** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/Return.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/Return.md index 2c7c97e09da..052ac919006 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/Return.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Return** | **int** | | [optional] +**VarReturn** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/SpecialModelName.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/SpecialModelName.md index 648179799e1..7f8ffca34fa 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/docs/SpecialModelName.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SpecialPropertyName** | **long** | | [optional] -**_SpecialModelName** | **string** | | [optional] +**VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Api/FakeApi.cs index ca68e330338..db7210ad86f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Api/FakeApi.cs @@ -233,14 +233,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// - void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); + void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -258,14 +258,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); + ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); /// /// To test enum parameters /// @@ -659,14 +659,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -675,7 +675,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -685,14 +685,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -701,7 +701,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// To test enum parameters /// @@ -2228,14 +2228,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2243,9 +2243,9 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// - public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) + public void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) { - TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } /// @@ -2253,14 +2253,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2268,7 +2268,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2276,10 +2276,10 @@ namespace Org.OpenAPITools.Api throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); } - // verify the required parameter '_byte' is set - if (_byte == null) + // verify the required parameter 'varByte' is set + if (varByte == null) { - throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); } Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2317,17 +2317,17 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.FormParameters.Add("int64", Org.OpenAPITools.Client.ClientUtils.ParameterToString(int64)); // form parameter } localVarRequestOptions.FormParameters.Add("number", Org.OpenAPITools.Client.ClientUtils.ParameterToString(number)); // form parameter - if (_float != null) + if (varFloat != null) { - localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_float)); // form parameter + localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varFloat)); // form parameter } - localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_double)); // form parameter - if (_string != null) + localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varDouble)); // form parameter + if (varString != null) { - localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_string)); // form parameter + localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varString)); // form parameter } localVarRequestOptions.FormParameters.Add("pattern_without_delimiter", Org.OpenAPITools.Client.ClientUtils.ParameterToString(patternWithoutDelimiter)); // form parameter - localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter + localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varByte)); // form parameter if (binary != null) { localVarRequestOptions.FileParameters.Add("binary", binary); @@ -2378,14 +2378,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2394,9 +2394,9 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); + await TestEndpointParametersWithHttpInfoAsync(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -2404,14 +2404,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2420,7 +2420,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2428,10 +2428,10 @@ namespace Org.OpenAPITools.Api throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); } - // verify the required parameter '_byte' is set - if (_byte == null) + // verify the required parameter 'varByte' is set + if (varByte == null) { - throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); } @@ -2470,17 +2470,17 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.FormParameters.Add("int64", Org.OpenAPITools.Client.ClientUtils.ParameterToString(int64)); // form parameter } localVarRequestOptions.FormParameters.Add("number", Org.OpenAPITools.Client.ClientUtils.ParameterToString(number)); // form parameter - if (_float != null) + if (varFloat != null) { - localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_float)); // form parameter + localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varFloat)); // form parameter } - localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_double)); // form parameter - if (_string != null) + localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varDouble)); // form parameter + if (varString != null) { - localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_string)); // form parameter + localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varString)); // form parameter } localVarRequestOptions.FormParameters.Add("pattern_without_delimiter", Org.OpenAPITools.Client.ClientUtils.ParameterToString(patternWithoutDelimiter)); // form parameter - localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter + localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varByte)); // form parameter if (binary != null) { localVarRequestOptions.FileParameters.Add("binary", binary); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/ClassModel.cs index 59c85f3e79b..19aedc1734b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/ClassModel.cs @@ -35,18 +35,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _class. - public ClassModel(string _class = default(string)) + /// varClass. + public ClassModel(string varClass = default(string)) { - this.Class = _class; + this.VarClass = varClass; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name = "_class", EmitDefaultValue = false)] - public string Class { get; set; } + public string VarClass { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ClassModel {\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Class != null) + if (this.VarClass != null) { - hashCode = (hashCode * 59) + this.Class.GetHashCode(); + hashCode = (hashCode * 59) + this.VarClass.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 70554062020..55cd8eb7482 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -35,18 +35,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _string. - public FooGetDefaultResponse(Foo _string = default(Foo)) + /// varString. + public FooGetDefaultResponse(Foo varString = default(Foo)) { - this.String = _string; + this.VarString = varString; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String { get; set; } + public Foo VarString { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class FooGetDefaultResponse {\n"); - sb.Append(" String: ").Append(String).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.String != null) + if (this.VarString != null) { - hashCode = (hashCode * 59) + this.String.GetHashCode(); + hashCode = (hashCode * 59) + this.VarString.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/FormatTest.cs index 5d1f524948f..99b26c4bf7b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/FormatTest.cs @@ -49,11 +49,11 @@ namespace Org.OpenAPITools.Model /// int64. /// unsignedLong. /// number (required). - /// _float. - /// _double. - /// _decimal. - /// _string. - /// _byte (required). + /// varFloat. + /// varDouble. + /// varDecimal. + /// varString. + /// varByte (required). /// binary. /// date (required). /// dateTime. @@ -62,15 +62,15 @@ namespace Org.OpenAPITools.Model /// A string that is a 10 digit number. Can have leading zeros.. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. /// None. - public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) + public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) { this.Number = number; - // to ensure "_byte" is required (not null) - if (_byte == null) + // to ensure "varByte" is required (not null) + if (varByte == null) { - throw new ArgumentNullException("_byte is a required property for FormatTest and cannot be null"); + throw new ArgumentNullException("varByte is a required property for FormatTest and cannot be null"); } - this.Byte = _byte; + this.VarByte = varByte; this.Date = date; // to ensure "password" is required (not null) if (password == null) @@ -83,10 +83,10 @@ namespace Org.OpenAPITools.Model this.UnsignedInteger = unsignedInteger; this.Int64 = int64; this.UnsignedLong = unsignedLong; - this.Float = _float; - this.Double = _double; - this.Decimal = _decimal; - this.String = _string; + this.VarFloat = varFloat; + this.VarDouble = varDouble; + this.VarDecimal = varDecimal; + this.VarString = varString; this.Binary = binary; this.DateTime = dateTime; this.Uuid = uuid; @@ -133,34 +133,34 @@ namespace Org.OpenAPITools.Model public decimal Number { get; set; } /// - /// Gets or Sets Float + /// Gets or Sets VarFloat /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float VarFloat { get; set; } /// - /// Gets or Sets Double + /// Gets or Sets VarDouble /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double VarDouble { get; set; } /// - /// Gets or Sets Decimal + /// Gets or Sets VarDecimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal VarDecimal { get; set; } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name = "string", EmitDefaultValue = false)] - public string String { get; set; } + public string VarString { get; set; } /// - /// Gets or Sets Byte + /// Gets or Sets VarByte /// [DataMember(Name = "byte", IsRequired = true, EmitDefaultValue = true)] - public byte[] Byte { get; set; } + public byte[] VarByte { get; set; } /// /// Gets or Sets Binary @@ -237,11 +237,11 @@ namespace Org.OpenAPITools.Model sb.Append(" Int64: ").Append(Int64).Append("\n"); sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n"); sb.Append(" Number: ").Append(Number).Append("\n"); - sb.Append(" Float: ").Append(Float).Append("\n"); - sb.Append(" Double: ").Append(Double).Append("\n"); - sb.Append(" Decimal: ").Append(Decimal).Append("\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" Byte: ").Append(Byte).Append("\n"); + sb.Append(" VarFloat: ").Append(VarFloat).Append("\n"); + sb.Append(" VarDouble: ").Append(VarDouble).Append("\n"); + sb.Append(" VarDecimal: ").Append(VarDecimal).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); + sb.Append(" VarByte: ").Append(VarByte).Append("\n"); sb.Append(" Binary: ").Append(Binary).Append("\n"); sb.Append(" Date: ").Append(Date).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n"); @@ -299,16 +299,16 @@ namespace Org.OpenAPITools.Model hashCode = (hashCode * 59) + this.Int64.GetHashCode(); hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); - if (this.String != null) + hashCode = (hashCode * 59) + this.VarFloat.GetHashCode(); + hashCode = (hashCode * 59) + this.VarDouble.GetHashCode(); + hashCode = (hashCode * 59) + this.VarDecimal.GetHashCode(); + if (this.VarString != null) { - hashCode = (hashCode * 59) + this.String.GetHashCode(); + hashCode = (hashCode * 59) + this.VarString.GetHashCode(); } - if (this.Byte != null) + if (this.VarByte != null) { - hashCode = (hashCode * 59) + this.Byte.GetHashCode(); + hashCode = (hashCode * 59) + this.VarByte.GetHashCode(); } if (this.Binary != null) { @@ -405,35 +405,35 @@ namespace Org.OpenAPITools.Model yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // VarFloat (float) maximum + if (this.VarFloat > (float)987.6) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value less than or equal to 987.6.", new [] { "VarFloat" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // VarFloat (float) minimum + if (this.VarFloat < (float)54.3) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value greater than or equal to 54.3.", new [] { "VarFloat" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // VarDouble (double) maximum + if (this.VarDouble > (double)123.4) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value less than or equal to 123.4.", new [] { "VarDouble" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // VarDouble (double) minimum + if (this.VarDouble < (double)67.8) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value greater than or equal to 67.8.", new [] { "VarDouble" }); } - // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (false == regexString.Match(this.String).Success) + // VarString (string) pattern + Regex regexVarString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (false == regexVarString.Match(this.VarString).Success) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarString, must match a pattern of " + regexVarString, new [] { "VarString" }); } // Password (string) maxLength diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/List.cs index 8933b19e210..34aa730e796 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/List.cs @@ -35,18 +35,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _123list. - public List(string _123list = default(string)) + /// var123List. + public List(string var123List = default(string)) { - this._123List = _123list; + this.var123List = var123List; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _123List + /// Gets or Sets var123List /// [DataMember(Name = "123-list", EmitDefaultValue = false)] - public string _123List { get; set; } + public string var123List { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class List {\n"); - sb.Append(" _123List: ").Append(_123List).Append("\n"); + sb.Append(" var123List: ").Append(var123List).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._123List != null) + if (this.var123List != null) { - hashCode = (hashCode * 59) + this._123List.GetHashCode(); + hashCode = (hashCode * 59) + this.var123List.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/Model200Response.cs index 72383f9de33..6e5acdf9e69 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/Model200Response.cs @@ -36,11 +36,11 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// name. - /// _class. - public Model200Response(int name = default(int), string _class = default(string)) + /// varClass. + public Model200Response(int name = default(int), string varClass = default(string)) { this.Name = name; - this.Class = _class; + this.VarClass = varClass; this.AdditionalProperties = new Dictionary(); } @@ -51,10 +51,10 @@ namespace Org.OpenAPITools.Model public int Name { get; set; } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name = "class", EmitDefaultValue = false)] - public string Class { get; set; } + public string VarClass { get; set; } /// /// Gets or Sets additional properties @@ -71,7 +71,7 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class Model200Response {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -116,9 +116,9 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + this.Name.GetHashCode(); - if (this.Class != null) + if (this.VarClass != null) { - hashCode = (hashCode * 59) + this.Class.GetHashCode(); + hashCode = (hashCode * 59) + this.VarClass.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/ModelClient.cs index d9a94592395..c5433e622d9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/ModelClient.cs @@ -29,24 +29,24 @@ namespace Org.OpenAPITools.Model /// /// ModelClient /// - [DataContract(Name = "_Client")] + [DataContract(Name = "varClient")] public partial class ModelClient : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// - /// _client. - public ModelClient(string _client = default(string)) + /// varClient. + public ModelClient(string varClient = default(string)) { - this._Client = _client; + this.varClient = varClient; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _Client + /// Gets or Sets varClient /// [DataMember(Name = "client", EmitDefaultValue = false)] - public string _Client { get; set; } + public string varClient { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ModelClient {\n"); - sb.Append(" _Client: ").Append(_Client).Append("\n"); + sb.Append(" varClient: ").Append(varClient).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._Client != null) + if (this.varClient != null) { - hashCode = (hashCode * 59) + this._Client.GetHashCode(); + hashCode = (hashCode * 59) + this.varClient.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/Name.cs index 515b498cb5b..8354a3c82bd 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/Name.cs @@ -43,20 +43,20 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// name (required). + /// varName (required). /// property. - public Name(int name = default(int), string property = default(string)) + public Name(int varName = default(int), string property = default(string)) { - this._Name = name; + this.VarName = varName; this.Property = property; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _Name + /// Gets or Sets VarName /// [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] - public int _Name { get; set; } + public int VarName { get; set; } /// /// Gets or Sets SnakeCase @@ -79,16 +79,16 @@ namespace Org.OpenAPITools.Model public string Property { get; set; } /// - /// Gets or Sets _123Number + /// Gets or Sets var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int _123Number { get; private set; } + public int var123Number { get; private set; } /// - /// Returns false as _123Number should not be serialized given that it's read-only. + /// Returns false as var123Number should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerialize_123Number() + public bool ShouldSerializevar123Number() { return false; } @@ -106,10 +106,10 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Name {\n"); - sb.Append(" _Name: ").Append(_Name).Append("\n"); + sb.Append(" VarName: ").Append(VarName).Append("\n"); sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n"); sb.Append(" Property: ").Append(Property).Append("\n"); - sb.Append(" _123Number: ").Append(_123Number).Append("\n"); + sb.Append(" var123Number: ").Append(var123Number).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -153,13 +153,13 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this._Name.GetHashCode(); + hashCode = (hashCode * 59) + this.VarName.GetHashCode(); hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this._123Number.GetHashCode(); + hashCode = (hashCode * 59) + this.var123Number.GetHashCode(); if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/Return.cs index c6edbea2f71..aaab21dc58c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/Return.cs @@ -35,18 +35,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _return. - public Return(int _return = default(int)) + /// varReturn. + public Return(int varReturn = default(int)) { - this._Return = _return; + this.VarReturn = varReturn; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _Return + /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int _Return { get; set; } + public int VarReturn { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Return {\n"); - sb.Append(" _Return: ").Append(_Return).Append("\n"); + sb.Append(" VarReturn: ").Append(VarReturn).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,7 +106,7 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this._Return.GetHashCode(); + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/SpecialModelName.cs index fd741fa9e1a..ca5adcd816b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net48/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -36,11 +36,11 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// specialPropertyName. - /// specialModelName. - public SpecialModelName(long specialPropertyName = default(long), string specialModelName = default(string)) + /// varSpecialModelName. + public SpecialModelName(long specialPropertyName = default(long), string varSpecialModelName = default(string)) { this.SpecialPropertyName = specialPropertyName; - this._SpecialModelName = specialModelName; + this.VarSpecialModelName = varSpecialModelName; this.AdditionalProperties = new Dictionary(); } @@ -51,10 +51,10 @@ namespace Org.OpenAPITools.Model public long SpecialPropertyName { get; set; } /// - /// Gets or Sets _SpecialModelName + /// Gets or Sets VarSpecialModelName /// [DataMember(Name = "_special_model.name_", EmitDefaultValue = false)] - public string _SpecialModelName { get; set; } + public string VarSpecialModelName { get; set; } /// /// Gets or Sets additional properties @@ -71,7 +71,7 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class SpecialModelName {\n"); sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n"); - sb.Append(" _SpecialModelName: ").Append(_SpecialModelName).Append("\n"); + sb.Append(" VarSpecialModelName: ").Append(VarSpecialModelName).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -116,9 +116,9 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); - if (this._SpecialModelName != null) + if (this.VarSpecialModelName != null) { - hashCode = (hashCode * 59) + this._SpecialModelName.GetHashCode(); + hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ClassModel.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ClassModel.md index f39982657c8..c90a44a6f84 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ClassModel.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ClassModel.md @@ -5,7 +5,7 @@ Model for testing model with \"_class\" property Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FakeApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FakeApi.md index bf7632d7f07..ccc390872ec 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FakeApi.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FakeApi.md @@ -809,7 +809,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string? _string = null, System.IO.Stream? binary = null, DateTime? date = null, DateTime? dateTime = null, string? password = null, string? callback = null) +> void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string? varString = null, System.IO.Stream? binary = null, DateTime? date = null, DateTime? dateTime = null, string? password = null, string? callback = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -837,14 +837,14 @@ namespace Example var apiInstance = new FakeApi(config); var number = 8.14D; // decimal | None - var _double = 1.2D; // double | None + var varDouble = 1.2D; // double | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None - var _byte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None + var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var integer = 56; // int? | None (optional) var int32 = 56; // int? | None (optional) var int64 = 789L; // long? | None (optional) - var _float = 3.4F; // float? | None (optional) - var _string = "_string_example"; // string? | None (optional) + var varFloat = 3.4F; // float? | None (optional) + var varString = "string_example"; // string? | None (optional) var binary = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream? | None (optional) var date = DateTime.Parse("2013-10-20"); // DateTime? | None (optional) var dateTime = DateTime.Parse(""2010-02-01T10:20:10.111110+01:00""); // DateTime? | None (optional) (default to "2010-02-01T10:20:10.111110+01:00") @@ -854,7 +854,7 @@ namespace Example try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + apiInstance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } catch (ApiException e) { @@ -874,7 +874,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + apiInstance.TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } catch (ApiException e) { @@ -889,14 +889,14 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **number** | **decimal** | None | | -| **_double** | **double** | None | | +| **varDouble** | **double** | None | | | **patternWithoutDelimiter** | **string** | None | | -| **_byte** | **byte[]** | None | | +| **varByte** | **byte[]** | None | | | **integer** | **int?** | None | [optional] | | **int32** | **int?** | None | [optional] | | **int64** | **long?** | None | [optional] | -| **_float** | **float?** | None | [optional] | -| **_string** | **string?** | None | [optional] | +| **varFloat** | **float?** | None | [optional] | +| **varString** | **string?** | None | [optional] | | **binary** | **System.IO.Stream?****System.IO.Stream?** | None | [optional] | | **date** | **DateTime?** | None | [optional] | | **dateTime** | **DateTime?** | None | [optional] [default to "2010-02-01T10:20:10.111110+01:00"] | diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FooGetDefaultResponse.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FooGetDefaultResponse.md index dde9b9729b9..9ebee827949 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FooGetDefaultResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] +**VarString** | [**Foo**](Foo.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FormatTest.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FormatTest.md index c2144b5e3cf..2d28c89fa30 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FormatTest.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/FormatTest.md @@ -10,11 +10,11 @@ Name | Type | Description | Notes **Int64** | **long** | | [optional] **UnsignedLong** | **ulong** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] -**String** | **string** | | [optional] -**Byte** | **byte[]** | | +**VarFloat** | **float** | | [optional] +**VarDouble** | **double** | | [optional] +**VarDecimal** | **decimal** | | [optional] +**VarString** | **string** | | [optional] +**VarByte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] **Date** | **DateTime** | | **DateTime** | **DateTime** | | [optional] diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/List.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/List.md index 2862c7e5321..ef729179265 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/List.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/List.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_123List** | **string** | | [optional] +**var123List** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Model200Response.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Model200Response.md index 31f4d86fe43..4b6338af424 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Model200Response.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Model200Response.md @@ -6,7 +6,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **int** | | [optional] -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ModelClient.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ModelClient.md index c29a6287433..45f4e41644f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ModelClient.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/ModelClient.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Client** | **string** | | [optional] +**varClient** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Name.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Name.md index 692af702b5b..a5ee6ef12f9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Name.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Name.md @@ -5,10 +5,10 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Name** | **int** | | +**VarName** | **int** | | **SnakeCase** | **int** | | [optional] [readonly] **Property** | **string** | | [optional] -**_123Number** | **int** | | [optional] [readonly] +**var123Number** | **int** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Return.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Return.md index 2c7c97e09da..052ac919006 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Return.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Return** | **int** | | [optional] +**VarReturn** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/SpecialModelName.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/SpecialModelName.md index 648179799e1..7f8ffca34fa 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/SpecialModelName.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SpecialPropertyName** | **long** | | [optional] -**_SpecialModelName** | **string** | | [optional] +**VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeApi.cs index 16240126ca9..f0a96c2970a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeApi.cs @@ -233,14 +233,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// - void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string? _string = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0); + void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -258,14 +258,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string? _string = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0); + ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0); /// /// To test enum parameters /// @@ -659,14 +659,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -675,7 +675,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string? _string = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -685,14 +685,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -701,7 +701,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string? _string = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// To test enum parameters /// @@ -2228,14 +2228,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2243,9 +2243,9 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// - public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string? _string = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0) + public void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0) { - TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } /// @@ -2253,14 +2253,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2268,7 +2268,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string? _string = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2276,10 +2276,10 @@ namespace Org.OpenAPITools.Api throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); } - // verify the required parameter '_byte' is set - if (_byte == null) + // verify the required parameter 'varByte' is set + if (varByte == null) { - throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); } Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2317,17 +2317,17 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.FormParameters.Add("int64", Org.OpenAPITools.Client.ClientUtils.ParameterToString(int64)); // form parameter } localVarRequestOptions.FormParameters.Add("number", Org.OpenAPITools.Client.ClientUtils.ParameterToString(number)); // form parameter - if (_float != null) + if (varFloat != null) { - localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_float)); // form parameter + localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varFloat)); // form parameter } - localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_double)); // form parameter - if (_string != null) + localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varDouble)); // form parameter + if (varString != null) { - localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_string)); // form parameter + localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varString)); // form parameter } localVarRequestOptions.FormParameters.Add("pattern_without_delimiter", Org.OpenAPITools.Client.ClientUtils.ParameterToString(patternWithoutDelimiter)); // form parameter - localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter + localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varByte)); // form parameter if (binary != null) { localVarRequestOptions.FileParameters.Add("binary", binary); @@ -2378,14 +2378,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2394,9 +2394,9 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string? _string = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); + await TestEndpointParametersWithHttpInfoAsync(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -2404,14 +2404,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2420,7 +2420,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string? _string = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2428,10 +2428,10 @@ namespace Org.OpenAPITools.Api throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); } - // verify the required parameter '_byte' is set - if (_byte == null) + // verify the required parameter 'varByte' is set + if (varByte == null) { - throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); } @@ -2470,17 +2470,17 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.FormParameters.Add("int64", Org.OpenAPITools.Client.ClientUtils.ParameterToString(int64)); // form parameter } localVarRequestOptions.FormParameters.Add("number", Org.OpenAPITools.Client.ClientUtils.ParameterToString(number)); // form parameter - if (_float != null) + if (varFloat != null) { - localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_float)); // form parameter + localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varFloat)); // form parameter } - localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_double)); // form parameter - if (_string != null) + localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varDouble)); // form parameter + if (varString != null) { - localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_string)); // form parameter + localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varString)); // form parameter } localVarRequestOptions.FormParameters.Add("pattern_without_delimiter", Org.OpenAPITools.Client.ClientUtils.ParameterToString(patternWithoutDelimiter)); // form parameter - localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter + localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varByte)); // form parameter if (binary != null) { localVarRequestOptions.FileParameters.Add("binary", binary); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/ClassModel.cs index 59c85f3e79b..19aedc1734b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/ClassModel.cs @@ -35,18 +35,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _class. - public ClassModel(string _class = default(string)) + /// varClass. + public ClassModel(string varClass = default(string)) { - this.Class = _class; + this.VarClass = varClass; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name = "_class", EmitDefaultValue = false)] - public string Class { get; set; } + public string VarClass { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ClassModel {\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Class != null) + if (this.VarClass != null) { - hashCode = (hashCode * 59) + this.Class.GetHashCode(); + hashCode = (hashCode * 59) + this.VarClass.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 70554062020..55cd8eb7482 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -35,18 +35,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _string. - public FooGetDefaultResponse(Foo _string = default(Foo)) + /// varString. + public FooGetDefaultResponse(Foo varString = default(Foo)) { - this.String = _string; + this.VarString = varString; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String { get; set; } + public Foo VarString { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class FooGetDefaultResponse {\n"); - sb.Append(" String: ").Append(String).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.String != null) + if (this.VarString != null) { - hashCode = (hashCode * 59) + this.String.GetHashCode(); + hashCode = (hashCode * 59) + this.VarString.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/FormatTest.cs index 5d1f524948f..99b26c4bf7b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/FormatTest.cs @@ -49,11 +49,11 @@ namespace Org.OpenAPITools.Model /// int64. /// unsignedLong. /// number (required). - /// _float. - /// _double. - /// _decimal. - /// _string. - /// _byte (required). + /// varFloat. + /// varDouble. + /// varDecimal. + /// varString. + /// varByte (required). /// binary. /// date (required). /// dateTime. @@ -62,15 +62,15 @@ namespace Org.OpenAPITools.Model /// A string that is a 10 digit number. Can have leading zeros.. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. /// None. - public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) + public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) { this.Number = number; - // to ensure "_byte" is required (not null) - if (_byte == null) + // to ensure "varByte" is required (not null) + if (varByte == null) { - throw new ArgumentNullException("_byte is a required property for FormatTest and cannot be null"); + throw new ArgumentNullException("varByte is a required property for FormatTest and cannot be null"); } - this.Byte = _byte; + this.VarByte = varByte; this.Date = date; // to ensure "password" is required (not null) if (password == null) @@ -83,10 +83,10 @@ namespace Org.OpenAPITools.Model this.UnsignedInteger = unsignedInteger; this.Int64 = int64; this.UnsignedLong = unsignedLong; - this.Float = _float; - this.Double = _double; - this.Decimal = _decimal; - this.String = _string; + this.VarFloat = varFloat; + this.VarDouble = varDouble; + this.VarDecimal = varDecimal; + this.VarString = varString; this.Binary = binary; this.DateTime = dateTime; this.Uuid = uuid; @@ -133,34 +133,34 @@ namespace Org.OpenAPITools.Model public decimal Number { get; set; } /// - /// Gets or Sets Float + /// Gets or Sets VarFloat /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float VarFloat { get; set; } /// - /// Gets or Sets Double + /// Gets or Sets VarDouble /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double VarDouble { get; set; } /// - /// Gets or Sets Decimal + /// Gets or Sets VarDecimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal VarDecimal { get; set; } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name = "string", EmitDefaultValue = false)] - public string String { get; set; } + public string VarString { get; set; } /// - /// Gets or Sets Byte + /// Gets or Sets VarByte /// [DataMember(Name = "byte", IsRequired = true, EmitDefaultValue = true)] - public byte[] Byte { get; set; } + public byte[] VarByte { get; set; } /// /// Gets or Sets Binary @@ -237,11 +237,11 @@ namespace Org.OpenAPITools.Model sb.Append(" Int64: ").Append(Int64).Append("\n"); sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n"); sb.Append(" Number: ").Append(Number).Append("\n"); - sb.Append(" Float: ").Append(Float).Append("\n"); - sb.Append(" Double: ").Append(Double).Append("\n"); - sb.Append(" Decimal: ").Append(Decimal).Append("\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" Byte: ").Append(Byte).Append("\n"); + sb.Append(" VarFloat: ").Append(VarFloat).Append("\n"); + sb.Append(" VarDouble: ").Append(VarDouble).Append("\n"); + sb.Append(" VarDecimal: ").Append(VarDecimal).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); + sb.Append(" VarByte: ").Append(VarByte).Append("\n"); sb.Append(" Binary: ").Append(Binary).Append("\n"); sb.Append(" Date: ").Append(Date).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n"); @@ -299,16 +299,16 @@ namespace Org.OpenAPITools.Model hashCode = (hashCode * 59) + this.Int64.GetHashCode(); hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); - if (this.String != null) + hashCode = (hashCode * 59) + this.VarFloat.GetHashCode(); + hashCode = (hashCode * 59) + this.VarDouble.GetHashCode(); + hashCode = (hashCode * 59) + this.VarDecimal.GetHashCode(); + if (this.VarString != null) { - hashCode = (hashCode * 59) + this.String.GetHashCode(); + hashCode = (hashCode * 59) + this.VarString.GetHashCode(); } - if (this.Byte != null) + if (this.VarByte != null) { - hashCode = (hashCode * 59) + this.Byte.GetHashCode(); + hashCode = (hashCode * 59) + this.VarByte.GetHashCode(); } if (this.Binary != null) { @@ -405,35 +405,35 @@ namespace Org.OpenAPITools.Model yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // VarFloat (float) maximum + if (this.VarFloat > (float)987.6) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value less than or equal to 987.6.", new [] { "VarFloat" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // VarFloat (float) minimum + if (this.VarFloat < (float)54.3) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value greater than or equal to 54.3.", new [] { "VarFloat" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // VarDouble (double) maximum + if (this.VarDouble > (double)123.4) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value less than or equal to 123.4.", new [] { "VarDouble" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // VarDouble (double) minimum + if (this.VarDouble < (double)67.8) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value greater than or equal to 67.8.", new [] { "VarDouble" }); } - // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (false == regexString.Match(this.String).Success) + // VarString (string) pattern + Regex regexVarString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (false == regexVarString.Match(this.VarString).Success) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarString, must match a pattern of " + regexVarString, new [] { "VarString" }); } // Password (string) maxLength diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/List.cs index 8933b19e210..34aa730e796 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/List.cs @@ -35,18 +35,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _123list. - public List(string _123list = default(string)) + /// var123List. + public List(string var123List = default(string)) { - this._123List = _123list; + this.var123List = var123List; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _123List + /// Gets or Sets var123List /// [DataMember(Name = "123-list", EmitDefaultValue = false)] - public string _123List { get; set; } + public string var123List { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class List {\n"); - sb.Append(" _123List: ").Append(_123List).Append("\n"); + sb.Append(" var123List: ").Append(var123List).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._123List != null) + if (this.var123List != null) { - hashCode = (hashCode * 59) + this._123List.GetHashCode(); + hashCode = (hashCode * 59) + this.var123List.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Model200Response.cs index 72383f9de33..6e5acdf9e69 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Model200Response.cs @@ -36,11 +36,11 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// name. - /// _class. - public Model200Response(int name = default(int), string _class = default(string)) + /// varClass. + public Model200Response(int name = default(int), string varClass = default(string)) { this.Name = name; - this.Class = _class; + this.VarClass = varClass; this.AdditionalProperties = new Dictionary(); } @@ -51,10 +51,10 @@ namespace Org.OpenAPITools.Model public int Name { get; set; } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name = "class", EmitDefaultValue = false)] - public string Class { get; set; } + public string VarClass { get; set; } /// /// Gets or Sets additional properties @@ -71,7 +71,7 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class Model200Response {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -116,9 +116,9 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + this.Name.GetHashCode(); - if (this.Class != null) + if (this.VarClass != null) { - hashCode = (hashCode * 59) + this.Class.GetHashCode(); + hashCode = (hashCode * 59) + this.VarClass.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/ModelClient.cs index d9a94592395..c5433e622d9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/ModelClient.cs @@ -29,24 +29,24 @@ namespace Org.OpenAPITools.Model /// /// ModelClient /// - [DataContract(Name = "_Client")] + [DataContract(Name = "varClient")] public partial class ModelClient : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// - /// _client. - public ModelClient(string _client = default(string)) + /// varClient. + public ModelClient(string varClient = default(string)) { - this._Client = _client; + this.varClient = varClient; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _Client + /// Gets or Sets varClient /// [DataMember(Name = "client", EmitDefaultValue = false)] - public string _Client { get; set; } + public string varClient { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ModelClient {\n"); - sb.Append(" _Client: ").Append(_Client).Append("\n"); + sb.Append(" varClient: ").Append(varClient).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._Client != null) + if (this.varClient != null) { - hashCode = (hashCode * 59) + this._Client.GetHashCode(); + hashCode = (hashCode * 59) + this.varClient.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Name.cs index 515b498cb5b..8354a3c82bd 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Name.cs @@ -43,20 +43,20 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// name (required). + /// varName (required). /// property. - public Name(int name = default(int), string property = default(string)) + public Name(int varName = default(int), string property = default(string)) { - this._Name = name; + this.VarName = varName; this.Property = property; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _Name + /// Gets or Sets VarName /// [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] - public int _Name { get; set; } + public int VarName { get; set; } /// /// Gets or Sets SnakeCase @@ -79,16 +79,16 @@ namespace Org.OpenAPITools.Model public string Property { get; set; } /// - /// Gets or Sets _123Number + /// Gets or Sets var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int _123Number { get; private set; } + public int var123Number { get; private set; } /// - /// Returns false as _123Number should not be serialized given that it's read-only. + /// Returns false as var123Number should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerialize_123Number() + public bool ShouldSerializevar123Number() { return false; } @@ -106,10 +106,10 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Name {\n"); - sb.Append(" _Name: ").Append(_Name).Append("\n"); + sb.Append(" VarName: ").Append(VarName).Append("\n"); sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n"); sb.Append(" Property: ").Append(Property).Append("\n"); - sb.Append(" _123Number: ").Append(_123Number).Append("\n"); + sb.Append(" var123Number: ").Append(var123Number).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -153,13 +153,13 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this._Name.GetHashCode(); + hashCode = (hashCode * 59) + this.VarName.GetHashCode(); hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this._123Number.GetHashCode(); + hashCode = (hashCode * 59) + this.var123Number.GetHashCode(); if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Return.cs index c6edbea2f71..aaab21dc58c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Return.cs @@ -35,18 +35,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _return. - public Return(int _return = default(int)) + /// varReturn. + public Return(int varReturn = default(int)) { - this._Return = _return; + this.VarReturn = varReturn; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _Return + /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int _Return { get; set; } + public int VarReturn { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Return {\n"); - sb.Append(" _Return: ").Append(_Return).Append("\n"); + sb.Append(" VarReturn: ").Append(VarReturn).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,7 +106,7 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this._Return.GetHashCode(); + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/SpecialModelName.cs index fd741fa9e1a..ca5adcd816b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -36,11 +36,11 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// specialPropertyName. - /// specialModelName. - public SpecialModelName(long specialPropertyName = default(long), string specialModelName = default(string)) + /// varSpecialModelName. + public SpecialModelName(long specialPropertyName = default(long), string varSpecialModelName = default(string)) { this.SpecialPropertyName = specialPropertyName; - this._SpecialModelName = specialModelName; + this.VarSpecialModelName = varSpecialModelName; this.AdditionalProperties = new Dictionary(); } @@ -51,10 +51,10 @@ namespace Org.OpenAPITools.Model public long SpecialPropertyName { get; set; } /// - /// Gets or Sets _SpecialModelName + /// Gets or Sets VarSpecialModelName /// [DataMember(Name = "_special_model.name_", EmitDefaultValue = false)] - public string _SpecialModelName { get; set; } + public string VarSpecialModelName { get; set; } /// /// Gets or Sets additional properties @@ -71,7 +71,7 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class SpecialModelName {\n"); sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n"); - sb.Append(" _SpecialModelName: ").Append(_SpecialModelName).Append("\n"); + sb.Append(" VarSpecialModelName: ").Append(VarSpecialModelName).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -116,9 +116,9 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); - if (this._SpecialModelName != null) + if (this.VarSpecialModelName != null) { - hashCode = (hashCode * 59) + this._SpecialModelName.GetHashCode(); + hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/ClassModel.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/ClassModel.md index f39982657c8..c90a44a6f84 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/ClassModel.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/ClassModel.md @@ -5,7 +5,7 @@ Model for testing model with \"_class\" property Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/FakeApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/FakeApi.md index c5ed3eb8340..7bdf5246aac 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/FakeApi.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/FakeApi.md @@ -809,7 +809,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) +> void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -837,14 +837,14 @@ namespace Example var apiInstance = new FakeApi(config); var number = 8.14D; // decimal | None - var _double = 1.2D; // double | None + var varDouble = 1.2D; // double | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None - var _byte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None + var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var integer = 56; // int? | None (optional) var int32 = 56; // int? | None (optional) var int64 = 789L; // long? | None (optional) - var _float = 3.4F; // float? | None (optional) - var _string = "_string_example"; // string | None (optional) + var varFloat = 3.4F; // float? | None (optional) + var varString = "string_example"; // string | None (optional) var binary = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | None (optional) var date = DateTime.Parse("2013-10-20"); // DateTime? | None (optional) var dateTime = DateTime.Parse(""2010-02-01T10:20:10.111110+01:00""); // DateTime? | None (optional) (default to "2010-02-01T10:20:10.111110+01:00") @@ -854,7 +854,7 @@ namespace Example try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + apiInstance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } catch (ApiException e) { @@ -874,7 +874,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + apiInstance.TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } catch (ApiException e) { @@ -889,14 +889,14 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **number** | **decimal** | None | | -| **_double** | **double** | None | | +| **varDouble** | **double** | None | | | **patternWithoutDelimiter** | **string** | None | | -| **_byte** | **byte[]** | None | | +| **varByte** | **byte[]** | None | | | **integer** | **int?** | None | [optional] | | **int32** | **int?** | None | [optional] | | **int64** | **long?** | None | [optional] | -| **_float** | **float?** | None | [optional] | -| **_string** | **string** | None | [optional] | +| **varFloat** | **float?** | None | [optional] | +| **varString** | **string** | None | [optional] | | **binary** | **System.IO.Stream****System.IO.Stream** | None | [optional] | | **date** | **DateTime?** | None | [optional] | | **dateTime** | **DateTime?** | None | [optional] [default to "2010-02-01T10:20:10.111110+01:00"] | diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/FooGetDefaultResponse.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/FooGetDefaultResponse.md index dde9b9729b9..9ebee827949 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/FooGetDefaultResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] +**VarString** | [**Foo**](Foo.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/FormatTest.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/FormatTest.md index c2144b5e3cf..2d28c89fa30 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/FormatTest.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/FormatTest.md @@ -10,11 +10,11 @@ Name | Type | Description | Notes **Int64** | **long** | | [optional] **UnsignedLong** | **ulong** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] -**String** | **string** | | [optional] -**Byte** | **byte[]** | | +**VarFloat** | **float** | | [optional] +**VarDouble** | **double** | | [optional] +**VarDecimal** | **decimal** | | [optional] +**VarString** | **string** | | [optional] +**VarByte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] **Date** | **DateTime** | | **DateTime** | **DateTime** | | [optional] diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/List.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/List.md index 2862c7e5321..ef729179265 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/List.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/List.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_123List** | **string** | | [optional] +**var123List** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/Model200Response.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/Model200Response.md index 31f4d86fe43..4b6338af424 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/Model200Response.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/Model200Response.md @@ -6,7 +6,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **int** | | [optional] -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/ModelClient.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/ModelClient.md index c29a6287433..45f4e41644f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/ModelClient.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/ModelClient.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Client** | **string** | | [optional] +**varClient** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/Name.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/Name.md index 692af702b5b..a5ee6ef12f9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/Name.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/Name.md @@ -5,10 +5,10 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Name** | **int** | | +**VarName** | **int** | | **SnakeCase** | **int** | | [optional] [readonly] **Property** | **string** | | [optional] -**_123Number** | **int** | | [optional] [readonly] +**var123Number** | **int** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/Return.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/Return.md index 2c7c97e09da..052ac919006 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/Return.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Return** | **int** | | [optional] +**VarReturn** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/SpecialModelName.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/SpecialModelName.md index 648179799e1..7f8ffca34fa 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/docs/SpecialModelName.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SpecialPropertyName** | **long** | | [optional] -**_SpecialModelName** | **string** | | [optional] +**VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Api/FakeApi.cs index c09437cad92..04d4fe78633 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Api/FakeApi.cs @@ -214,21 +214,21 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) /// - void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -238,21 +238,21 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); /// /// To test enum parameters /// @@ -610,14 +610,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -625,7 +625,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -635,14 +635,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -650,7 +650,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// To test enum parameters /// @@ -2049,23 +2049,23 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) /// - public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) { - TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } /// @@ -2073,29 +2073,29 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); - // verify the required parameter '_byte' is set - if (_byte == null) - throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + // verify the required parameter 'varByte' is set + if (varByte == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2126,17 +2126,17 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.FormParameters.Add("int64", Org.OpenAPITools.Client.ClientUtils.ParameterToString(int64)); // form parameter } localVarRequestOptions.FormParameters.Add("number", Org.OpenAPITools.Client.ClientUtils.ParameterToString(number)); // form parameter - if (_float != null) + if (varFloat != null) { - localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_float)); // form parameter + localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varFloat)); // form parameter } - localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_double)); // form parameter - if (_string != null) + localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varDouble)); // form parameter + if (varString != null) { - localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_string)); // form parameter + localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varString)); // form parameter } localVarRequestOptions.FormParameters.Add("pattern_without_delimiter", Org.OpenAPITools.Client.ClientUtils.ParameterToString(patternWithoutDelimiter)); // form parameter - localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter + localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varByte)); // form parameter if (binary != null) { } @@ -2181,14 +2181,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2196,9 +2196,9 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - var task = TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, cancellationToken); + var task = TestEndpointParametersWithHttpInfoAsync(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL await task.ConfigureAwait(false); #else @@ -2211,14 +2211,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2226,15 +2226,15 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); - // verify the required parameter '_byte' is set - if (_byte == null) - throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + // verify the required parameter 'varByte' is set + if (varByte == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2267,17 +2267,17 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.FormParameters.Add("int64", Org.OpenAPITools.Client.ClientUtils.ParameterToString(int64)); // form parameter } localVarRequestOptions.FormParameters.Add("number", Org.OpenAPITools.Client.ClientUtils.ParameterToString(number)); // form parameter - if (_float != null) + if (varFloat != null) { - localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_float)); // form parameter + localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varFloat)); // form parameter } - localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_double)); // form parameter - if (_string != null) + localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varDouble)); // form parameter + if (varString != null) { - localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_string)); // form parameter + localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varString)); // form parameter } localVarRequestOptions.FormParameters.Add("pattern_without_delimiter", Org.OpenAPITools.Client.ClientUtils.ParameterToString(patternWithoutDelimiter)); // form parameter - localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter + localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varByte)); // form parameter if (binary != null) { } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/ClassModel.cs index 2f97843fe7d..d285902263f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/ClassModel.cs @@ -33,17 +33,17 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _class. - public ClassModel(string _class = default(string)) + /// varClass. + public ClassModel(string varClass = default(string)) { - this.Class = _class; + this.VarClass = varClass; } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name = "_class", EmitDefaultValue = false)] - public string Class { get; set; } + public string VarClass { get; set; } /// /// Returns the string presentation of the object @@ -53,7 +53,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ClassModel {\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -90,9 +90,9 @@ namespace Org.OpenAPITools.Model } return ( - this.Class == input.Class || - (this.Class != null && - this.Class.Equals(input.Class)) + this.VarClass == input.VarClass || + (this.VarClass != null && + this.VarClass.Equals(input.VarClass)) ); } @@ -105,9 +105,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Class != null) + if (this.VarClass != null) { - hashCode = (hashCode * 59) + this.Class.GetHashCode(); + hashCode = (hashCode * 59) + this.VarClass.GetHashCode(); } return hashCode; } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 31a7f3e21ff..3ff0307c7b5 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -33,17 +33,17 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _string. - public FooGetDefaultResponse(Foo _string = default(Foo)) + /// varString. + public FooGetDefaultResponse(Foo varString = default(Foo)) { - this.String = _string; + this.VarString = varString; } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String { get; set; } + public Foo VarString { get; set; } /// /// Returns the string presentation of the object @@ -53,7 +53,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class FooGetDefaultResponse {\n"); - sb.Append(" String: ").Append(String).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -90,9 +90,9 @@ namespace Org.OpenAPITools.Model } return ( - this.String == input.String || - (this.String != null && - this.String.Equals(input.String)) + this.VarString == input.VarString || + (this.VarString != null && + this.VarString.Equals(input.VarString)) ); } @@ -105,9 +105,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.String != null) + if (this.VarString != null) { - hashCode = (hashCode * 59) + this.String.GetHashCode(); + hashCode = (hashCode * 59) + this.VarString.GetHashCode(); } return hashCode; } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/FormatTest.cs index 068efc61314..8c3e615c68d 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/FormatTest.cs @@ -44,11 +44,11 @@ namespace Org.OpenAPITools.Model /// int64. /// unsignedLong. /// number (required). - /// _float. - /// _double. - /// _decimal. - /// _string. - /// _byte (required). + /// varFloat. + /// varDouble. + /// varDecimal. + /// varString. + /// varByte (required). /// binary. /// date (required). /// dateTime. @@ -57,15 +57,15 @@ namespace Org.OpenAPITools.Model /// A string that is a 10 digit number. Can have leading zeros.. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. /// None. - public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) + public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) { this.Number = number; - // to ensure "_byte" is required (not null) - if (_byte == null) + // to ensure "varByte" is required (not null) + if (varByte == null) { - throw new ArgumentNullException("_byte is a required property for FormatTest and cannot be null"); + throw new ArgumentNullException("varByte is a required property for FormatTest and cannot be null"); } - this.Byte = _byte; + this.VarByte = varByte; this.Date = date; // to ensure "password" is required (not null) if (password == null) @@ -78,10 +78,10 @@ namespace Org.OpenAPITools.Model this.UnsignedInteger = unsignedInteger; this.Int64 = int64; this.UnsignedLong = unsignedLong; - this.Float = _float; - this.Double = _double; - this.Decimal = _decimal; - this.String = _string; + this.VarFloat = varFloat; + this.VarDouble = varDouble; + this.VarDecimal = varDecimal; + this.VarString = varString; this.Binary = binary; this.DateTime = dateTime; this.Uuid = uuid; @@ -127,34 +127,34 @@ namespace Org.OpenAPITools.Model public decimal Number { get; set; } /// - /// Gets or Sets Float + /// Gets or Sets VarFloat /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float VarFloat { get; set; } /// - /// Gets or Sets Double + /// Gets or Sets VarDouble /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double VarDouble { get; set; } /// - /// Gets or Sets Decimal + /// Gets or Sets VarDecimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal VarDecimal { get; set; } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name = "string", EmitDefaultValue = false)] - public string String { get; set; } + public string VarString { get; set; } /// - /// Gets or Sets Byte + /// Gets or Sets VarByte /// [DataMember(Name = "byte", IsRequired = true, EmitDefaultValue = true)] - public byte[] Byte { get; set; } + public byte[] VarByte { get; set; } /// /// Gets or Sets Binary @@ -225,11 +225,11 @@ namespace Org.OpenAPITools.Model sb.Append(" Int64: ").Append(Int64).Append("\n"); sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n"); sb.Append(" Number: ").Append(Number).Append("\n"); - sb.Append(" Float: ").Append(Float).Append("\n"); - sb.Append(" Double: ").Append(Double).Append("\n"); - sb.Append(" Decimal: ").Append(Decimal).Append("\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" Byte: ").Append(Byte).Append("\n"); + sb.Append(" VarFloat: ").Append(VarFloat).Append("\n"); + sb.Append(" VarDouble: ").Append(VarDouble).Append("\n"); + sb.Append(" VarDecimal: ").Append(VarDecimal).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); + sb.Append(" VarByte: ").Append(VarByte).Append("\n"); sb.Append(" Binary: ").Append(Binary).Append("\n"); sb.Append(" Date: ").Append(Date).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n"); @@ -298,26 +298,26 @@ namespace Org.OpenAPITools.Model this.Number.Equals(input.Number) ) && ( - this.Float == input.Float || - this.Float.Equals(input.Float) + this.VarFloat == input.VarFloat || + this.VarFloat.Equals(input.VarFloat) ) && ( - this.Double == input.Double || - this.Double.Equals(input.Double) + this.VarDouble == input.VarDouble || + this.VarDouble.Equals(input.VarDouble) ) && ( - this.Decimal == input.Decimal || - this.Decimal.Equals(input.Decimal) + this.VarDecimal == input.VarDecimal || + this.VarDecimal.Equals(input.VarDecimal) ) && ( - this.String == input.String || - (this.String != null && - this.String.Equals(input.String)) + this.VarString == input.VarString || + (this.VarString != null && + this.VarString.Equals(input.VarString)) ) && ( - this.Byte == input.Byte || - (this.Byte != null && - this.Byte.Equals(input.Byte)) + this.VarByte == input.VarByte || + (this.VarByte != null && + this.VarByte.Equals(input.VarByte)) ) && ( this.Binary == input.Binary || @@ -376,16 +376,16 @@ namespace Org.OpenAPITools.Model hashCode = (hashCode * 59) + this.Int64.GetHashCode(); hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); - if (this.String != null) + hashCode = (hashCode * 59) + this.VarFloat.GetHashCode(); + hashCode = (hashCode * 59) + this.VarDouble.GetHashCode(); + hashCode = (hashCode * 59) + this.VarDecimal.GetHashCode(); + if (this.VarString != null) { - hashCode = (hashCode * 59) + this.String.GetHashCode(); + hashCode = (hashCode * 59) + this.VarString.GetHashCode(); } - if (this.Byte != null) + if (this.VarByte != null) { - hashCode = (hashCode * 59) + this.Byte.GetHashCode(); + hashCode = (hashCode * 59) + this.VarByte.GetHashCode(); } if (this.Binary != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/List.cs index f658a74fe2a..5601468bf87 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/List.cs @@ -33,17 +33,17 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _123list. - public List(string _123list = default(string)) + /// var123List. + public List(string var123List = default(string)) { - this._123List = _123list; + this.var123List = var123List; } /// - /// Gets or Sets _123List + /// Gets or Sets var123List /// [DataMember(Name = "123-list", EmitDefaultValue = false)] - public string _123List { get; set; } + public string var123List { get; set; } /// /// Returns the string presentation of the object @@ -53,7 +53,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class List {\n"); - sb.Append(" _123List: ").Append(_123List).Append("\n"); + sb.Append(" var123List: ").Append(var123List).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -90,9 +90,9 @@ namespace Org.OpenAPITools.Model } return ( - this._123List == input._123List || - (this._123List != null && - this._123List.Equals(input._123List)) + this.var123List == input.var123List || + (this.var123List != null && + this.var123List.Equals(input.var123List)) ); } @@ -105,9 +105,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._123List != null) + if (this.var123List != null) { - hashCode = (hashCode * 59) + this._123List.GetHashCode(); + hashCode = (hashCode * 59) + this.var123List.GetHashCode(); } return hashCode; } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/Model200Response.cs index 004448f603b..f11a854f149 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/Model200Response.cs @@ -34,11 +34,11 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// name. - /// _class. - public Model200Response(int name = default(int), string _class = default(string)) + /// varClass. + public Model200Response(int name = default(int), string varClass = default(string)) { this.Name = name; - this.Class = _class; + this.VarClass = varClass; } /// @@ -48,10 +48,10 @@ namespace Org.OpenAPITools.Model public int Name { get; set; } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name = "class", EmitDefaultValue = false)] - public string Class { get; set; } + public string VarClass { get; set; } /// /// Returns the string presentation of the object @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class Model200Response {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -103,9 +103,9 @@ namespace Org.OpenAPITools.Model this.Name.Equals(input.Name) ) && ( - this.Class == input.Class || - (this.Class != null && - this.Class.Equals(input.Class)) + this.VarClass == input.VarClass || + (this.VarClass != null && + this.VarClass.Equals(input.VarClass)) ); } @@ -119,9 +119,9 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + this.Name.GetHashCode(); - if (this.Class != null) + if (this.VarClass != null) { - hashCode = (hashCode * 59) + this.Class.GetHashCode(); + hashCode = (hashCode * 59) + this.VarClass.GetHashCode(); } return hashCode; } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/ModelClient.cs index 440c0f8b21f..945932a234e 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/ModelClient.cs @@ -27,23 +27,23 @@ namespace Org.OpenAPITools.Model /// /// ModelClient /// - [DataContract(Name = "_Client")] + [DataContract(Name = "varClient")] public partial class ModelClient : IEquatable { /// /// Initializes a new instance of the class. /// - /// _client. - public ModelClient(string _client = default(string)) + /// varClient. + public ModelClient(string varClient = default(string)) { - this._Client = _client; + this.varClient = varClient; } /// - /// Gets or Sets _Client + /// Gets or Sets varClient /// [DataMember(Name = "client", EmitDefaultValue = false)] - public string _Client { get; set; } + public string varClient { get; set; } /// /// Returns the string presentation of the object @@ -53,7 +53,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ModelClient {\n"); - sb.Append(" _Client: ").Append(_Client).Append("\n"); + sb.Append(" varClient: ").Append(varClient).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -90,9 +90,9 @@ namespace Org.OpenAPITools.Model } return ( - this._Client == input._Client || - (this._Client != null && - this._Client.Equals(input._Client)) + this.varClient == input.varClient || + (this.varClient != null && + this.varClient.Equals(input.varClient)) ); } @@ -105,9 +105,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._Client != null) + if (this.varClient != null) { - hashCode = (hashCode * 59) + this._Client.GetHashCode(); + hashCode = (hashCode * 59) + this.varClient.GetHashCode(); } return hashCode; } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/Name.cs index a271f1d233d..30f504be0ca 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/Name.cs @@ -38,19 +38,19 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// name (required). + /// varName (required). /// property. - public Name(int name = default(int), string property = default(string)) + public Name(int varName = default(int), string property = default(string)) { - this._Name = name; + this.VarName = varName; this.Property = property; } /// - /// Gets or Sets _Name + /// Gets or Sets VarName /// [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] - public int _Name { get; set; } + public int VarName { get; set; } /// /// Gets or Sets SnakeCase @@ -73,16 +73,16 @@ namespace Org.OpenAPITools.Model public string Property { get; set; } /// - /// Gets or Sets _123Number + /// Gets or Sets var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int _123Number { get; private set; } + public int var123Number { get; private set; } /// - /// Returns false as _123Number should not be serialized given that it's read-only. + /// Returns false as var123Number should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerialize_123Number() + public bool ShouldSerializevar123Number() { return false; } @@ -94,10 +94,10 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Name {\n"); - sb.Append(" _Name: ").Append(_Name).Append("\n"); + sb.Append(" VarName: ").Append(VarName).Append("\n"); sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n"); sb.Append(" Property: ").Append(Property).Append("\n"); - sb.Append(" _123Number: ").Append(_123Number).Append("\n"); + sb.Append(" var123Number: ").Append(var123Number).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -134,8 +134,8 @@ namespace Org.OpenAPITools.Model } return ( - this._Name == input._Name || - this._Name.Equals(input._Name) + this.VarName == input.VarName || + this.VarName.Equals(input.VarName) ) && ( this.SnakeCase == input.SnakeCase || @@ -147,8 +147,8 @@ namespace Org.OpenAPITools.Model this.Property.Equals(input.Property)) ) && ( - this._123Number == input._123Number || - this._123Number.Equals(input._123Number) + this.var123Number == input.var123Number || + this.var123Number.Equals(input.var123Number) ); } @@ -161,13 +161,13 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this._Name.GetHashCode(); + hashCode = (hashCode * 59) + this.VarName.GetHashCode(); hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this._123Number.GetHashCode(); + hashCode = (hashCode * 59) + this.var123Number.GetHashCode(); return hashCode; } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/Return.cs index bf5eff2c4eb..53eb0331207 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/Return.cs @@ -33,17 +33,17 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _return. - public Return(int _return = default(int)) + /// varReturn. + public Return(int varReturn = default(int)) { - this._Return = _return; + this.VarReturn = varReturn; } /// - /// Gets or Sets _Return + /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int _Return { get; set; } + public int VarReturn { get; set; } /// /// Returns the string presentation of the object @@ -53,7 +53,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Return {\n"); - sb.Append(" _Return: ").Append(_Return).Append("\n"); + sb.Append(" VarReturn: ").Append(VarReturn).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -90,8 +90,8 @@ namespace Org.OpenAPITools.Model } return ( - this._Return == input._Return || - this._Return.Equals(input._Return) + this.VarReturn == input.VarReturn || + this.VarReturn.Equals(input.VarReturn) ); } @@ -104,7 +104,7 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this._Return.GetHashCode(); + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); return hashCode; } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/SpecialModelName.cs index 9f12aefffd2..4a637be1661 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -34,11 +34,11 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// specialPropertyName. - /// specialModelName. - public SpecialModelName(long specialPropertyName = default(long), string specialModelName = default(string)) + /// varSpecialModelName. + public SpecialModelName(long specialPropertyName = default(long), string varSpecialModelName = default(string)) { this.SpecialPropertyName = specialPropertyName; - this._SpecialModelName = specialModelName; + this.VarSpecialModelName = varSpecialModelName; } /// @@ -48,10 +48,10 @@ namespace Org.OpenAPITools.Model public long SpecialPropertyName { get; set; } /// - /// Gets or Sets _SpecialModelName + /// Gets or Sets VarSpecialModelName /// [DataMember(Name = "_special_model.name_", EmitDefaultValue = false)] - public string _SpecialModelName { get; set; } + public string VarSpecialModelName { get; set; } /// /// Returns the string presentation of the object @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class SpecialModelName {\n"); sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n"); - sb.Append(" _SpecialModelName: ").Append(_SpecialModelName).Append("\n"); + sb.Append(" VarSpecialModelName: ").Append(VarSpecialModelName).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -103,9 +103,9 @@ namespace Org.OpenAPITools.Model this.SpecialPropertyName.Equals(input.SpecialPropertyName) ) && ( - this._SpecialModelName == input._SpecialModelName || - (this._SpecialModelName != null && - this._SpecialModelName.Equals(input._SpecialModelName)) + this.VarSpecialModelName == input.VarSpecialModelName || + (this.VarSpecialModelName != null && + this.VarSpecialModelName.Equals(input.VarSpecialModelName)) ); } @@ -119,9 +119,9 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); - if (this._SpecialModelName != null) + if (this.VarSpecialModelName != null) { - hashCode = (hashCode * 59) + this._SpecialModelName.GetHashCode(); + hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); } return hashCode; } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/ClassModel.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/ClassModel.md index f39982657c8..c90a44a6f84 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/ClassModel.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/ClassModel.md @@ -5,7 +5,7 @@ Model for testing model with \"_class\" property Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FakeApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FakeApi.md index c5ed3eb8340..7bdf5246aac 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FakeApi.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FakeApi.md @@ -809,7 +809,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) +> void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -837,14 +837,14 @@ namespace Example var apiInstance = new FakeApi(config); var number = 8.14D; // decimal | None - var _double = 1.2D; // double | None + var varDouble = 1.2D; // double | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None - var _byte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None + var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var integer = 56; // int? | None (optional) var int32 = 56; // int? | None (optional) var int64 = 789L; // long? | None (optional) - var _float = 3.4F; // float? | None (optional) - var _string = "_string_example"; // string | None (optional) + var varFloat = 3.4F; // float? | None (optional) + var varString = "string_example"; // string | None (optional) var binary = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | None (optional) var date = DateTime.Parse("2013-10-20"); // DateTime? | None (optional) var dateTime = DateTime.Parse(""2010-02-01T10:20:10.111110+01:00""); // DateTime? | None (optional) (default to "2010-02-01T10:20:10.111110+01:00") @@ -854,7 +854,7 @@ namespace Example try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + apiInstance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } catch (ApiException e) { @@ -874,7 +874,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + apiInstance.TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } catch (ApiException e) { @@ -889,14 +889,14 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **number** | **decimal** | None | | -| **_double** | **double** | None | | +| **varDouble** | **double** | None | | | **patternWithoutDelimiter** | **string** | None | | -| **_byte** | **byte[]** | None | | +| **varByte** | **byte[]** | None | | | **integer** | **int?** | None | [optional] | | **int32** | **int?** | None | [optional] | | **int64** | **long?** | None | [optional] | -| **_float** | **float?** | None | [optional] | -| **_string** | **string** | None | [optional] | +| **varFloat** | **float?** | None | [optional] | +| **varString** | **string** | None | [optional] | | **binary** | **System.IO.Stream****System.IO.Stream** | None | [optional] | | **date** | **DateTime?** | None | [optional] | | **dateTime** | **DateTime?** | None | [optional] [default to "2010-02-01T10:20:10.111110+01:00"] | diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FooGetDefaultResponse.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FooGetDefaultResponse.md index dde9b9729b9..9ebee827949 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FooGetDefaultResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] +**VarString** | [**Foo**](Foo.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FormatTest.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FormatTest.md index c2144b5e3cf..2d28c89fa30 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FormatTest.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FormatTest.md @@ -10,11 +10,11 @@ Name | Type | Description | Notes **Int64** | **long** | | [optional] **UnsignedLong** | **ulong** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] -**String** | **string** | | [optional] -**Byte** | **byte[]** | | +**VarFloat** | **float** | | [optional] +**VarDouble** | **double** | | [optional] +**VarDecimal** | **decimal** | | [optional] +**VarString** | **string** | | [optional] +**VarByte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] **Date** | **DateTime** | | **DateTime** | **DateTime** | | [optional] diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/List.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/List.md index 2862c7e5321..ef729179265 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/List.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/List.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_123List** | **string** | | [optional] +**var123List** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/Model200Response.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/Model200Response.md index 31f4d86fe43..4b6338af424 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/Model200Response.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/Model200Response.md @@ -6,7 +6,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **int** | | [optional] -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/ModelClient.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/ModelClient.md index c29a6287433..45f4e41644f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/ModelClient.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/ModelClient.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Client** | **string** | | [optional] +**varClient** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/Name.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/Name.md index 692af702b5b..a5ee6ef12f9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/Name.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/Name.md @@ -5,10 +5,10 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Name** | **int** | | +**VarName** | **int** | | **SnakeCase** | **int** | | [optional] [readonly] **Property** | **string** | | [optional] -**_123Number** | **int** | | [optional] [readonly] +**var123Number** | **int** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/Return.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/Return.md index 2c7c97e09da..052ac919006 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/Return.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Return** | **int** | | [optional] +**VarReturn** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/SpecialModelName.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/SpecialModelName.md index 648179799e1..7f8ffca34fa 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/SpecialModelName.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SpecialPropertyName** | **long** | | [optional] -**_SpecialModelName** | **string** | | [optional] +**VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs index ca68e330338..db7210ad86f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs @@ -233,14 +233,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// - void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); + void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -258,14 +258,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); + ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); /// /// To test enum parameters /// @@ -659,14 +659,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -675,7 +675,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -685,14 +685,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -701,7 +701,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// To test enum parameters /// @@ -2228,14 +2228,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2243,9 +2243,9 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// - public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) + public void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) { - TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } /// @@ -2253,14 +2253,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2268,7 +2268,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2276,10 +2276,10 @@ namespace Org.OpenAPITools.Api throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); } - // verify the required parameter '_byte' is set - if (_byte == null) + // verify the required parameter 'varByte' is set + if (varByte == null) { - throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); } Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2317,17 +2317,17 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.FormParameters.Add("int64", Org.OpenAPITools.Client.ClientUtils.ParameterToString(int64)); // form parameter } localVarRequestOptions.FormParameters.Add("number", Org.OpenAPITools.Client.ClientUtils.ParameterToString(number)); // form parameter - if (_float != null) + if (varFloat != null) { - localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_float)); // form parameter + localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varFloat)); // form parameter } - localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_double)); // form parameter - if (_string != null) + localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varDouble)); // form parameter + if (varString != null) { - localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_string)); // form parameter + localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varString)); // form parameter } localVarRequestOptions.FormParameters.Add("pattern_without_delimiter", Org.OpenAPITools.Client.ClientUtils.ParameterToString(patternWithoutDelimiter)); // form parameter - localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter + localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varByte)); // form parameter if (binary != null) { localVarRequestOptions.FileParameters.Add("binary", binary); @@ -2378,14 +2378,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2394,9 +2394,9 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); + await TestEndpointParametersWithHttpInfoAsync(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -2404,14 +2404,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2420,7 +2420,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2428,10 +2428,10 @@ namespace Org.OpenAPITools.Api throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); } - // verify the required parameter '_byte' is set - if (_byte == null) + // verify the required parameter 'varByte' is set + if (varByte == null) { - throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); } @@ -2470,17 +2470,17 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.FormParameters.Add("int64", Org.OpenAPITools.Client.ClientUtils.ParameterToString(int64)); // form parameter } localVarRequestOptions.FormParameters.Add("number", Org.OpenAPITools.Client.ClientUtils.ParameterToString(number)); // form parameter - if (_float != null) + if (varFloat != null) { - localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_float)); // form parameter + localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varFloat)); // form parameter } - localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_double)); // form parameter - if (_string != null) + localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varDouble)); // form parameter + if (varString != null) { - localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_string)); // form parameter + localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varString)); // form parameter } localVarRequestOptions.FormParameters.Add("pattern_without_delimiter", Org.OpenAPITools.Client.ClientUtils.ParameterToString(patternWithoutDelimiter)); // form parameter - localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter + localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varByte)); // form parameter if (binary != null) { localVarRequestOptions.FileParameters.Add("binary", binary); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/ClassModel.cs index 59c85f3e79b..19aedc1734b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/ClassModel.cs @@ -35,18 +35,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _class. - public ClassModel(string _class = default(string)) + /// varClass. + public ClassModel(string varClass = default(string)) { - this.Class = _class; + this.VarClass = varClass; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name = "_class", EmitDefaultValue = false)] - public string Class { get; set; } + public string VarClass { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ClassModel {\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Class != null) + if (this.VarClass != null) { - hashCode = (hashCode * 59) + this.Class.GetHashCode(); + hashCode = (hashCode * 59) + this.VarClass.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 70554062020..55cd8eb7482 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -35,18 +35,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _string. - public FooGetDefaultResponse(Foo _string = default(Foo)) + /// varString. + public FooGetDefaultResponse(Foo varString = default(Foo)) { - this.String = _string; + this.VarString = varString; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String { get; set; } + public Foo VarString { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class FooGetDefaultResponse {\n"); - sb.Append(" String: ").Append(String).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.String != null) + if (this.VarString != null) { - hashCode = (hashCode * 59) + this.String.GetHashCode(); + hashCode = (hashCode * 59) + this.VarString.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/FormatTest.cs index 5d1f524948f..99b26c4bf7b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/FormatTest.cs @@ -49,11 +49,11 @@ namespace Org.OpenAPITools.Model /// int64. /// unsignedLong. /// number (required). - /// _float. - /// _double. - /// _decimal. - /// _string. - /// _byte (required). + /// varFloat. + /// varDouble. + /// varDecimal. + /// varString. + /// varByte (required). /// binary. /// date (required). /// dateTime. @@ -62,15 +62,15 @@ namespace Org.OpenAPITools.Model /// A string that is a 10 digit number. Can have leading zeros.. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. /// None. - public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) + public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) { this.Number = number; - // to ensure "_byte" is required (not null) - if (_byte == null) + // to ensure "varByte" is required (not null) + if (varByte == null) { - throw new ArgumentNullException("_byte is a required property for FormatTest and cannot be null"); + throw new ArgumentNullException("varByte is a required property for FormatTest and cannot be null"); } - this.Byte = _byte; + this.VarByte = varByte; this.Date = date; // to ensure "password" is required (not null) if (password == null) @@ -83,10 +83,10 @@ namespace Org.OpenAPITools.Model this.UnsignedInteger = unsignedInteger; this.Int64 = int64; this.UnsignedLong = unsignedLong; - this.Float = _float; - this.Double = _double; - this.Decimal = _decimal; - this.String = _string; + this.VarFloat = varFloat; + this.VarDouble = varDouble; + this.VarDecimal = varDecimal; + this.VarString = varString; this.Binary = binary; this.DateTime = dateTime; this.Uuid = uuid; @@ -133,34 +133,34 @@ namespace Org.OpenAPITools.Model public decimal Number { get; set; } /// - /// Gets or Sets Float + /// Gets or Sets VarFloat /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float VarFloat { get; set; } /// - /// Gets or Sets Double + /// Gets or Sets VarDouble /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double VarDouble { get; set; } /// - /// Gets or Sets Decimal + /// Gets or Sets VarDecimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal VarDecimal { get; set; } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name = "string", EmitDefaultValue = false)] - public string String { get; set; } + public string VarString { get; set; } /// - /// Gets or Sets Byte + /// Gets or Sets VarByte /// [DataMember(Name = "byte", IsRequired = true, EmitDefaultValue = true)] - public byte[] Byte { get; set; } + public byte[] VarByte { get; set; } /// /// Gets or Sets Binary @@ -237,11 +237,11 @@ namespace Org.OpenAPITools.Model sb.Append(" Int64: ").Append(Int64).Append("\n"); sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n"); sb.Append(" Number: ").Append(Number).Append("\n"); - sb.Append(" Float: ").Append(Float).Append("\n"); - sb.Append(" Double: ").Append(Double).Append("\n"); - sb.Append(" Decimal: ").Append(Decimal).Append("\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" Byte: ").Append(Byte).Append("\n"); + sb.Append(" VarFloat: ").Append(VarFloat).Append("\n"); + sb.Append(" VarDouble: ").Append(VarDouble).Append("\n"); + sb.Append(" VarDecimal: ").Append(VarDecimal).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); + sb.Append(" VarByte: ").Append(VarByte).Append("\n"); sb.Append(" Binary: ").Append(Binary).Append("\n"); sb.Append(" Date: ").Append(Date).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n"); @@ -299,16 +299,16 @@ namespace Org.OpenAPITools.Model hashCode = (hashCode * 59) + this.Int64.GetHashCode(); hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); - if (this.String != null) + hashCode = (hashCode * 59) + this.VarFloat.GetHashCode(); + hashCode = (hashCode * 59) + this.VarDouble.GetHashCode(); + hashCode = (hashCode * 59) + this.VarDecimal.GetHashCode(); + if (this.VarString != null) { - hashCode = (hashCode * 59) + this.String.GetHashCode(); + hashCode = (hashCode * 59) + this.VarString.GetHashCode(); } - if (this.Byte != null) + if (this.VarByte != null) { - hashCode = (hashCode * 59) + this.Byte.GetHashCode(); + hashCode = (hashCode * 59) + this.VarByte.GetHashCode(); } if (this.Binary != null) { @@ -405,35 +405,35 @@ namespace Org.OpenAPITools.Model yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // VarFloat (float) maximum + if (this.VarFloat > (float)987.6) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value less than or equal to 987.6.", new [] { "VarFloat" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // VarFloat (float) minimum + if (this.VarFloat < (float)54.3) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value greater than or equal to 54.3.", new [] { "VarFloat" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // VarDouble (double) maximum + if (this.VarDouble > (double)123.4) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value less than or equal to 123.4.", new [] { "VarDouble" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // VarDouble (double) minimum + if (this.VarDouble < (double)67.8) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value greater than or equal to 67.8.", new [] { "VarDouble" }); } - // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (false == regexString.Match(this.String).Success) + // VarString (string) pattern + Regex regexVarString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (false == regexVarString.Match(this.VarString).Success) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarString, must match a pattern of " + regexVarString, new [] { "VarString" }); } // Password (string) maxLength diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/List.cs index 8933b19e210..34aa730e796 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/List.cs @@ -35,18 +35,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _123list. - public List(string _123list = default(string)) + /// var123List. + public List(string var123List = default(string)) { - this._123List = _123list; + this.var123List = var123List; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _123List + /// Gets or Sets var123List /// [DataMember(Name = "123-list", EmitDefaultValue = false)] - public string _123List { get; set; } + public string var123List { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class List {\n"); - sb.Append(" _123List: ").Append(_123List).Append("\n"); + sb.Append(" var123List: ").Append(var123List).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._123List != null) + if (this.var123List != null) { - hashCode = (hashCode * 59) + this._123List.GetHashCode(); + hashCode = (hashCode * 59) + this.var123List.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Model200Response.cs index 72383f9de33..6e5acdf9e69 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Model200Response.cs @@ -36,11 +36,11 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// name. - /// _class. - public Model200Response(int name = default(int), string _class = default(string)) + /// varClass. + public Model200Response(int name = default(int), string varClass = default(string)) { this.Name = name; - this.Class = _class; + this.VarClass = varClass; this.AdditionalProperties = new Dictionary(); } @@ -51,10 +51,10 @@ namespace Org.OpenAPITools.Model public int Name { get; set; } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name = "class", EmitDefaultValue = false)] - public string Class { get; set; } + public string VarClass { get; set; } /// /// Gets or Sets additional properties @@ -71,7 +71,7 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class Model200Response {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -116,9 +116,9 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + this.Name.GetHashCode(); - if (this.Class != null) + if (this.VarClass != null) { - hashCode = (hashCode * 59) + this.Class.GetHashCode(); + hashCode = (hashCode * 59) + this.VarClass.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/ModelClient.cs index d9a94592395..c5433e622d9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/ModelClient.cs @@ -29,24 +29,24 @@ namespace Org.OpenAPITools.Model /// /// ModelClient /// - [DataContract(Name = "_Client")] + [DataContract(Name = "varClient")] public partial class ModelClient : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// - /// _client. - public ModelClient(string _client = default(string)) + /// varClient. + public ModelClient(string varClient = default(string)) { - this._Client = _client; + this.varClient = varClient; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _Client + /// Gets or Sets varClient /// [DataMember(Name = "client", EmitDefaultValue = false)] - public string _Client { get; set; } + public string varClient { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ModelClient {\n"); - sb.Append(" _Client: ").Append(_Client).Append("\n"); + sb.Append(" varClient: ").Append(varClient).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._Client != null) + if (this.varClient != null) { - hashCode = (hashCode * 59) + this._Client.GetHashCode(); + hashCode = (hashCode * 59) + this.varClient.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Name.cs index 515b498cb5b..8354a3c82bd 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Name.cs @@ -43,20 +43,20 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// name (required). + /// varName (required). /// property. - public Name(int name = default(int), string property = default(string)) + public Name(int varName = default(int), string property = default(string)) { - this._Name = name; + this.VarName = varName; this.Property = property; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _Name + /// Gets or Sets VarName /// [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] - public int _Name { get; set; } + public int VarName { get; set; } /// /// Gets or Sets SnakeCase @@ -79,16 +79,16 @@ namespace Org.OpenAPITools.Model public string Property { get; set; } /// - /// Gets or Sets _123Number + /// Gets or Sets var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int _123Number { get; private set; } + public int var123Number { get; private set; } /// - /// Returns false as _123Number should not be serialized given that it's read-only. + /// Returns false as var123Number should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerialize_123Number() + public bool ShouldSerializevar123Number() { return false; } @@ -106,10 +106,10 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Name {\n"); - sb.Append(" _Name: ").Append(_Name).Append("\n"); + sb.Append(" VarName: ").Append(VarName).Append("\n"); sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n"); sb.Append(" Property: ").Append(Property).Append("\n"); - sb.Append(" _123Number: ").Append(_123Number).Append("\n"); + sb.Append(" var123Number: ").Append(var123Number).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -153,13 +153,13 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this._Name.GetHashCode(); + hashCode = (hashCode * 59) + this.VarName.GetHashCode(); hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this._123Number.GetHashCode(); + hashCode = (hashCode * 59) + this.var123Number.GetHashCode(); if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Return.cs index c6edbea2f71..aaab21dc58c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Return.cs @@ -35,18 +35,18 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _return. - public Return(int _return = default(int)) + /// varReturn. + public Return(int varReturn = default(int)) { - this._Return = _return; + this.VarReturn = varReturn; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets _Return + /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int _Return { get; set; } + public int VarReturn { get; set; } /// /// Gets or Sets additional properties @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Return {\n"); - sb.Append(" _Return: ").Append(_Return).Append("\n"); + sb.Append(" VarReturn: ").Append(VarReturn).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,7 +106,7 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this._Return.GetHashCode(); + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/SpecialModelName.cs index fd741fa9e1a..ca5adcd816b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -36,11 +36,11 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// specialPropertyName. - /// specialModelName. - public SpecialModelName(long specialPropertyName = default(long), string specialModelName = default(string)) + /// varSpecialModelName. + public SpecialModelName(long specialPropertyName = default(long), string varSpecialModelName = default(string)) { this.SpecialPropertyName = specialPropertyName; - this._SpecialModelName = specialModelName; + this.VarSpecialModelName = varSpecialModelName; this.AdditionalProperties = new Dictionary(); } @@ -51,10 +51,10 @@ namespace Org.OpenAPITools.Model public long SpecialPropertyName { get; set; } /// - /// Gets or Sets _SpecialModelName + /// Gets or Sets VarSpecialModelName /// [DataMember(Name = "_special_model.name_", EmitDefaultValue = false)] - public string _SpecialModelName { get; set; } + public string VarSpecialModelName { get; set; } /// /// Gets or Sets additional properties @@ -71,7 +71,7 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class SpecialModelName {\n"); sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n"); - sb.Append(" _SpecialModelName: ").Append(_SpecialModelName).Append("\n"); + sb.Append(" VarSpecialModelName: ").Append(VarSpecialModelName).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -116,9 +116,9 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); - if (this._SpecialModelName != null) + if (this.VarSpecialModelName != null) { - hashCode = (hashCode * 59) + this._SpecialModelName.GetHashCode(); + hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/ClassModel.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/ClassModel.md index f39982657c8..c90a44a6f84 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/ClassModel.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/ClassModel.md @@ -5,7 +5,7 @@ Model for testing model with \"_class\" property Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/FakeApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/FakeApi.md index bf7632d7f07..ccc390872ec 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/FakeApi.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/FakeApi.md @@ -809,7 +809,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string? _string = null, System.IO.Stream? binary = null, DateTime? date = null, DateTime? dateTime = null, string? password = null, string? callback = null) +> void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string? varString = null, System.IO.Stream? binary = null, DateTime? date = null, DateTime? dateTime = null, string? password = null, string? callback = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -837,14 +837,14 @@ namespace Example var apiInstance = new FakeApi(config); var number = 8.14D; // decimal | None - var _double = 1.2D; // double | None + var varDouble = 1.2D; // double | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None - var _byte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None + var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var integer = 56; // int? | None (optional) var int32 = 56; // int? | None (optional) var int64 = 789L; // long? | None (optional) - var _float = 3.4F; // float? | None (optional) - var _string = "_string_example"; // string? | None (optional) + var varFloat = 3.4F; // float? | None (optional) + var varString = "string_example"; // string? | None (optional) var binary = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream? | None (optional) var date = DateTime.Parse("2013-10-20"); // DateTime? | None (optional) var dateTime = DateTime.Parse(""2010-02-01T10:20:10.111110+01:00""); // DateTime? | None (optional) (default to "2010-02-01T10:20:10.111110+01:00") @@ -854,7 +854,7 @@ namespace Example try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + apiInstance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } catch (ApiException e) { @@ -874,7 +874,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + apiInstance.TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } catch (ApiException e) { @@ -889,14 +889,14 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **number** | **decimal** | None | | -| **_double** | **double** | None | | +| **varDouble** | **double** | None | | | **patternWithoutDelimiter** | **string** | None | | -| **_byte** | **byte[]** | None | | +| **varByte** | **byte[]** | None | | | **integer** | **int?** | None | [optional] | | **int32** | **int?** | None | [optional] | | **int64** | **long?** | None | [optional] | -| **_float** | **float?** | None | [optional] | -| **_string** | **string?** | None | [optional] | +| **varFloat** | **float?** | None | [optional] | +| **varString** | **string?** | None | [optional] | | **binary** | **System.IO.Stream?****System.IO.Stream?** | None | [optional] | | **date** | **DateTime?** | None | [optional] | | **dateTime** | **DateTime?** | None | [optional] [default to "2010-02-01T10:20:10.111110+01:00"] | diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/FooGetDefaultResponse.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/FooGetDefaultResponse.md index dde9b9729b9..9ebee827949 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/FooGetDefaultResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] +**VarString** | [**Foo**](Foo.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/FormatTest.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/FormatTest.md index c2144b5e3cf..2d28c89fa30 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/FormatTest.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/FormatTest.md @@ -10,11 +10,11 @@ Name | Type | Description | Notes **Int64** | **long** | | [optional] **UnsignedLong** | **ulong** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] -**String** | **string** | | [optional] -**Byte** | **byte[]** | | +**VarFloat** | **float** | | [optional] +**VarDouble** | **double** | | [optional] +**VarDecimal** | **decimal** | | [optional] +**VarString** | **string** | | [optional] +**VarByte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] **Date** | **DateTime** | | **DateTime** | **DateTime** | | [optional] diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/List.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/List.md index 2862c7e5321..ef729179265 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/List.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/List.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_123List** | **string** | | [optional] +**var123List** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/Model200Response.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/Model200Response.md index 31f4d86fe43..4b6338af424 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/Model200Response.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/Model200Response.md @@ -6,7 +6,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **int** | | [optional] -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/ModelClient.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/ModelClient.md index c29a6287433..45f4e41644f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/ModelClient.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/ModelClient.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Client** | **string** | | [optional] +**varClient** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/Name.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/Name.md index 692af702b5b..a5ee6ef12f9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/Name.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/Name.md @@ -5,10 +5,10 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Name** | **int** | | +**VarName** | **int** | | **SnakeCase** | **int** | | [optional] [readonly] **Property** | **string** | | [optional] -**_123Number** | **int** | | [optional] [readonly] +**var123Number** | **int** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/Return.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/Return.md index 2c7c97e09da..052ac919006 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/Return.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Return** | **int** | | [optional] +**VarReturn** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/SpecialModelName.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/SpecialModelName.md index 648179799e1..7f8ffca34fa 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/SpecialModelName.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SpecialPropertyName** | **long** | | [optional] -**_SpecialModelName** | **string** | | [optional] +**VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeApi.cs index 16240126ca9..f0a96c2970a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -233,14 +233,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// - void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string? _string = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0); + void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -258,14 +258,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string? _string = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0); + ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0); /// /// To test enum parameters /// @@ -659,14 +659,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -675,7 +675,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string? _string = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -685,14 +685,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -701,7 +701,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string? _string = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// To test enum parameters /// @@ -2228,14 +2228,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2243,9 +2243,9 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// - public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string? _string = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0) + public void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0) { - TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } /// @@ -2253,14 +2253,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2268,7 +2268,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string? _string = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2276,10 +2276,10 @@ namespace Org.OpenAPITools.Api throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); } - // verify the required parameter '_byte' is set - if (_byte == null) + // verify the required parameter 'varByte' is set + if (varByte == null) { - throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); } Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2317,17 +2317,17 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.FormParameters.Add("int64", Org.OpenAPITools.Client.ClientUtils.ParameterToString(int64)); // form parameter } localVarRequestOptions.FormParameters.Add("number", Org.OpenAPITools.Client.ClientUtils.ParameterToString(number)); // form parameter - if (_float != null) + if (varFloat != null) { - localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_float)); // form parameter + localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varFloat)); // form parameter } - localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_double)); // form parameter - if (_string != null) + localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varDouble)); // form parameter + if (varString != null) { - localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_string)); // form parameter + localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varString)); // form parameter } localVarRequestOptions.FormParameters.Add("pattern_without_delimiter", Org.OpenAPITools.Client.ClientUtils.ParameterToString(patternWithoutDelimiter)); // form parameter - localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter + localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varByte)); // form parameter if (binary != null) { localVarRequestOptions.FileParameters.Add("binary", binary); @@ -2378,14 +2378,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2394,9 +2394,9 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string? _string = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); + await TestEndpointParametersWithHttpInfoAsync(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -2404,14 +2404,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") @@ -2420,7 +2420,7 @@ namespace Org.OpenAPITools.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string? _string = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2428,10 +2428,10 @@ namespace Org.OpenAPITools.Api throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); } - // verify the required parameter '_byte' is set - if (_byte == null) + // verify the required parameter 'varByte' is set + if (varByte == null) { - throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); } @@ -2470,17 +2470,17 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.FormParameters.Add("int64", Org.OpenAPITools.Client.ClientUtils.ParameterToString(int64)); // form parameter } localVarRequestOptions.FormParameters.Add("number", Org.OpenAPITools.Client.ClientUtils.ParameterToString(number)); // form parameter - if (_float != null) + if (varFloat != null) { - localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_float)); // form parameter + localVarRequestOptions.FormParameters.Add("float", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varFloat)); // form parameter } - localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_double)); // form parameter - if (_string != null) + localVarRequestOptions.FormParameters.Add("double", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varDouble)); // form parameter + if (varString != null) { - localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_string)); // form parameter + localVarRequestOptions.FormParameters.Add("string", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varString)); // form parameter } localVarRequestOptions.FormParameters.Add("pattern_without_delimiter", Org.OpenAPITools.Client.ClientUtils.ParameterToString(patternWithoutDelimiter)); // form parameter - localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter + localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(varByte)); // form parameter if (binary != null) { localVarRequestOptions.FileParameters.Add("binary", binary); diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/ClassModel.cs index 1598cc3f2c1..6654d1c2ee5 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -35,17 +35,17 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _class. - public ClassModel(string _class = default(string)) + /// varClass. + public ClassModel(string varClass = default(string)) { - this.Class = _class; + this.VarClass = varClass; } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name = "_class", EmitDefaultValue = false)] - public string Class { get; set; } + public string VarClass { get; set; } /// /// Returns the string presentation of the object @@ -55,7 +55,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ClassModel {\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -98,9 +98,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Class != null) + if (this.VarClass != null) { - hashCode = (hashCode * 59) + this.Class.GetHashCode(); + hashCode = (hashCode * 59) + this.VarClass.GetHashCode(); } return hashCode; } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 064f7071056..50b08ea97bc 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -35,17 +35,17 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _string. - public FooGetDefaultResponse(Foo _string = default(Foo)) + /// varString. + public FooGetDefaultResponse(Foo varString = default(Foo)) { - this.String = _string; + this.VarString = varString; } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String { get; set; } + public Foo VarString { get; set; } /// /// Returns the string presentation of the object @@ -55,7 +55,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class FooGetDefaultResponse {\n"); - sb.Append(" String: ").Append(String).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -98,9 +98,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.String != null) + if (this.VarString != null) { - hashCode = (hashCode * 59) + this.String.GetHashCode(); + hashCode = (hashCode * 59) + this.VarString.GetHashCode(); } return hashCode; } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/FormatTest.cs index 1add390f26d..84519d76b1b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -46,11 +46,11 @@ namespace Org.OpenAPITools.Model /// int64. /// unsignedLong. /// number (required). - /// _float. - /// _double. - /// _decimal. - /// _string. - /// _byte (required). + /// varFloat. + /// varDouble. + /// varDecimal. + /// varString. + /// varByte (required). /// binary. /// date (required). /// dateTime. @@ -59,15 +59,15 @@ namespace Org.OpenAPITools.Model /// A string that is a 10 digit number. Can have leading zeros.. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. /// None. - public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) + public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) { this.Number = number; - // to ensure "_byte" is required (not null) - if (_byte == null) + // to ensure "varByte" is required (not null) + if (varByte == null) { - throw new ArgumentNullException("_byte is a required property for FormatTest and cannot be null"); + throw new ArgumentNullException("varByte is a required property for FormatTest and cannot be null"); } - this.Byte = _byte; + this.VarByte = varByte; this.Date = date; // to ensure "password" is required (not null) if (password == null) @@ -80,10 +80,10 @@ namespace Org.OpenAPITools.Model this.UnsignedInteger = unsignedInteger; this.Int64 = int64; this.UnsignedLong = unsignedLong; - this.Float = _float; - this.Double = _double; - this.Decimal = _decimal; - this.String = _string; + this.VarFloat = varFloat; + this.VarDouble = varDouble; + this.VarDecimal = varDecimal; + this.VarString = varString; this.Binary = binary; this.DateTime = dateTime; this.Uuid = uuid; @@ -129,34 +129,34 @@ namespace Org.OpenAPITools.Model public decimal Number { get; set; } /// - /// Gets or Sets Float + /// Gets or Sets VarFloat /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float VarFloat { get; set; } /// - /// Gets or Sets Double + /// Gets or Sets VarDouble /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double VarDouble { get; set; } /// - /// Gets or Sets Decimal + /// Gets or Sets VarDecimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal VarDecimal { get; set; } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name = "string", EmitDefaultValue = false)] - public string String { get; set; } + public string VarString { get; set; } /// - /// Gets or Sets Byte + /// Gets or Sets VarByte /// [DataMember(Name = "byte", IsRequired = true, EmitDefaultValue = true)] - public byte[] Byte { get; set; } + public byte[] VarByte { get; set; } /// /// Gets or Sets Binary @@ -227,11 +227,11 @@ namespace Org.OpenAPITools.Model sb.Append(" Int64: ").Append(Int64).Append("\n"); sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n"); sb.Append(" Number: ").Append(Number).Append("\n"); - sb.Append(" Float: ").Append(Float).Append("\n"); - sb.Append(" Double: ").Append(Double).Append("\n"); - sb.Append(" Decimal: ").Append(Decimal).Append("\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" Byte: ").Append(Byte).Append("\n"); + sb.Append(" VarFloat: ").Append(VarFloat).Append("\n"); + sb.Append(" VarDouble: ").Append(VarDouble).Append("\n"); + sb.Append(" VarDecimal: ").Append(VarDecimal).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); + sb.Append(" VarByte: ").Append(VarByte).Append("\n"); sb.Append(" Binary: ").Append(Binary).Append("\n"); sb.Append(" Date: ").Append(Date).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n"); @@ -288,16 +288,16 @@ namespace Org.OpenAPITools.Model hashCode = (hashCode * 59) + this.Int64.GetHashCode(); hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); - if (this.String != null) + hashCode = (hashCode * 59) + this.VarFloat.GetHashCode(); + hashCode = (hashCode * 59) + this.VarDouble.GetHashCode(); + hashCode = (hashCode * 59) + this.VarDecimal.GetHashCode(); + if (this.VarString != null) { - hashCode = (hashCode * 59) + this.String.GetHashCode(); + hashCode = (hashCode * 59) + this.VarString.GetHashCode(); } - if (this.Byte != null) + if (this.VarByte != null) { - hashCode = (hashCode * 59) + this.Byte.GetHashCode(); + hashCode = (hashCode * 59) + this.VarByte.GetHashCode(); } if (this.Binary != null) { @@ -390,35 +390,35 @@ namespace Org.OpenAPITools.Model yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // VarFloat (float) maximum + if (this.VarFloat > (float)987.6) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value less than or equal to 987.6.", new [] { "VarFloat" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // VarFloat (float) minimum + if (this.VarFloat < (float)54.3) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value greater than or equal to 54.3.", new [] { "VarFloat" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // VarDouble (double) maximum + if (this.VarDouble > (double)123.4) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value less than or equal to 123.4.", new [] { "VarDouble" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // VarDouble (double) minimum + if (this.VarDouble < (double)67.8) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value greater than or equal to 67.8.", new [] { "VarDouble" }); } - // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (false == regexString.Match(this.String).Success) + // VarString (string) pattern + Regex regexVarString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (false == regexVarString.Match(this.VarString).Success) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarString, must match a pattern of " + regexVarString, new [] { "VarString" }); } // Password (string) maxLength diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/List.cs index 091121dedc8..6f0fb673f4a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/List.cs @@ -35,17 +35,17 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _123list. - public List(string _123list = default(string)) + /// var123List. + public List(string var123List = default(string)) { - this._123List = _123list; + this.var123List = var123List; } /// - /// Gets or Sets _123List + /// Gets or Sets var123List /// [DataMember(Name = "123-list", EmitDefaultValue = false)] - public string _123List { get; set; } + public string var123List { get; set; } /// /// Returns the string presentation of the object @@ -55,7 +55,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class List {\n"); - sb.Append(" _123List: ").Append(_123List).Append("\n"); + sb.Append(" var123List: ").Append(var123List).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -98,9 +98,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._123List != null) + if (this.var123List != null) { - hashCode = (hashCode * 59) + this._123List.GetHashCode(); + hashCode = (hashCode * 59) + this.var123List.GetHashCode(); } return hashCode; } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Model200Response.cs index 5bb6f1e6606..dbf6478540c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -36,11 +36,11 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// name. - /// _class. - public Model200Response(int name = default(int), string _class = default(string)) + /// varClass. + public Model200Response(int name = default(int), string varClass = default(string)) { this.Name = name; - this.Class = _class; + this.VarClass = varClass; } /// @@ -50,10 +50,10 @@ namespace Org.OpenAPITools.Model public int Name { get; set; } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name = "class", EmitDefaultValue = false)] - public string Class { get; set; } + public string VarClass { get; set; } /// /// Returns the string presentation of the object @@ -64,7 +64,7 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class Model200Response {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -108,9 +108,9 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + this.Name.GetHashCode(); - if (this.Class != null) + if (this.VarClass != null) { - hashCode = (hashCode * 59) + this.Class.GetHashCode(); + hashCode = (hashCode * 59) + this.VarClass.GetHashCode(); } return hashCode; } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/ModelClient.cs index bb48bdd33fd..38ff7f1f4b0 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -29,23 +29,23 @@ namespace Org.OpenAPITools.Model /// /// ModelClient /// - [DataContract(Name = "_Client")] + [DataContract(Name = "varClient")] public partial class ModelClient : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// - /// _client. - public ModelClient(string _client = default(string)) + /// varClient. + public ModelClient(string varClient = default(string)) { - this._Client = _client; + this.varClient = varClient; } /// - /// Gets or Sets _Client + /// Gets or Sets varClient /// [DataMember(Name = "client", EmitDefaultValue = false)] - public string _Client { get; set; } + public string varClient { get; set; } /// /// Returns the string presentation of the object @@ -55,7 +55,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class ModelClient {\n"); - sb.Append(" _Client: ").Append(_Client).Append("\n"); + sb.Append(" varClient: ").Append(varClient).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -98,9 +98,9 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._Client != null) + if (this.varClient != null) { - hashCode = (hashCode * 59) + this._Client.GetHashCode(); + hashCode = (hashCode * 59) + this.varClient.GetHashCode(); } return hashCode; } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Name.cs index 637460dc1bf..7cb286feb63 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Name.cs @@ -40,19 +40,19 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// name (required). + /// varName (required). /// property. - public Name(int name = default(int), string property = default(string)) + public Name(int varName = default(int), string property = default(string)) { - this._Name = name; + this.VarName = varName; this.Property = property; } /// - /// Gets or Sets _Name + /// Gets or Sets VarName /// [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] - public int _Name { get; set; } + public int VarName { get; set; } /// /// Gets or Sets SnakeCase @@ -75,16 +75,16 @@ namespace Org.OpenAPITools.Model public string Property { get; set; } /// - /// Gets or Sets _123Number + /// Gets or Sets var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int _123Number { get; private set; } + public int var123Number { get; private set; } /// - /// Returns false as _123Number should not be serialized given that it's read-only. + /// Returns false as var123Number should not be serialized given that it's read-only. /// /// false (boolean) - public bool ShouldSerialize_123Number() + public bool ShouldSerializevar123Number() { return false; } @@ -96,10 +96,10 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Name {\n"); - sb.Append(" _Name: ").Append(_Name).Append("\n"); + sb.Append(" VarName: ").Append(VarName).Append("\n"); sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n"); sb.Append(" Property: ").Append(Property).Append("\n"); - sb.Append(" _123Number: ").Append(_123Number).Append("\n"); + sb.Append(" var123Number: ").Append(var123Number).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -142,13 +142,13 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this._Name.GetHashCode(); + hashCode = (hashCode * 59) + this.VarName.GetHashCode(); hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this._123Number.GetHashCode(); + hashCode = (hashCode * 59) + this.var123Number.GetHashCode(); return hashCode; } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Return.cs index 2a1b829259a..867a93f83e9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Return.cs @@ -35,17 +35,17 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _return. - public Return(int _return = default(int)) + /// varReturn. + public Return(int varReturn = default(int)) { - this._Return = _return; + this.VarReturn = varReturn; } /// - /// Gets or Sets _Return + /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int _Return { get; set; } + public int VarReturn { get; set; } /// /// Returns the string presentation of the object @@ -55,7 +55,7 @@ namespace Org.OpenAPITools.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Return {\n"); - sb.Append(" _Return: ").Append(_Return).Append("\n"); + sb.Append(" VarReturn: ").Append(VarReturn).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -98,7 +98,7 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this._Return.GetHashCode(); + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); return hashCode; } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 3dcf2168d5e..c240cb7f00a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -36,11 +36,11 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// specialPropertyName. - /// specialModelName. - public SpecialModelName(long specialPropertyName = default(long), string specialModelName = default(string)) + /// varSpecialModelName. + public SpecialModelName(long specialPropertyName = default(long), string varSpecialModelName = default(string)) { this.SpecialPropertyName = specialPropertyName; - this._SpecialModelName = specialModelName; + this.VarSpecialModelName = varSpecialModelName; } /// @@ -50,10 +50,10 @@ namespace Org.OpenAPITools.Model public long SpecialPropertyName { get; set; } /// - /// Gets or Sets _SpecialModelName + /// Gets or Sets VarSpecialModelName /// [DataMember(Name = "_special_model.name_", EmitDefaultValue = false)] - public string _SpecialModelName { get; set; } + public string VarSpecialModelName { get; set; } /// /// Returns the string presentation of the object @@ -64,7 +64,7 @@ namespace Org.OpenAPITools.Model StringBuilder sb = new StringBuilder(); sb.Append("class SpecialModelName {\n"); sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n"); - sb.Append(" _SpecialModelName: ").Append(_SpecialModelName).Append("\n"); + sb.Append(" VarSpecialModelName: ").Append(VarSpecialModelName).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -108,9 +108,9 @@ namespace Org.OpenAPITools.Model { int hashCode = 41; hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); - if (this._SpecialModelName != null) + if (this.VarSpecialModelName != null) { - hashCode = (hashCode * 59) + this._SpecialModelName.GetHashCode(); + hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); } return hashCode; } diff --git a/samples/client/petstore/csharp/OpenAPIClient/docs/ClassModel.md b/samples/client/petstore/csharp/OpenAPIClient/docs/ClassModel.md index b2b42407d2b..23100617146 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/docs/ClassModel.md +++ b/samples/client/petstore/csharp/OpenAPIClient/docs/ClassModel.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) diff --git a/samples/client/petstore/csharp/OpenAPIClient/docs/FakeApi.md b/samples/client/petstore/csharp/OpenAPIClient/docs/FakeApi.md index 73edec3b9d1..375fa40f2ee 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/docs/FakeApi.md +++ b/samples/client/petstore/csharp/OpenAPIClient/docs/FakeApi.md @@ -847,7 +847,7 @@ No authorization required ## TestEndpointParameters -> void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) +> void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -875,14 +875,14 @@ namespace Example var apiInstance = new FakeApi(Configuration.Default); var number = 8.14D; // decimal | None - var _double = 1.2D; // double | None + var varDouble = 1.2D; // double | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None - var _byte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None + var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var integer = 56; // int? | None (optional) var int32 = 56; // int? | None (optional) var int64 = 789L; // long? | None (optional) - var _float = 3.4F; // float? | None (optional) - var _string = "_string_example"; // string | None (optional) + var varFloat = 3.4F; // float? | None (optional) + var varString = "string_example"; // string | None (optional) var binary = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | None (optional) var date = DateTime.Parse("2013-10-20"); // DateTime? | None (optional) var dateTime = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | None (optional) @@ -892,7 +892,7 @@ namespace Example try { // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + apiInstance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } catch (ApiException e) { @@ -911,14 +911,14 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **number** | **decimal**| None | - **_double** | **double**| None | + **varDouble** | **double**| None | **patternWithoutDelimiter** | **string**| None | - **_byte** | **byte[]**| None | + **varByte** | **byte[]**| None | **integer** | **int?**| None | [optional] **int32** | **int?**| None | [optional] **int64** | **long?**| None | [optional] - **_float** | **float?**| None | [optional] - **_string** | **string**| None | [optional] + **varFloat** | **float?**| None | [optional] + **varString** | **string**| None | [optional] **binary** | **System.IO.Stream**| None | [optional] **date** | **DateTime?**| None | [optional] **dateTime** | **DateTime?**| None | [optional] diff --git a/samples/client/petstore/csharp/OpenAPIClient/docs/FooGetDefaultResponse.md b/samples/client/petstore/csharp/OpenAPIClient/docs/FooGetDefaultResponse.md index 019437c8582..bf8a8baf0b8 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/csharp/OpenAPIClient/docs/FooGetDefaultResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] +**VarString** | [**Foo**](Foo.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) diff --git a/samples/client/petstore/csharp/OpenAPIClient/docs/FormatTest.md b/samples/client/petstore/csharp/OpenAPIClient/docs/FormatTest.md index dd7d68501c7..b583aadb366 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/docs/FormatTest.md +++ b/samples/client/petstore/csharp/OpenAPIClient/docs/FormatTest.md @@ -9,11 +9,11 @@ Name | Type | Description | Notes **Int32** | **int** | | [optional] **Int64** | **long** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] -**String** | **string** | | [optional] -**Byte** | **byte[]** | | +**VarFloat** | **float** | | [optional] +**VarDouble** | **double** | | [optional] +**VarDecimal** | **decimal** | | [optional] +**VarString** | **string** | | [optional] +**VarByte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] **Date** | **DateTime** | | **DateTime** | **DateTime** | | [optional] diff --git a/samples/client/petstore/csharp/OpenAPIClient/docs/List.md b/samples/client/petstore/csharp/OpenAPIClient/docs/List.md index cb41193b43e..aec4d2b865e 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/docs/List.md +++ b/samples/client/petstore/csharp/OpenAPIClient/docs/List.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_123List** | **string** | | [optional] +**var123List** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) diff --git a/samples/client/petstore/csharp/OpenAPIClient/docs/Model200Response.md b/samples/client/petstore/csharp/OpenAPIClient/docs/Model200Response.md index 7d826bca1ec..168197795d6 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/docs/Model200Response.md +++ b/samples/client/petstore/csharp/OpenAPIClient/docs/Model200Response.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **int** | | [optional] -**Class** | **string** | | [optional] +**VarClass** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) diff --git a/samples/client/petstore/csharp/OpenAPIClient/docs/ModelClient.md b/samples/client/petstore/csharp/OpenAPIClient/docs/ModelClient.md index 80bd5d6edba..194b43f17bc 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/docs/ModelClient.md +++ b/samples/client/petstore/csharp/OpenAPIClient/docs/ModelClient.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Client** | **string** | | [optional] +**varClient** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) diff --git a/samples/client/petstore/csharp/OpenAPIClient/docs/Name.md b/samples/client/petstore/csharp/OpenAPIClient/docs/Name.md index bfd7955e5b4..fc1742256c2 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/docs/Name.md +++ b/samples/client/petstore/csharp/OpenAPIClient/docs/Name.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Name** | **int** | | +**VarName** | **int** | | **SnakeCase** | **int** | | [optional] [readonly] **Property** | **string** | | [optional] -**_123Number** | **int** | | [optional] [readonly] +**var123Number** | **int** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) diff --git a/samples/client/petstore/csharp/OpenAPIClient/docs/Return.md b/samples/client/petstore/csharp/OpenAPIClient/docs/Return.md index 4761c70748e..d06ac47bd79 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/docs/Return.md +++ b/samples/client/petstore/csharp/OpenAPIClient/docs/Return.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_Return** | **int** | | [optional] +**VarReturn** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs index f8008a03ec6..dc7ffcc69cc 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs @@ -268,21 +268,21 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) /// None (optional) /// None (optional) /// - void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -292,21 +292,21 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) /// None (optional) /// None (optional) /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + ApiResponse TestEndpointParametersWithHttpInfo (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); /// /// To test enum parameters /// @@ -719,14 +719,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) @@ -734,7 +734,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Cancellation Token to cancel request (optional) /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), CancellationToken cancellationToken = default(CancellationToken)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -744,14 +744,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) @@ -759,7 +759,7 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Cancellation Token to cancel request (optional) /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), CancellationToken cancellationToken = default(CancellationToken)); /// /// To test enum parameters /// @@ -2652,23 +2652,23 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) /// None (optional) /// None (optional) /// - public void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) { - TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } /// @@ -2676,34 +2676,34 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) /// None (optional) /// None (optional) /// ApiResponse of Object(void) - public ApiResponse TestEndpointParametersWithHttpInfo (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public ApiResponse TestEndpointParametersWithHttpInfo (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) { // verify the required parameter 'number' is set if (number == null) throw new ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); - // verify the required parameter '_double' is set - if (_double == null) - throw new ApiException(400, "Missing required parameter '_double' when calling FakeApi->TestEndpointParameters"); + // verify the required parameter 'varDouble' is set + if (varDouble == null) + throw new ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) throw new ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); - // verify the required parameter '_byte' is set - if (_byte == null) - throw new ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + // verify the required parameter 'varByte' is set + if (varByte == null) + throw new ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); var localVarPath = "/fake"; var localVarPathParams = new Dictionary(); @@ -2730,11 +2730,11 @@ namespace Org.OpenAPITools.Api if (int32 != null) localVarFormParams.Add("int32", this.Configuration.ApiClient.ParameterToString(int32)); // form parameter if (int64 != null) localVarFormParams.Add("int64", this.Configuration.ApiClient.ParameterToString(int64)); // form parameter if (number != null) localVarFormParams.Add("number", this.Configuration.ApiClient.ParameterToString(number)); // form parameter - if (_float != null) localVarFormParams.Add("float", this.Configuration.ApiClient.ParameterToString(_float)); // form parameter - if (_double != null) localVarFormParams.Add("double", this.Configuration.ApiClient.ParameterToString(_double)); // form parameter - if (_string != null) localVarFormParams.Add("string", this.Configuration.ApiClient.ParameterToString(_string)); // form parameter + if (varFloat != null) localVarFormParams.Add("float", this.Configuration.ApiClient.ParameterToString(varFloat)); // form parameter + if (varDouble != null) localVarFormParams.Add("double", this.Configuration.ApiClient.ParameterToString(varDouble)); // form parameter + if (varString != null) localVarFormParams.Add("string", this.Configuration.ApiClient.ParameterToString(varString)); // form parameter if (patternWithoutDelimiter != null) localVarFormParams.Add("pattern_without_delimiter", this.Configuration.ApiClient.ParameterToString(patternWithoutDelimiter)); // form parameter - if (_byte != null) localVarFormParams.Add("byte", this.Configuration.ApiClient.ParameterToString(_byte)); // form parameter + if (varByte != null) localVarFormParams.Add("byte", this.Configuration.ApiClient.ParameterToString(varByte)); // form parameter if (binary != null) localVarFileParams.Add("binary", this.Configuration.ApiClient.ParameterToFile("binary", binary)); if (date != null) localVarFormParams.Add("date", this.Configuration.ApiClient.ParameterToString(date)); // form parameter if (dateTime != null) localVarFormParams.Add("dateTime", this.Configuration.ApiClient.ParameterToString(dateTime)); // form parameter @@ -2771,14 +2771,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) @@ -2786,9 +2786,9 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Cancellation Token to cancel request (optional) /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, cancellationToken); + await TestEndpointParametersWithHttpInfoAsync(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback, cancellationToken); } @@ -2797,14 +2797,14 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// None - /// None + /// None /// None - /// None + /// None /// None (optional) /// None (optional) /// None (optional) - /// None (optional) - /// None (optional) + /// None (optional) + /// None (optional) /// None (optional) /// None (optional) /// None (optional) @@ -2812,20 +2812,20 @@ namespace Org.OpenAPITools.Api /// None (optional) /// Cancellation Token to cancel request (optional) /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), CancellationToken cancellationToken = default(CancellationToken)) { // verify the required parameter 'number' is set if (number == null) throw new ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); - // verify the required parameter '_double' is set - if (_double == null) - throw new ApiException(400, "Missing required parameter '_double' when calling FakeApi->TestEndpointParameters"); + // verify the required parameter 'varDouble' is set + if (varDouble == null) + throw new ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) throw new ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); - // verify the required parameter '_byte' is set - if (_byte == null) - throw new ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); + // verify the required parameter 'varByte' is set + if (varByte == null) + throw new ApiException(400, "Missing required parameter 'varByte' when calling FakeApi->TestEndpointParameters"); var localVarPath = "/fake"; var localVarPathParams = new Dictionary(); @@ -2852,11 +2852,11 @@ namespace Org.OpenAPITools.Api if (int32 != null) localVarFormParams.Add("int32", this.Configuration.ApiClient.ParameterToString(int32)); // form parameter if (int64 != null) localVarFormParams.Add("int64", this.Configuration.ApiClient.ParameterToString(int64)); // form parameter if (number != null) localVarFormParams.Add("number", this.Configuration.ApiClient.ParameterToString(number)); // form parameter - if (_float != null) localVarFormParams.Add("float", this.Configuration.ApiClient.ParameterToString(_float)); // form parameter - if (_double != null) localVarFormParams.Add("double", this.Configuration.ApiClient.ParameterToString(_double)); // form parameter - if (_string != null) localVarFormParams.Add("string", this.Configuration.ApiClient.ParameterToString(_string)); // form parameter + if (varFloat != null) localVarFormParams.Add("float", this.Configuration.ApiClient.ParameterToString(varFloat)); // form parameter + if (varDouble != null) localVarFormParams.Add("double", this.Configuration.ApiClient.ParameterToString(varDouble)); // form parameter + if (varString != null) localVarFormParams.Add("string", this.Configuration.ApiClient.ParameterToString(varString)); // form parameter if (patternWithoutDelimiter != null) localVarFormParams.Add("pattern_without_delimiter", this.Configuration.ApiClient.ParameterToString(patternWithoutDelimiter)); // form parameter - if (_byte != null) localVarFormParams.Add("byte", this.Configuration.ApiClient.ParameterToString(_byte)); // form parameter + if (varByte != null) localVarFormParams.Add("byte", this.Configuration.ApiClient.ParameterToString(varByte)); // form parameter if (binary != null) localVarFileParams.Add("binary", this.Configuration.ApiClient.ParameterToFile("binary", binary)); if (date != null) localVarFormParams.Add("date", this.Configuration.ApiClient.ParameterToString(date)); // form parameter if (dateTime != null) localVarFormParams.Add("dateTime", this.Configuration.ApiClient.ParameterToString(dateTime)); // form parameter diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/ClassModel.cs index 2e7b4f355ca..0d92bb7de97 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/ClassModel.cs @@ -33,17 +33,17 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _class. - public ClassModel(string _class = default(string)) + /// varClass. + public ClassModel(string varClass = default(string)) { - this.Class = _class; + this.VarClass = varClass; } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name="_class", EmitDefaultValue=false)] - public string Class { get; set; } + public string VarClass { get; set; } /// /// Returns the string presentation of the object @@ -53,7 +53,7 @@ namespace Org.OpenAPITools.Model { var sb = new StringBuilder(); sb.Append("class ClassModel {\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -89,9 +89,9 @@ namespace Org.OpenAPITools.Model return ( - this.Class == input.Class || - (this.Class != null && - this.Class.Equals(input.Class)) + this.VarClass == input.VarClass || + (this.VarClass != null && + this.VarClass.Equals(input.VarClass)) ); } @@ -104,8 +104,8 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Class != null) - hashCode = hashCode * 59 + this.Class.GetHashCode(); + if (this.VarClass != null) + hashCode = hashCode * 59 + this.VarClass.GetHashCode(); return hashCode; } } diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index f816bd93917..ec8fde4dd06 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -33,17 +33,17 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _string. - public FooGetDefaultResponse(Foo _string = default(Foo)) + /// varString. + public FooGetDefaultResponse(Foo varString = default(Foo)) { - this.String = _string; + this.VarString = varString; } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name="string", EmitDefaultValue=false)] - public Foo String { get; set; } + public Foo VarString { get; set; } /// /// Returns the string presentation of the object @@ -53,7 +53,7 @@ namespace Org.OpenAPITools.Model { var sb = new StringBuilder(); sb.Append("class FooGetDefaultResponse {\n"); - sb.Append(" String: ").Append(String).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -89,9 +89,9 @@ namespace Org.OpenAPITools.Model return ( - this.String == input.String || - (this.String != null && - this.String.Equals(input.String)) + this.VarString == input.VarString || + (this.VarString != null && + this.VarString.Equals(input.VarString)) ); } @@ -104,8 +104,8 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.String != null) - hashCode = hashCode * 59 + this.String.GetHashCode(); + if (this.VarString != null) + hashCode = hashCode * 59 + this.VarString.GetHashCode(); return hashCode; } } diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/FormatTest.cs index 7407b826365..96c1a46372d 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/FormatTest.cs @@ -42,11 +42,11 @@ namespace Org.OpenAPITools.Model /// int32. /// int64. /// number (required). - /// _float. - /// _double. - /// _decimal. - /// _string. - /// _byte (required). + /// varFloat. + /// varDouble. + /// varDecimal. + /// varString. + /// varByte (required). /// binary. /// date (required). /// dateTime. @@ -54,7 +54,7 @@ namespace Org.OpenAPITools.Model /// password (required). /// A string that is a 10 digit number. Can have leading zeros.. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. - public FormatTest(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string)) + public FormatTest(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string)) { // to ensure "number" is required (not null) if (number == null) @@ -66,14 +66,14 @@ namespace Org.OpenAPITools.Model this.Number = number; } - // to ensure "_byte" is required (not null) - if (_byte == null) + // to ensure "varByte" is required (not null) + if (varByte == null) { - throw new InvalidDataException("_byte is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("varByte is a required property for FormatTest and cannot be null"); } else { - this.Byte = _byte; + this.VarByte = varByte; } // to ensure "date" is required (not null) @@ -99,10 +99,10 @@ namespace Org.OpenAPITools.Model this.Integer = integer; this.Int32 = int32; this.Int64 = int64; - this.Float = _float; - this.Double = _double; - this.Decimal = _decimal; - this.String = _string; + this.VarFloat = varFloat; + this.VarDouble = varDouble; + this.VarDecimal = varDecimal; + this.VarString = varString; this.Binary = binary; this.DateTime = dateTime; this.Uuid = uuid; @@ -135,34 +135,34 @@ namespace Org.OpenAPITools.Model public decimal Number { get; set; } /// - /// Gets or Sets Float + /// Gets or Sets VarFloat /// [DataMember(Name="float", EmitDefaultValue=false)] - public float Float { get; set; } + public float VarFloat { get; set; } /// - /// Gets or Sets Double + /// Gets or Sets VarDouble /// [DataMember(Name="double", EmitDefaultValue=false)] - public double Double { get; set; } + public double VarDouble { get; set; } /// - /// Gets or Sets Decimal + /// Gets or Sets VarDecimal /// [DataMember(Name="decimal", EmitDefaultValue=false)] - public decimal Decimal { get; set; } + public decimal VarDecimal { get; set; } /// - /// Gets or Sets String + /// Gets or Sets VarString /// [DataMember(Name="string", EmitDefaultValue=false)] - public string String { get; set; } + public string VarString { get; set; } /// - /// Gets or Sets Byte + /// Gets or Sets VarByte /// [DataMember(Name="byte", EmitDefaultValue=true)] - public byte[] Byte { get; set; } + public byte[] VarByte { get; set; } /// /// Gets or Sets Binary @@ -221,11 +221,11 @@ namespace Org.OpenAPITools.Model sb.Append(" Int32: ").Append(Int32).Append("\n"); sb.Append(" Int64: ").Append(Int64).Append("\n"); sb.Append(" Number: ").Append(Number).Append("\n"); - sb.Append(" Float: ").Append(Float).Append("\n"); - sb.Append(" Double: ").Append(Double).Append("\n"); - sb.Append(" Decimal: ").Append(Decimal).Append("\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" Byte: ").Append(Byte).Append("\n"); + sb.Append(" VarFloat: ").Append(VarFloat).Append("\n"); + sb.Append(" VarDouble: ").Append(VarDouble).Append("\n"); + sb.Append(" VarDecimal: ").Append(VarDecimal).Append("\n"); + sb.Append(" VarString: ").Append(VarString).Append("\n"); + sb.Append(" VarByte: ").Append(VarByte).Append("\n"); sb.Append(" Binary: ").Append(Binary).Append("\n"); sb.Append(" Date: ").Append(Date).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n"); @@ -288,29 +288,29 @@ namespace Org.OpenAPITools.Model this.Number.Equals(input.Number)) ) && ( - this.Float == input.Float || - (this.Float != null && - this.Float.Equals(input.Float)) + this.VarFloat == input.VarFloat || + (this.VarFloat != null && + this.VarFloat.Equals(input.VarFloat)) ) && ( - this.Double == input.Double || - (this.Double != null && - this.Double.Equals(input.Double)) + this.VarDouble == input.VarDouble || + (this.VarDouble != null && + this.VarDouble.Equals(input.VarDouble)) ) && ( - this.Decimal == input.Decimal || - (this.Decimal != null && - this.Decimal.Equals(input.Decimal)) + this.VarDecimal == input.VarDecimal || + (this.VarDecimal != null && + this.VarDecimal.Equals(input.VarDecimal)) ) && ( - this.String == input.String || - (this.String != null && - this.String.Equals(input.String)) + this.VarString == input.VarString || + (this.VarString != null && + this.VarString.Equals(input.VarString)) ) && ( - this.Byte == input.Byte || - (this.Byte != null && - this.Byte.Equals(input.Byte)) + this.VarByte == input.VarByte || + (this.VarByte != null && + this.VarByte.Equals(input.VarByte)) ) && ( this.Binary == input.Binary || @@ -366,16 +366,16 @@ namespace Org.OpenAPITools.Model hashCode = hashCode * 59 + this.Int64.GetHashCode(); if (this.Number != null) hashCode = hashCode * 59 + this.Number.GetHashCode(); - if (this.Float != null) - hashCode = hashCode * 59 + this.Float.GetHashCode(); - if (this.Double != null) - hashCode = hashCode * 59 + this.Double.GetHashCode(); - if (this.Decimal != null) - hashCode = hashCode * 59 + this.Decimal.GetHashCode(); - if (this.String != null) - hashCode = hashCode * 59 + this.String.GetHashCode(); - if (this.Byte != null) - hashCode = hashCode * 59 + this.Byte.GetHashCode(); + if (this.VarFloat != null) + hashCode = hashCode * 59 + this.VarFloat.GetHashCode(); + if (this.VarDouble != null) + hashCode = hashCode * 59 + this.VarDouble.GetHashCode(); + if (this.VarDecimal != null) + hashCode = hashCode * 59 + this.VarDecimal.GetHashCode(); + if (this.VarString != null) + hashCode = hashCode * 59 + this.VarString.GetHashCode(); + if (this.VarByte != null) + hashCode = hashCode * 59 + this.VarByte.GetHashCode(); if (this.Binary != null) hashCode = hashCode * 59 + this.Binary.GetHashCode(); if (this.Date != null) @@ -445,39 +445,39 @@ namespace Org.OpenAPITools.Model - // Float (float) maximum - if(this.Float > (float)987.6) + // VarFloat (float) maximum + if(this.VarFloat > (float)987.6) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value less than or equal to 987.6.", new [] { "VarFloat" }); } - // Float (float) minimum - if(this.Float < (float)54.3) + // VarFloat (float) minimum + if(this.VarFloat < (float)54.3) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarFloat, must be a value greater than or equal to 54.3.", new [] { "VarFloat" }); } - // Double (double) maximum - if(this.Double > (double)123.4) + // VarDouble (double) maximum + if(this.VarDouble > (double)123.4) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value less than or equal to 123.4.", new [] { "VarDouble" }); } - // Double (double) minimum - if(this.Double < (double)67.8) + // VarDouble (double) minimum + if(this.VarDouble < (double)67.8) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarDouble, must be a value greater than or equal to 67.8.", new [] { "VarDouble" }); } - // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (false == regexString.Match(this.String).Success) + // VarString (string) pattern + Regex regexVarString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (false == regexVarString.Match(this.VarString).Success) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VarString, must match a pattern of " + regexVarString, new [] { "VarString" }); } // Password (string) maxLength diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/List.cs index 00f1d5f7aa6..a5890e4ab01 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/List.cs @@ -33,17 +33,17 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _123list. - public List(string _123list = default(string)) + /// var123List. + public List(string var123List = default(string)) { - this._123List = _123list; + this.var123List = var123List; } /// - /// Gets or Sets _123List + /// Gets or Sets var123List /// [DataMember(Name="123-list", EmitDefaultValue=false)] - public string _123List { get; set; } + public string var123List { get; set; } /// /// Returns the string presentation of the object @@ -53,7 +53,7 @@ namespace Org.OpenAPITools.Model { var sb = new StringBuilder(); sb.Append("class List {\n"); - sb.Append(" _123List: ").Append(_123List).Append("\n"); + sb.Append(" var123List: ").Append(var123List).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -89,9 +89,9 @@ namespace Org.OpenAPITools.Model return ( - this._123List == input._123List || - (this._123List != null && - this._123List.Equals(input._123List)) + this.var123List == input.var123List || + (this.var123List != null && + this.var123List.Equals(input.var123List)) ); } @@ -104,8 +104,8 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._123List != null) - hashCode = hashCode * 59 + this._123List.GetHashCode(); + if (this.var123List != null) + hashCode = hashCode * 59 + this.var123List.GetHashCode(); return hashCode; } } diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Model200Response.cs index db795044132..1ea16db40f7 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Model200Response.cs @@ -34,11 +34,11 @@ namespace Org.OpenAPITools.Model /// Initializes a new instance of the class. /// /// name. - /// _class. - public Model200Response(int name = default(int), string _class = default(string)) + /// varClass. + public Model200Response(int name = default(int), string varClass = default(string)) { this.Name = name; - this.Class = _class; + this.VarClass = varClass; } /// @@ -48,10 +48,10 @@ namespace Org.OpenAPITools.Model public int Name { get; set; } /// - /// Gets or Sets Class + /// Gets or Sets VarClass /// [DataMember(Name="class", EmitDefaultValue=false)] - public string Class { get; set; } + public string VarClass { get; set; } /// /// Returns the string presentation of the object @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model var sb = new StringBuilder(); sb.Append("class Model200Response {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" VarClass: ").Append(VarClass).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -103,9 +103,9 @@ namespace Org.OpenAPITools.Model this.Name.Equals(input.Name)) ) && ( - this.Class == input.Class || - (this.Class != null && - this.Class.Equals(input.Class)) + this.VarClass == input.VarClass || + (this.VarClass != null && + this.VarClass.Equals(input.VarClass)) ); } @@ -120,8 +120,8 @@ namespace Org.OpenAPITools.Model int hashCode = 41; if (this.Name != null) hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Class != null) - hashCode = hashCode * 59 + this.Class.GetHashCode(); + if (this.VarClass != null) + hashCode = hashCode * 59 + this.VarClass.GetHashCode(); return hashCode; } } diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/ModelClient.cs index 9c1e8a26e5c..60b98795f9b 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/ModelClient.cs @@ -33,17 +33,17 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _client. - public ModelClient(string _client = default(string)) + /// varClient. + public ModelClient(string varClient = default(string)) { - this._Client = _client; + this.varClient = varClient; } /// - /// Gets or Sets _Client + /// Gets or Sets varClient /// [DataMember(Name="client", EmitDefaultValue=false)] - public string _Client { get; set; } + public string varClient { get; set; } /// /// Returns the string presentation of the object @@ -53,7 +53,7 @@ namespace Org.OpenAPITools.Model { var sb = new StringBuilder(); sb.Append("class ModelClient {\n"); - sb.Append(" _Client: ").Append(_Client).Append("\n"); + sb.Append(" varClient: ").Append(varClient).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -89,9 +89,9 @@ namespace Org.OpenAPITools.Model return ( - this._Client == input._Client || - (this._Client != null && - this._Client.Equals(input._Client)) + this.varClient == input.varClient || + (this.varClient != null && + this.varClient.Equals(input.varClient)) ); } @@ -104,8 +104,8 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._Client != null) - hashCode = hashCode * 59 + this._Client.GetHashCode(); + if (this.varClient != null) + hashCode = hashCode * 59 + this.varClient.GetHashCode(); return hashCode; } } diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Name.cs index 4ed6d38a859..c6d4dc92434 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Name.cs @@ -38,28 +38,28 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// name (required). + /// varName (required). /// property. - public Name(int name = default(int), string property = default(string)) + public Name(int varName = default(int), string property = default(string)) { - // to ensure "name" is required (not null) - if (name == null) + // to ensure "varName" is required (not null) + if (varName == null) { - throw new InvalidDataException("name is a required property for Name and cannot be null"); + throw new InvalidDataException("varName is a required property for Name and cannot be null"); } else { - this._Name = name; + this.VarName = varName; } this.Property = property; } /// - /// Gets or Sets _Name + /// Gets or Sets VarName /// [DataMember(Name="name", EmitDefaultValue=true)] - public int _Name { get; set; } + public int VarName { get; set; } /// /// Gets or Sets SnakeCase @@ -74,10 +74,10 @@ namespace Org.OpenAPITools.Model public string Property { get; set; } /// - /// Gets or Sets _123Number + /// Gets or Sets var123Number /// [DataMember(Name="123Number", EmitDefaultValue=false)] - public int _123Number { get; private set; } + public int var123Number { get; private set; } /// /// Returns the string presentation of the object @@ -87,10 +87,10 @@ namespace Org.OpenAPITools.Model { var sb = new StringBuilder(); sb.Append("class Name {\n"); - sb.Append(" _Name: ").Append(_Name).Append("\n"); + sb.Append(" VarName: ").Append(VarName).Append("\n"); sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n"); sb.Append(" Property: ").Append(Property).Append("\n"); - sb.Append(" _123Number: ").Append(_123Number).Append("\n"); + sb.Append(" var123Number: ").Append(var123Number).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -126,9 +126,9 @@ namespace Org.OpenAPITools.Model return ( - this._Name == input._Name || - (this._Name != null && - this._Name.Equals(input._Name)) + this.VarName == input.VarName || + (this.VarName != null && + this.VarName.Equals(input.VarName)) ) && ( this.SnakeCase == input.SnakeCase || @@ -141,9 +141,9 @@ namespace Org.OpenAPITools.Model this.Property.Equals(input.Property)) ) && ( - this._123Number == input._123Number || - (this._123Number != null && - this._123Number.Equals(input._123Number)) + this.var123Number == input.var123Number || + (this.var123Number != null && + this.var123Number.Equals(input.var123Number)) ); } @@ -156,14 +156,14 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._Name != null) - hashCode = hashCode * 59 + this._Name.GetHashCode(); + if (this.VarName != null) + hashCode = hashCode * 59 + this.VarName.GetHashCode(); if (this.SnakeCase != null) hashCode = hashCode * 59 + this.SnakeCase.GetHashCode(); if (this.Property != null) hashCode = hashCode * 59 + this.Property.GetHashCode(); - if (this._123Number != null) - hashCode = hashCode * 59 + this._123Number.GetHashCode(); + if (this.var123Number != null) + hashCode = hashCode * 59 + this.var123Number.GetHashCode(); return hashCode; } } diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Return.cs index f0677fa4714..def31e1770e 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Return.cs @@ -33,17 +33,17 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class. /// - /// _return. - public Return(int _return = default(int)) + /// varReturn. + public Return(int varReturn = default(int)) { - this._Return = _return; + this.VarReturn = varReturn; } /// - /// Gets or Sets _Return + /// Gets or Sets VarReturn /// [DataMember(Name="return", EmitDefaultValue=false)] - public int _Return { get; set; } + public int VarReturn { get; set; } /// /// Returns the string presentation of the object @@ -53,7 +53,7 @@ namespace Org.OpenAPITools.Model { var sb = new StringBuilder(); sb.Append("class Return {\n"); - sb.Append(" _Return: ").Append(_Return).Append("\n"); + sb.Append(" VarReturn: ").Append(VarReturn).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -89,9 +89,9 @@ namespace Org.OpenAPITools.Model return ( - this._Return == input._Return || - (this._Return != null && - this._Return.Equals(input._Return)) + this.VarReturn == input.VarReturn || + (this.VarReturn != null && + this.VarReturn.Equals(input.VarReturn)) ); } @@ -104,8 +104,8 @@ namespace Org.OpenAPITools.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this._Return != null) - hashCode = hashCode * 59 + this._Return.GetHashCode(); + if (this.VarReturn != null) + hashCode = hashCode * 59 + this.VarReturn.GetHashCode(); return hashCode; } }