forked from loafle/openapi-generator-original
[csharp] Fix property names (#13681)
* build samples * build samples * commit java changes * use var as prefix instead of _ for illegal names * resolved conflict
This commit is contained in:
parent
29223e0b81
commit
784c700d37
@ -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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -809,7 +809,7 @@ No authorization required
|
||||
|
||||
<a id="testendpointparameters"></a>
|
||||
# **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"] |
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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]
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -233,14 +233,14 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns></returns>
|
||||
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);
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
@ -258,14 +258,14 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> 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<Object> 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);
|
||||
/// <summary>
|
||||
/// To test enum parameters
|
||||
/// </summary>
|
||||
@ -659,14 +659,14 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
@ -675,7 +675,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
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));
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
@ -685,14 +685,14 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
@ -701,7 +701,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> 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<ApiResponse<Object>> 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));
|
||||
/// <summary>
|
||||
/// To test enum parameters
|
||||
/// </summary>
|
||||
@ -2228,14 +2228,14 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
@ -2243,9 +2243,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns></returns>
|
||||
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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -2253,14 +2253,14 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
@ -2268,7 +2268,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> 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<Object> 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
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
@ -2394,9 +2394,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -2404,14 +2404,14 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
@ -2420,7 +2420,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> 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<Org.OpenAPITools.Client.ApiResponse<Object>> 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);
|
||||
|
@ -35,40 +35,40 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ClassModel" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_class">_class.</param>
|
||||
public ClassModel(string _class = default(string))
|
||||
/// <param name="varClass">varClass.</param>
|
||||
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<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Class
|
||||
/// Gets or Sets VarClass
|
||||
/// </summary>
|
||||
[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;
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <returns>false (boolean)</returns>
|
||||
public bool ShouldSerializeClass()
|
||||
public bool ShouldSerializeVarClass()
|
||||
{
|
||||
return _flagClass;
|
||||
return _flagVarClass;
|
||||
}
|
||||
/// <summary>
|
||||
/// 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)
|
||||
{
|
||||
|
@ -35,40 +35,40 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FooGetDefaultResponse" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_string">_string.</param>
|
||||
public FooGetDefaultResponse(Foo _string = default(Foo))
|
||||
/// <param name="varString">varString.</param>
|
||||
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<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets String
|
||||
/// Gets or Sets VarString
|
||||
/// </summary>
|
||||
[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;
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <returns>false (boolean)</returns>
|
||||
public bool ShouldSerializeString()
|
||||
public bool ShouldSerializeVarString()
|
||||
{
|
||||
return _flagString;
|
||||
return _flagVarString;
|
||||
}
|
||||
/// <summary>
|
||||
/// 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)
|
||||
{
|
||||
|
@ -49,11 +49,11 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="int64">int64.</param>
|
||||
/// <param name="unsignedLong">unsignedLong.</param>
|
||||
/// <param name="number">number (required).</param>
|
||||
/// <param name="_float">_float.</param>
|
||||
/// <param name="_double">_double.</param>
|
||||
/// <param name="_decimal">_decimal.</param>
|
||||
/// <param name="_string">_string.</param>
|
||||
/// <param name="_byte">_byte (required).</param>
|
||||
/// <param name="varFloat">varFloat.</param>
|
||||
/// <param name="varDouble">varDouble.</param>
|
||||
/// <param name="varDecimal">varDecimal.</param>
|
||||
/// <param name="varString">varString.</param>
|
||||
/// <param name="varByte">varByte (required).</param>
|
||||
/// <param name="binary">binary.</param>
|
||||
/// <param name="date">date (required).</param>
|
||||
/// <param name="dateTime">dateTime.</param>
|
||||
@ -62,15 +62,15 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros..</param>
|
||||
/// <param name="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01..</param>
|
||||
/// <param name="patternWithBackslash">None.</param>
|
||||
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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or Sets Float
|
||||
/// Gets or Sets VarFloat
|
||||
/// </summary>
|
||||
[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;
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <returns>false (boolean)</returns>
|
||||
public bool ShouldSerializeFloat()
|
||||
public bool ShouldSerializeVarFloat()
|
||||
{
|
||||
return _flagFloat;
|
||||
return _flagVarFloat;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or Sets Double
|
||||
/// Gets or Sets VarDouble
|
||||
/// </summary>
|
||||
[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;
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <returns>false (boolean)</returns>
|
||||
public bool ShouldSerializeDouble()
|
||||
public bool ShouldSerializeVarDouble()
|
||||
{
|
||||
return _flagDouble;
|
||||
return _flagVarDouble;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or Sets Decimal
|
||||
/// Gets or Sets VarDecimal
|
||||
/// </summary>
|
||||
[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;
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <returns>false (boolean)</returns>
|
||||
public bool ShouldSerializeDecimal()
|
||||
public bool ShouldSerializeVarDecimal()
|
||||
{
|
||||
return _flagDecimal;
|
||||
return _flagVarDecimal;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or Sets String
|
||||
/// Gets or Sets VarString
|
||||
/// </summary>
|
||||
[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;
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <returns>false (boolean)</returns>
|
||||
public bool ShouldSerializeString()
|
||||
public bool ShouldSerializeVarString()
|
||||
{
|
||||
return _flagString;
|
||||
return _flagVarString;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or Sets Byte
|
||||
/// Gets or Sets VarByte
|
||||
/// </summary>
|
||||
[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;
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <returns>false (boolean)</returns>
|
||||
public bool ShouldSerializeByte()
|
||||
public bool ShouldSerializeVarByte()
|
||||
{
|
||||
return _flagByte;
|
||||
return _flagVarByte;
|
||||
}
|
||||
/// <summary>
|
||||
/// 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
|
||||
|
@ -35,40 +35,40 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="List" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_123list">_123list.</param>
|
||||
public List(string _123list = default(string))
|
||||
/// <param name="var123List">var123List.</param>
|
||||
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<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets _123List
|
||||
/// Gets or Sets var123List
|
||||
/// </summary>
|
||||
[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;
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <returns>false (boolean)</returns>
|
||||
public bool ShouldSerialize_123List()
|
||||
public bool ShouldSerializevar123List()
|
||||
{
|
||||
return _flag_123List;
|
||||
return _flagvar123List;
|
||||
}
|
||||
/// <summary>
|
||||
/// 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)
|
||||
{
|
||||
|
@ -36,18 +36,18 @@ namespace Org.OpenAPITools.Model
|
||||
/// Initializes a new instance of the <see cref="Model200Response" /> class.
|
||||
/// </summary>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="_class">_class.</param>
|
||||
public Model200Response(int name = default(int), string _class = default(string))
|
||||
/// <param name="varClass">varClass.</param>
|
||||
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<string, object>();
|
||||
}
|
||||
@ -77,28 +77,28 @@ namespace Org.OpenAPITools.Model
|
||||
return _flagName;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or Sets Class
|
||||
/// Gets or Sets VarClass
|
||||
/// </summary>
|
||||
[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;
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <returns>false (boolean)</returns>
|
||||
public bool ShouldSerializeClass()
|
||||
public bool ShouldSerializeVarClass()
|
||||
{
|
||||
return _flagClass;
|
||||
return _flagVarClass;
|
||||
}
|
||||
/// <summary>
|
||||
/// 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)
|
||||
{
|
||||
|
@ -29,46 +29,46 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// ModelClient
|
||||
/// </summary>
|
||||
[DataContract(Name = "_Client")]
|
||||
[DataContract(Name = "varClient")]
|
||||
public partial class ModelClient : IEquatable<ModelClient>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ModelClient" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_client">_client.</param>
|
||||
public ModelClient(string _client = default(string))
|
||||
/// <param name="varClient">varClient.</param>
|
||||
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<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets _Client
|
||||
/// Gets or Sets varClient
|
||||
/// </summary>
|
||||
[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;
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <returns>false (boolean)</returns>
|
||||
public bool ShouldSerialize_Client()
|
||||
public bool ShouldSerializevarClient()
|
||||
{
|
||||
return _flag_Client;
|
||||
return _flagvarClient;
|
||||
}
|
||||
/// <summary>
|
||||
/// 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)
|
||||
{
|
||||
|
@ -43,11 +43,11 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Name" /> class.
|
||||
/// </summary>
|
||||
/// <param name="name">name (required).</param>
|
||||
/// <param name="varName">varName (required).</param>
|
||||
/// <param name="property">property.</param>
|
||||
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
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets _Name
|
||||
/// Gets or Sets VarName
|
||||
/// </summary>
|
||||
[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;
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <returns>false (boolean)</returns>
|
||||
public bool ShouldSerialize_Name()
|
||||
public bool ShouldSerializeVarName()
|
||||
{
|
||||
return _flag_Name;
|
||||
return _flagVarName;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or Sets SnakeCase
|
||||
@ -119,16 +119,16 @@ namespace Org.OpenAPITools.Model
|
||||
return _flagProperty;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or Sets _123Number
|
||||
/// Gets or Sets var123Number
|
||||
/// </summary>
|
||||
[DataMember(Name = "123Number", EmitDefaultValue = false)]
|
||||
public int _123Number { get; private set; }
|
||||
public int var123Number { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <returns>false (boolean)</returns>
|
||||
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();
|
||||
|
@ -35,40 +35,40 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Return" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_return">_return.</param>
|
||||
public Return(int _return = default(int))
|
||||
/// <param name="varReturn">varReturn.</param>
|
||||
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<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets _Return
|
||||
/// Gets or Sets VarReturn
|
||||
/// </summary>
|
||||
[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;
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <returns>false (boolean)</returns>
|
||||
public bool ShouldSerialize_Return()
|
||||
public bool ShouldSerializeVarReturn()
|
||||
{
|
||||
return _flag_Return;
|
||||
return _flagVarReturn;
|
||||
}
|
||||
/// <summary>
|
||||
/// 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();
|
||||
|
@ -36,18 +36,18 @@ namespace Org.OpenAPITools.Model
|
||||
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
||||
/// </summary>
|
||||
/// <param name="specialPropertyName">specialPropertyName.</param>
|
||||
/// <param name="specialModelName">specialModelName.</param>
|
||||
public SpecialModelName(long specialPropertyName = default(long), string specialModelName = default(string))
|
||||
/// <param name="varSpecialModelName">varSpecialModelName.</param>
|
||||
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<string, object>();
|
||||
}
|
||||
@ -77,28 +77,28 @@ namespace Org.OpenAPITools.Model
|
||||
return _flagSpecialPropertyName;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or Sets _SpecialModelName
|
||||
/// Gets or Sets VarSpecialModelName
|
||||
/// </summary>
|
||||
[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;
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <returns>false (boolean)</returns>
|
||||
public bool ShouldSerialize_SpecialModelName()
|
||||
public bool ShouldSerializeVarSpecialModelName()
|
||||
{
|
||||
return _flag_SpecialModelName;
|
||||
return _flagVarSpecialModelName;
|
||||
}
|
||||
/// <summary>
|
||||
/// 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)
|
||||
{
|
||||
|
@ -809,7 +809,7 @@ No authorization required
|
||||
|
||||
<a id="testendpointparameters"></a>
|
||||
# **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"] |
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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]
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
@ -243,23 +243,23 @@ namespace Org.OpenAPITools.IApi
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </remarks>
|
||||
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task<ApiResponse<object>></returns>
|
||||
Task<ApiResponse<object>> 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<ApiResponse<object>> 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);
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
@ -267,23 +267,23 @@ namespace Org.OpenAPITools.IApi
|
||||
/// <remarks>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </remarks>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task<ApiResponse>object>?></returns>
|
||||
Task<ApiResponse<object>?> 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<ApiResponse<object>?> 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);
|
||||
|
||||
/// <summary>
|
||||
/// To test enum parameters
|
||||
@ -1622,34 +1622,34 @@ namespace Org.OpenAPITools.Api
|
||||
/// <summary>
|
||||
/// Validates the request parameters
|
||||
/// </summary>
|
||||
/// <param name="_byte"></param>
|
||||
/// <param name="varByte"></param>
|
||||
/// <param name="number"></param>
|
||||
/// <param name="_double"></param>
|
||||
/// <param name="varDouble"></param>
|
||||
/// <param name="patternWithoutDelimiter"></param>
|
||||
/// <param name="date"></param>
|
||||
/// <param name="binary"></param>
|
||||
/// <param name="_float"></param>
|
||||
/// <param name="varFloat"></param>
|
||||
/// <param name="integer"></param>
|
||||
/// <param name="int32"></param>
|
||||
/// <param name="int64"></param>
|
||||
/// <param name="_string"></param>
|
||||
/// <param name="varString"></param>
|
||||
/// <param name="password"></param>
|
||||
/// <param name="callback"></param>
|
||||
/// <param name="dateTime"></param>
|
||||
/// <returns></returns>
|
||||
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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Processes the server response
|
||||
/// </summary>
|
||||
/// <param name="apiResponseLocalVar"></param>
|
||||
/// <param name="_byte"></param>
|
||||
/// <param name="varByte"></param>
|
||||
/// <param name="number"></param>
|
||||
/// <param name="_double"></param>
|
||||
/// <param name="varDouble"></param>
|
||||
/// <param name="patternWithoutDelimiter"></param>
|
||||
/// <param name="date"></param>
|
||||
/// <param name="binary"></param>
|
||||
/// <param name="_float"></param>
|
||||
/// <param name="varFloat"></param>
|
||||
/// <param name="integer"></param>
|
||||
/// <param name="int32"></param>
|
||||
/// <param name="int64"></param>
|
||||
/// <param name="_string"></param>
|
||||
/// <param name="varString"></param>
|
||||
/// <param name="password"></param>
|
||||
/// <param name="callback"></param>
|
||||
/// <param name="dateTime"></param>
|
||||
protected virtual void AfterTestEndpointParameters(ApiResponse<object> 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<object> 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
|
||||
/// <param name="exception"></param>
|
||||
/// <param name="pathFormat"></param>
|
||||
/// <param name="path"></param>
|
||||
/// <param name="_byte"></param>
|
||||
/// <param name="varByte"></param>
|
||||
/// <param name="number"></param>
|
||||
/// <param name="_double"></param>
|
||||
/// <param name="varDouble"></param>
|
||||
/// <param name="patternWithoutDelimiter"></param>
|
||||
/// <param name="date"></param>
|
||||
/// <param name="binary"></param>
|
||||
/// <param name="_float"></param>
|
||||
/// <param name="varFloat"></param>
|
||||
/// <param name="integer"></param>
|
||||
/// <param name="int32"></param>
|
||||
/// <param name="int64"></param>
|
||||
/// <param name="_string"></param>
|
||||
/// <param name="varString"></param>
|
||||
/// <param name="password"></param>
|
||||
/// <param name="callback"></param>
|
||||
/// <param name="dateTime"></param>
|
||||
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
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </summary>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns><see cref="Task"/><<see cref="ApiResponse{T}"/>> where T : <see cref="object"/></returns>
|
||||
public async Task<ApiResponse<object>?> 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<ApiResponse<object>?> 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 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </summary>
|
||||
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns><see cref="Task"/><<see cref="ApiResponse{T}"/>> where T : <see cref="object"/></returns>
|
||||
public async Task<ApiResponse<object>> 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<ApiResponse<object>> 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<string?, string?>("byte", ClientUtils.ParameterToString(_byte)));
|
||||
formParameterLocalVars.Add(new KeyValuePair<string?, string?>("byte", ClientUtils.ParameterToString(varByte)));
|
||||
|
||||
|
||||
|
||||
@ -1803,7 +1803,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
|
||||
|
||||
formParameterLocalVars.Add(new KeyValuePair<string?, string?>("double", ClientUtils.ParameterToString(_double)));
|
||||
formParameterLocalVars.Add(new KeyValuePair<string?, string?>("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<string?, string?>("float", ClientUtils.ParameterToString(_float)));
|
||||
if (varFloat != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string?, string?>("float", ClientUtils.ParameterToString(varFloat)));
|
||||
|
||||
if (integer != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string?, string?>("integer", ClientUtils.ParameterToString(integer)));
|
||||
@ -1827,8 +1827,8 @@ namespace Org.OpenAPITools.Api
|
||||
if (int64 != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string?, string?>("int64", ClientUtils.ParameterToString(int64)));
|
||||
|
||||
if (_string != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string?, string?>("string", ClientUtils.ParameterToString(_string)));
|
||||
if (varString != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string?, string?>("string", ClientUtils.ParameterToString(varString)));
|
||||
|
||||
if (password != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string?, string?>("password", ClientUtils.ParameterToString(password)));
|
||||
@ -1872,7 +1872,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
ApiResponse<object> apiResponseLocalVar = new ApiResponse<object>(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;
|
||||
}
|
||||
}
|
||||
|
@ -33,21 +33,21 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ClassModel" /> class.
|
||||
/// </summary>
|
||||
/// <param name="classProperty">classProperty</param>
|
||||
/// <param name="varClass">varClass</param>
|
||||
[JsonConstructor]
|
||||
public ClassModel(string classProperty)
|
||||
public ClassModel(string varClass)
|
||||
{
|
||||
ClassProperty = classProperty;
|
||||
VarClass = varClass;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ClassProperty
|
||||
/// Gets or Sets VarClass
|
||||
/// </summary>
|
||||
[JsonPropertyName("_class")]
|
||||
public string ClassProperty { get; set; }
|
||||
public string VarClass { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -145,7 +145,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
writer.WriteStartObject();
|
||||
|
||||
writer.WriteString("_class", classModel.ClassProperty);
|
||||
writer.WriteString("_class", classModel.VarClass);
|
||||
|
||||
writer.WriteEndObject();
|
||||
}
|
||||
|
@ -33,21 +33,21 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FooGetDefaultResponse" /> class.
|
||||
/// </summary>
|
||||
/// <param name="stringProperty">stringProperty</param>
|
||||
/// <param name="varString">varString</param>
|
||||
[JsonConstructor]
|
||||
public FooGetDefaultResponse(Foo stringProperty)
|
||||
public FooGetDefaultResponse(Foo varString)
|
||||
{
|
||||
StringProperty = stringProperty;
|
||||
VarString = varString;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets StringProperty
|
||||
/// Gets or Sets VarString
|
||||
/// </summary>
|
||||
[JsonPropertyName("string")]
|
||||
public Foo StringProperty { get; set; }
|
||||
public Foo VarString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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<Foo>(ref utf8JsonReader, jsonSerializerOptions);
|
||||
varString = JsonSerializer.Deserialize<Foo>(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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -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();
|
||||
}
|
||||
|
@ -34,12 +34,12 @@ namespace Org.OpenAPITools.Model
|
||||
/// Initializes a new instance of the <see cref="FormatTest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="binary">binary</param>
|
||||
/// <param name="byteProperty">byteProperty</param>
|
||||
/// <param name="varByte">varByte</param>
|
||||
/// <param name="date">date</param>
|
||||
/// <param name="dateTime">dateTime</param>
|
||||
/// <param name="decimalProperty">decimalProperty</param>
|
||||
/// <param name="doubleProperty">doubleProperty</param>
|
||||
/// <param name="floatProperty">floatProperty</param>
|
||||
/// <param name="varDecimal">varDecimal</param>
|
||||
/// <param name="varDouble">varDouble</param>
|
||||
/// <param name="varFloat">varFloat</param>
|
||||
/// <param name="int32">int32</param>
|
||||
/// <param name="int64">int64</param>
|
||||
/// <param name="integer">integer</param>
|
||||
@ -48,20 +48,20 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="patternWithBackslash">None</param>
|
||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</param>
|
||||
/// <param name="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||
/// <param name="stringProperty">stringProperty</param>
|
||||
/// <param name="varString">varString</param>
|
||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||
/// <param name="unsignedLong">unsignedLong</param>
|
||||
/// <param name="uuid">uuid</param>
|
||||
[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; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ByteProperty
|
||||
/// Gets or Sets VarByte
|
||||
/// </summary>
|
||||
[JsonPropertyName("byte")]
|
||||
public byte[] ByteProperty { get; set; }
|
||||
public byte[] VarByte { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Date
|
||||
@ -106,22 +106,22 @@ namespace Org.OpenAPITools.Model
|
||||
public DateTime DateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DecimalProperty
|
||||
/// Gets or Sets VarDecimal
|
||||
/// </summary>
|
||||
[JsonPropertyName("decimal")]
|
||||
public decimal DecimalProperty { get; set; }
|
||||
public decimal VarDecimal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DoubleProperty
|
||||
/// Gets or Sets VarDouble
|
||||
/// </summary>
|
||||
[JsonPropertyName("double")]
|
||||
public double DoubleProperty { get; set; }
|
||||
public double VarDouble { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets FloatProperty
|
||||
/// Gets or Sets VarFloat
|
||||
/// </summary>
|
||||
[JsonPropertyName("float")]
|
||||
public float FloatProperty { get; set; }
|
||||
public float VarFloat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Int32
|
||||
@ -175,10 +175,10 @@ namespace Org.OpenAPITools.Model
|
||||
public string PatternWithDigitsAndDelimiter { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets StringProperty
|
||||
/// Gets or Sets VarString
|
||||
/// </summary>
|
||||
[JsonPropertyName("string")]
|
||||
public string StringProperty { get; set; }
|
||||
public string VarString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> 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<byte[]>(ref utf8JsonReader, jsonSerializerOptions);
|
||||
varByte = JsonSerializer.Deserialize<byte[]>(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<decimal>(ref utf8JsonReader, jsonSerializerOptions);
|
||||
varDecimal = JsonSerializer.Deserialize<decimal>(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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -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);
|
||||
|
@ -33,21 +33,21 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="List" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_123list">_123list</param>
|
||||
/// <param name="var123List">var123List</param>
|
||||
[JsonConstructor]
|
||||
public List(string _123list)
|
||||
public List(string var123List)
|
||||
{
|
||||
_123List = _123list;
|
||||
var123List = var123List;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets _123List
|
||||
/// Gets or Sets var123List
|
||||
/// </summary>
|
||||
[JsonPropertyName("123-list")]
|
||||
public string _123List { get; set; }
|
||||
public string var123List { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -145,7 +145,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
writer.WriteStartObject();
|
||||
|
||||
writer.WriteString("123-list", list._123List);
|
||||
writer.WriteString("123-list", list.var123List);
|
||||
|
||||
writer.WriteEndObject();
|
||||
}
|
||||
|
@ -33,12 +33,12 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Model200Response" /> class.
|
||||
/// </summary>
|
||||
/// <param name="classProperty">classProperty</param>
|
||||
/// <param name="varClass">varClass</param>
|
||||
/// <param name="name">name</param>
|
||||
[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();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ClassProperty
|
||||
/// Gets or Sets VarClass
|
||||
/// </summary>
|
||||
[JsonPropertyName("class")]
|
||||
public string ClassProperty { get; set; }
|
||||
public string VarClass { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -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();
|
||||
|
@ -33,21 +33,21 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ModelClient" /> class.
|
||||
/// </summary>
|
||||
/// <param name="clientProperty">clientProperty</param>
|
||||
/// <param name="varClient">varClient</param>
|
||||
[JsonConstructor]
|
||||
public ModelClient(string clientProperty)
|
||||
public ModelClient(string varClient)
|
||||
{
|
||||
_ClientProperty = clientProperty;
|
||||
varClient = varClient;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets _ClientProperty
|
||||
/// Gets or Sets varClient
|
||||
/// </summary>
|
||||
[JsonPropertyName("client")]
|
||||
public string _ClientProperty { get; set; }
|
||||
public string varClient { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -145,7 +145,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
writer.WriteStartObject();
|
||||
|
||||
writer.WriteString("client", modelClient._ClientProperty);
|
||||
writer.WriteString("client", modelClient.varClient);
|
||||
|
||||
writer.WriteEndObject();
|
||||
}
|
||||
|
@ -33,27 +33,27 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Name" /> class.
|
||||
/// </summary>
|
||||
/// <param name="nameProperty">nameProperty</param>
|
||||
/// <param name="varName">varName</param>
|
||||
/// <param name="property">property</param>
|
||||
/// <param name="snakeCase">snakeCase</param>
|
||||
/// <param name="_123number">_123number</param>
|
||||
/// <param name="var123Number">var123Number</param>
|
||||
[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();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets NameProperty
|
||||
/// Gets or Sets VarName
|
||||
/// </summary>
|
||||
[JsonPropertyName("name")]
|
||||
public int NameProperty { get; set; }
|
||||
public int VarName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Property
|
||||
@ -68,10 +68,10 @@ namespace Org.OpenAPITools.Model
|
||||
public int SnakeCase { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets _123Number
|
||||
/// Gets or Sets var123Number
|
||||
/// </summary>
|
||||
[JsonPropertyName("123Number")]
|
||||
public int _123Number { get; }
|
||||
public int var123Number { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -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();
|
||||
}
|
||||
|
@ -33,11 +33,11 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_string"></param>
|
||||
/// <param name="varString"></param>
|
||||
[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<string>(ref _stringReader, jsonSerializerOptions, out string? _string))
|
||||
return new OneOfString(_string);
|
||||
Utf8JsonReader varStringReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<string>(ref varStringReader, jsonSerializerOptions, out string? varString))
|
||||
return new OneOfString(varString);
|
||||
|
||||
throw new JsonException();
|
||||
}
|
||||
|
@ -33,33 +33,33 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_bool"></param>
|
||||
/// <param name="varBool"></param>
|
||||
[JsonConstructor]
|
||||
internal PolymorphicProperty(bool _bool)
|
||||
internal PolymorphicProperty(bool varBool)
|
||||
{
|
||||
Bool = _bool;
|
||||
Bool = varBool;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_string"></param>
|
||||
/// <param name="varString"></param>
|
||||
[JsonConstructor]
|
||||
internal PolymorphicProperty(string _string)
|
||||
internal PolymorphicProperty(string varString)
|
||||
{
|
||||
String = _string;
|
||||
String = varString;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_object"></param>
|
||||
/// <param name="varObject"></param>
|
||||
[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<bool>(ref _boolReader, jsonSerializerOptions, out bool _bool))
|
||||
return new PolymorphicProperty(_bool);
|
||||
Utf8JsonReader varBoolReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<bool>(ref varBoolReader, jsonSerializerOptions, out bool varBool))
|
||||
return new PolymorphicProperty(varBool);
|
||||
|
||||
Utf8JsonReader _stringReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<string>(ref _stringReader, jsonSerializerOptions, out string? _string))
|
||||
return new PolymorphicProperty(_string);
|
||||
Utf8JsonReader varStringReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<string>(ref varStringReader, jsonSerializerOptions, out string? varString))
|
||||
return new PolymorphicProperty(varString);
|
||||
|
||||
Utf8JsonReader _objectReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<Object>(ref _objectReader, jsonSerializerOptions, out Object? _object))
|
||||
return new PolymorphicProperty(_object);
|
||||
Utf8JsonReader varObjectReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<Object>(ref varObjectReader, jsonSerializerOptions, out Object? varObject))
|
||||
return new PolymorphicProperty(varObject);
|
||||
|
||||
Utf8JsonReader liststringReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<List<string>>(ref liststringReader, jsonSerializerOptions, out List<string>? liststring))
|
||||
|
@ -33,21 +33,21 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Return" /> class.
|
||||
/// </summary>
|
||||
/// <param name="returnProperty">returnProperty</param>
|
||||
/// <param name="varReturn">varReturn</param>
|
||||
[JsonConstructor]
|
||||
public Return(int returnProperty)
|
||||
public Return(int varReturn)
|
||||
{
|
||||
ReturnProperty = returnProperty;
|
||||
VarReturn = varReturn;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ReturnProperty
|
||||
/// Gets or Sets VarReturn
|
||||
/// </summary>
|
||||
[JsonPropertyName("return")]
|
||||
public int ReturnProperty { get; set; }
|
||||
public int VarReturn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A Json writer
|
||||
/// </summary>
|
||||
/// <param name="writer"></param>
|
||||
/// <param name="_return"></param>
|
||||
/// <param name="varReturn"></param>
|
||||
/// <param name="jsonSerializerOptions"></param>
|
||||
/// <exception cref="NotImplementedException"></exception>
|
||||
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();
|
||||
}
|
||||
|
@ -33,12 +33,12 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
||||
/// </summary>
|
||||
/// <param name="specialModelNameProperty">specialModelNameProperty</param>
|
||||
/// <param name="varSpecialModelName">varSpecialModelName</param>
|
||||
/// <param name="specialPropertyName">specialPropertyName</param>
|
||||
[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();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets SpecialModelNameProperty
|
||||
/// Gets or Sets VarSpecialModelName
|
||||
/// </summary>
|
||||
[JsonPropertyName("_special_model.name_")]
|
||||
public string SpecialModelNameProperty { get; set; }
|
||||
public string VarSpecialModelName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -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();
|
||||
|
@ -809,7 +809,7 @@ No authorization required
|
||||
|
||||
<a id="testendpointparameters"></a>
|
||||
# **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"] |
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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]
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
@ -241,23 +241,23 @@ namespace Org.OpenAPITools.IApi
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </remarks>
|
||||
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task<ApiResponse<object>></returns>
|
||||
Task<ApiResponse<object>> 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<ApiResponse<object>> 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);
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
@ -265,23 +265,23 @@ namespace Org.OpenAPITools.IApi
|
||||
/// <remarks>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </remarks>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task<ApiResponse>object>></returns>
|
||||
Task<ApiResponse<object>> 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<ApiResponse<object>> 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);
|
||||
|
||||
/// <summary>
|
||||
/// To test enum parameters
|
||||
@ -1620,34 +1620,34 @@ namespace Org.OpenAPITools.Api
|
||||
/// <summary>
|
||||
/// Validates the request parameters
|
||||
/// </summary>
|
||||
/// <param name="_byte"></param>
|
||||
/// <param name="varByte"></param>
|
||||
/// <param name="number"></param>
|
||||
/// <param name="_double"></param>
|
||||
/// <param name="varDouble"></param>
|
||||
/// <param name="patternWithoutDelimiter"></param>
|
||||
/// <param name="date"></param>
|
||||
/// <param name="binary"></param>
|
||||
/// <param name="_float"></param>
|
||||
/// <param name="varFloat"></param>
|
||||
/// <param name="integer"></param>
|
||||
/// <param name="int32"></param>
|
||||
/// <param name="int64"></param>
|
||||
/// <param name="_string"></param>
|
||||
/// <param name="varString"></param>
|
||||
/// <param name="password"></param>
|
||||
/// <param name="callback"></param>
|
||||
/// <param name="dateTime"></param>
|
||||
/// <returns></returns>
|
||||
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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Processes the server response
|
||||
/// </summary>
|
||||
/// <param name="apiResponseLocalVar"></param>
|
||||
/// <param name="_byte"></param>
|
||||
/// <param name="varByte"></param>
|
||||
/// <param name="number"></param>
|
||||
/// <param name="_double"></param>
|
||||
/// <param name="varDouble"></param>
|
||||
/// <param name="patternWithoutDelimiter"></param>
|
||||
/// <param name="date"></param>
|
||||
/// <param name="binary"></param>
|
||||
/// <param name="_float"></param>
|
||||
/// <param name="varFloat"></param>
|
||||
/// <param name="integer"></param>
|
||||
/// <param name="int32"></param>
|
||||
/// <param name="int64"></param>
|
||||
/// <param name="_string"></param>
|
||||
/// <param name="varString"></param>
|
||||
/// <param name="password"></param>
|
||||
/// <param name="callback"></param>
|
||||
/// <param name="dateTime"></param>
|
||||
protected virtual void AfterTestEndpointParameters(ApiResponse<object> 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<object> 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
|
||||
/// <param name="exception"></param>
|
||||
/// <param name="pathFormat"></param>
|
||||
/// <param name="path"></param>
|
||||
/// <param name="_byte"></param>
|
||||
/// <param name="varByte"></param>
|
||||
/// <param name="number"></param>
|
||||
/// <param name="_double"></param>
|
||||
/// <param name="varDouble"></param>
|
||||
/// <param name="patternWithoutDelimiter"></param>
|
||||
/// <param name="date"></param>
|
||||
/// <param name="binary"></param>
|
||||
/// <param name="_float"></param>
|
||||
/// <param name="varFloat"></param>
|
||||
/// <param name="integer"></param>
|
||||
/// <param name="int32"></param>
|
||||
/// <param name="int64"></param>
|
||||
/// <param name="_string"></param>
|
||||
/// <param name="varString"></param>
|
||||
/// <param name="password"></param>
|
||||
/// <param name="callback"></param>
|
||||
/// <param name="dateTime"></param>
|
||||
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
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </summary>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns><see cref="Task"/><<see cref="ApiResponse{T}"/>> where T : <see cref="object"/></returns>
|
||||
public async Task<ApiResponse<object>> 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<ApiResponse<object>> 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 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </summary>
|
||||
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns><see cref="Task"/><<see cref="ApiResponse{T}"/>> where T : <see cref="object"/></returns>
|
||||
public async Task<ApiResponse<object>> 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<ApiResponse<object>> 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<string, string>("byte", ClientUtils.ParameterToString(_byte)));
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("byte", ClientUtils.ParameterToString(varByte)));
|
||||
|
||||
|
||||
|
||||
@ -1801,7 +1801,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
|
||||
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("double", ClientUtils.ParameterToString(_double)));
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("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<string, string>("float", ClientUtils.ParameterToString(_float)));
|
||||
if (varFloat != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("float", ClientUtils.ParameterToString(varFloat)));
|
||||
|
||||
if (integer != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("integer", ClientUtils.ParameterToString(integer)));
|
||||
@ -1825,8 +1825,8 @@ namespace Org.OpenAPITools.Api
|
||||
if (int64 != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("int64", ClientUtils.ParameterToString(int64)));
|
||||
|
||||
if (_string != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("string", ClientUtils.ParameterToString(_string)));
|
||||
if (varString != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("string", ClientUtils.ParameterToString(varString)));
|
||||
|
||||
if (password != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("password", ClientUtils.ParameterToString(password)));
|
||||
@ -1870,7 +1870,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
ApiResponse<object> apiResponseLocalVar = new ApiResponse<object>(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;
|
||||
}
|
||||
}
|
||||
|
@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ClassModel" /> class.
|
||||
/// </summary>
|
||||
/// <param name="classProperty">classProperty</param>
|
||||
/// <param name="varClass">varClass</param>
|
||||
[JsonConstructor]
|
||||
public ClassModel(string classProperty)
|
||||
public ClassModel(string varClass)
|
||||
{
|
||||
ClassProperty = classProperty;
|
||||
VarClass = varClass;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ClassProperty
|
||||
/// Gets or Sets VarClass
|
||||
/// </summary>
|
||||
[JsonPropertyName("_class")]
|
||||
public string ClassProperty { get; set; }
|
||||
public string VarClass { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -143,7 +143,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
writer.WriteStartObject();
|
||||
|
||||
writer.WriteString("_class", classModel.ClassProperty);
|
||||
writer.WriteString("_class", classModel.VarClass);
|
||||
|
||||
writer.WriteEndObject();
|
||||
}
|
||||
|
@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FooGetDefaultResponse" /> class.
|
||||
/// </summary>
|
||||
/// <param name="stringProperty">stringProperty</param>
|
||||
/// <param name="varString">varString</param>
|
||||
[JsonConstructor]
|
||||
public FooGetDefaultResponse(Foo stringProperty)
|
||||
public FooGetDefaultResponse(Foo varString)
|
||||
{
|
||||
StringProperty = stringProperty;
|
||||
VarString = varString;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets StringProperty
|
||||
/// Gets or Sets VarString
|
||||
/// </summary>
|
||||
[JsonPropertyName("string")]
|
||||
public Foo StringProperty { get; set; }
|
||||
public Foo VarString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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<Foo>(ref utf8JsonReader, jsonSerializerOptions);
|
||||
varString = JsonSerializer.Deserialize<Foo>(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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -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();
|
||||
}
|
||||
|
@ -32,12 +32,12 @@ namespace Org.OpenAPITools.Model
|
||||
/// Initializes a new instance of the <see cref="FormatTest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="binary">binary</param>
|
||||
/// <param name="byteProperty">byteProperty</param>
|
||||
/// <param name="varByte">varByte</param>
|
||||
/// <param name="date">date</param>
|
||||
/// <param name="dateTime">dateTime</param>
|
||||
/// <param name="decimalProperty">decimalProperty</param>
|
||||
/// <param name="doubleProperty">doubleProperty</param>
|
||||
/// <param name="floatProperty">floatProperty</param>
|
||||
/// <param name="varDecimal">varDecimal</param>
|
||||
/// <param name="varDouble">varDouble</param>
|
||||
/// <param name="varFloat">varFloat</param>
|
||||
/// <param name="int32">int32</param>
|
||||
/// <param name="int64">int64</param>
|
||||
/// <param name="integer">integer</param>
|
||||
@ -46,20 +46,20 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="patternWithBackslash">None</param>
|
||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</param>
|
||||
/// <param name="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||
/// <param name="stringProperty">stringProperty</param>
|
||||
/// <param name="varString">varString</param>
|
||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||
/// <param name="unsignedLong">unsignedLong</param>
|
||||
/// <param name="uuid">uuid</param>
|
||||
[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; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ByteProperty
|
||||
/// Gets or Sets VarByte
|
||||
/// </summary>
|
||||
[JsonPropertyName("byte")]
|
||||
public byte[] ByteProperty { get; set; }
|
||||
public byte[] VarByte { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Date
|
||||
@ -104,22 +104,22 @@ namespace Org.OpenAPITools.Model
|
||||
public DateTime DateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DecimalProperty
|
||||
/// Gets or Sets VarDecimal
|
||||
/// </summary>
|
||||
[JsonPropertyName("decimal")]
|
||||
public decimal DecimalProperty { get; set; }
|
||||
public decimal VarDecimal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DoubleProperty
|
||||
/// Gets or Sets VarDouble
|
||||
/// </summary>
|
||||
[JsonPropertyName("double")]
|
||||
public double DoubleProperty { get; set; }
|
||||
public double VarDouble { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets FloatProperty
|
||||
/// Gets or Sets VarFloat
|
||||
/// </summary>
|
||||
[JsonPropertyName("float")]
|
||||
public float FloatProperty { get; set; }
|
||||
public float VarFloat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Int32
|
||||
@ -173,10 +173,10 @@ namespace Org.OpenAPITools.Model
|
||||
public string PatternWithDigitsAndDelimiter { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets StringProperty
|
||||
/// Gets or Sets VarString
|
||||
/// </summary>
|
||||
[JsonPropertyName("string")]
|
||||
public string StringProperty { get; set; }
|
||||
public string VarString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> 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<byte[]>(ref utf8JsonReader, jsonSerializerOptions);
|
||||
varByte = JsonSerializer.Deserialize<byte[]>(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<decimal>(ref utf8JsonReader, jsonSerializerOptions);
|
||||
varDecimal = JsonSerializer.Deserialize<decimal>(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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -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);
|
||||
|
@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="List" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_123list">_123list</param>
|
||||
/// <param name="var123List">var123List</param>
|
||||
[JsonConstructor]
|
||||
public List(string _123list)
|
||||
public List(string var123List)
|
||||
{
|
||||
_123List = _123list;
|
||||
var123List = var123List;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets _123List
|
||||
/// Gets or Sets var123List
|
||||
/// </summary>
|
||||
[JsonPropertyName("123-list")]
|
||||
public string _123List { get; set; }
|
||||
public string var123List { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -143,7 +143,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
writer.WriteStartObject();
|
||||
|
||||
writer.WriteString("123-list", list._123List);
|
||||
writer.WriteString("123-list", list.var123List);
|
||||
|
||||
writer.WriteEndObject();
|
||||
}
|
||||
|
@ -31,12 +31,12 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Model200Response" /> class.
|
||||
/// </summary>
|
||||
/// <param name="classProperty">classProperty</param>
|
||||
/// <param name="varClass">varClass</param>
|
||||
/// <param name="name">name</param>
|
||||
[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();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ClassProperty
|
||||
/// Gets or Sets VarClass
|
||||
/// </summary>
|
||||
[JsonPropertyName("class")]
|
||||
public string ClassProperty { get; set; }
|
||||
public string VarClass { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -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();
|
||||
|
@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ModelClient" /> class.
|
||||
/// </summary>
|
||||
/// <param name="clientProperty">clientProperty</param>
|
||||
/// <param name="varClient">varClient</param>
|
||||
[JsonConstructor]
|
||||
public ModelClient(string clientProperty)
|
||||
public ModelClient(string varClient)
|
||||
{
|
||||
_ClientProperty = clientProperty;
|
||||
varClient = varClient;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets _ClientProperty
|
||||
/// Gets or Sets varClient
|
||||
/// </summary>
|
||||
[JsonPropertyName("client")]
|
||||
public string _ClientProperty { get; set; }
|
||||
public string varClient { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -143,7 +143,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
writer.WriteStartObject();
|
||||
|
||||
writer.WriteString("client", modelClient._ClientProperty);
|
||||
writer.WriteString("client", modelClient.varClient);
|
||||
|
||||
writer.WriteEndObject();
|
||||
}
|
||||
|
@ -31,27 +31,27 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Name" /> class.
|
||||
/// </summary>
|
||||
/// <param name="nameProperty">nameProperty</param>
|
||||
/// <param name="varName">varName</param>
|
||||
/// <param name="property">property</param>
|
||||
/// <param name="snakeCase">snakeCase</param>
|
||||
/// <param name="_123number">_123number</param>
|
||||
/// <param name="var123Number">var123Number</param>
|
||||
[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();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets NameProperty
|
||||
/// Gets or Sets VarName
|
||||
/// </summary>
|
||||
[JsonPropertyName("name")]
|
||||
public int NameProperty { get; set; }
|
||||
public int VarName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Property
|
||||
@ -66,10 +66,10 @@ namespace Org.OpenAPITools.Model
|
||||
public int SnakeCase { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets _123Number
|
||||
/// Gets or Sets var123Number
|
||||
/// </summary>
|
||||
[JsonPropertyName("123Number")]
|
||||
public int _123Number { get; }
|
||||
public int var123Number { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -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();
|
||||
}
|
||||
|
@ -31,11 +31,11 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_string"></param>
|
||||
/// <param name="varString"></param>
|
||||
[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<string>(ref _stringReader, jsonSerializerOptions, out string _string))
|
||||
return new OneOfString(_string);
|
||||
Utf8JsonReader varStringReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<string>(ref varStringReader, jsonSerializerOptions, out string varString))
|
||||
return new OneOfString(varString);
|
||||
|
||||
throw new JsonException();
|
||||
}
|
||||
|
@ -31,33 +31,33 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_bool"></param>
|
||||
/// <param name="varBool"></param>
|
||||
[JsonConstructor]
|
||||
internal PolymorphicProperty(bool _bool)
|
||||
internal PolymorphicProperty(bool varBool)
|
||||
{
|
||||
Bool = _bool;
|
||||
Bool = varBool;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_string"></param>
|
||||
/// <param name="varString"></param>
|
||||
[JsonConstructor]
|
||||
internal PolymorphicProperty(string _string)
|
||||
internal PolymorphicProperty(string varString)
|
||||
{
|
||||
String = _string;
|
||||
String = varString;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_object"></param>
|
||||
/// <param name="varObject"></param>
|
||||
[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<bool>(ref _boolReader, jsonSerializerOptions, out bool _bool))
|
||||
return new PolymorphicProperty(_bool);
|
||||
Utf8JsonReader varBoolReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<bool>(ref varBoolReader, jsonSerializerOptions, out bool varBool))
|
||||
return new PolymorphicProperty(varBool);
|
||||
|
||||
Utf8JsonReader _stringReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<string>(ref _stringReader, jsonSerializerOptions, out string _string))
|
||||
return new PolymorphicProperty(_string);
|
||||
Utf8JsonReader varStringReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<string>(ref varStringReader, jsonSerializerOptions, out string varString))
|
||||
return new PolymorphicProperty(varString);
|
||||
|
||||
Utf8JsonReader _objectReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<Object>(ref _objectReader, jsonSerializerOptions, out Object _object))
|
||||
return new PolymorphicProperty(_object);
|
||||
Utf8JsonReader varObjectReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<Object>(ref varObjectReader, jsonSerializerOptions, out Object varObject))
|
||||
return new PolymorphicProperty(varObject);
|
||||
|
||||
Utf8JsonReader liststringReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<List<string>>(ref liststringReader, jsonSerializerOptions, out List<string> liststring))
|
||||
|
@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Return" /> class.
|
||||
/// </summary>
|
||||
/// <param name="returnProperty">returnProperty</param>
|
||||
/// <param name="varReturn">varReturn</param>
|
||||
[JsonConstructor]
|
||||
public Return(int returnProperty)
|
||||
public Return(int varReturn)
|
||||
{
|
||||
ReturnProperty = returnProperty;
|
||||
VarReturn = varReturn;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ReturnProperty
|
||||
/// Gets or Sets VarReturn
|
||||
/// </summary>
|
||||
[JsonPropertyName("return")]
|
||||
public int ReturnProperty { get; set; }
|
||||
public int VarReturn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A Json writer
|
||||
/// </summary>
|
||||
/// <param name="writer"></param>
|
||||
/// <param name="_return"></param>
|
||||
/// <param name="varReturn"></param>
|
||||
/// <param name="jsonSerializerOptions"></param>
|
||||
/// <exception cref="NotImplementedException"></exception>
|
||||
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();
|
||||
}
|
||||
|
@ -31,12 +31,12 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
||||
/// </summary>
|
||||
/// <param name="specialModelNameProperty">specialModelNameProperty</param>
|
||||
/// <param name="varSpecialModelName">varSpecialModelName</param>
|
||||
/// <param name="specialPropertyName">specialPropertyName</param>
|
||||
[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();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets SpecialModelNameProperty
|
||||
/// Gets or Sets VarSpecialModelName
|
||||
/// </summary>
|
||||
[JsonPropertyName("_special_model.name_")]
|
||||
public string SpecialModelNameProperty { get; set; }
|
||||
public string VarSpecialModelName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -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();
|
||||
|
@ -809,7 +809,7 @@ No authorization required
|
||||
|
||||
<a id="testendpointparameters"></a>
|
||||
# **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"] |
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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]
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
@ -241,23 +241,23 @@ namespace Org.OpenAPITools.IApi
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </remarks>
|
||||
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task<ApiResponse<object>></returns>
|
||||
Task<ApiResponse<object>> 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<ApiResponse<object>> 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);
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
@ -265,23 +265,23 @@ namespace Org.OpenAPITools.IApi
|
||||
/// <remarks>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </remarks>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task<ApiResponse>object>></returns>
|
||||
Task<ApiResponse<object>> 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<ApiResponse<object>> 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);
|
||||
|
||||
/// <summary>
|
||||
/// To test enum parameters
|
||||
@ -1620,34 +1620,34 @@ namespace Org.OpenAPITools.Api
|
||||
/// <summary>
|
||||
/// Validates the request parameters
|
||||
/// </summary>
|
||||
/// <param name="_byte"></param>
|
||||
/// <param name="varByte"></param>
|
||||
/// <param name="number"></param>
|
||||
/// <param name="_double"></param>
|
||||
/// <param name="varDouble"></param>
|
||||
/// <param name="patternWithoutDelimiter"></param>
|
||||
/// <param name="date"></param>
|
||||
/// <param name="binary"></param>
|
||||
/// <param name="_float"></param>
|
||||
/// <param name="varFloat"></param>
|
||||
/// <param name="integer"></param>
|
||||
/// <param name="int32"></param>
|
||||
/// <param name="int64"></param>
|
||||
/// <param name="_string"></param>
|
||||
/// <param name="varString"></param>
|
||||
/// <param name="password"></param>
|
||||
/// <param name="callback"></param>
|
||||
/// <param name="dateTime"></param>
|
||||
/// <returns></returns>
|
||||
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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Processes the server response
|
||||
/// </summary>
|
||||
/// <param name="apiResponseLocalVar"></param>
|
||||
/// <param name="_byte"></param>
|
||||
/// <param name="varByte"></param>
|
||||
/// <param name="number"></param>
|
||||
/// <param name="_double"></param>
|
||||
/// <param name="varDouble"></param>
|
||||
/// <param name="patternWithoutDelimiter"></param>
|
||||
/// <param name="date"></param>
|
||||
/// <param name="binary"></param>
|
||||
/// <param name="_float"></param>
|
||||
/// <param name="varFloat"></param>
|
||||
/// <param name="integer"></param>
|
||||
/// <param name="int32"></param>
|
||||
/// <param name="int64"></param>
|
||||
/// <param name="_string"></param>
|
||||
/// <param name="varString"></param>
|
||||
/// <param name="password"></param>
|
||||
/// <param name="callback"></param>
|
||||
/// <param name="dateTime"></param>
|
||||
protected virtual void AfterTestEndpointParameters(ApiResponse<object> 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<object> 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
|
||||
/// <param name="exception"></param>
|
||||
/// <param name="pathFormat"></param>
|
||||
/// <param name="path"></param>
|
||||
/// <param name="_byte"></param>
|
||||
/// <param name="varByte"></param>
|
||||
/// <param name="number"></param>
|
||||
/// <param name="_double"></param>
|
||||
/// <param name="varDouble"></param>
|
||||
/// <param name="patternWithoutDelimiter"></param>
|
||||
/// <param name="date"></param>
|
||||
/// <param name="binary"></param>
|
||||
/// <param name="_float"></param>
|
||||
/// <param name="varFloat"></param>
|
||||
/// <param name="integer"></param>
|
||||
/// <param name="int32"></param>
|
||||
/// <param name="int64"></param>
|
||||
/// <param name="_string"></param>
|
||||
/// <param name="varString"></param>
|
||||
/// <param name="password"></param>
|
||||
/// <param name="callback"></param>
|
||||
/// <param name="dateTime"></param>
|
||||
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
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </summary>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns><see cref="Task"/><<see cref="ApiResponse{T}"/>> where T : <see cref="object"/></returns>
|
||||
public async Task<ApiResponse<object>> 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<ApiResponse<object>> 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 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </summary>
|
||||
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns><see cref="Task"/><<see cref="ApiResponse{T}"/>> where T : <see cref="object"/></returns>
|
||||
public async Task<ApiResponse<object>> 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<ApiResponse<object>> 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<string, string>("byte", ClientUtils.ParameterToString(_byte)));
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("byte", ClientUtils.ParameterToString(varByte)));
|
||||
|
||||
|
||||
|
||||
@ -1801,7 +1801,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
|
||||
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("double", ClientUtils.ParameterToString(_double)));
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("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<string, string>("float", ClientUtils.ParameterToString(_float)));
|
||||
if (varFloat != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("float", ClientUtils.ParameterToString(varFloat)));
|
||||
|
||||
if (integer != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("integer", ClientUtils.ParameterToString(integer)));
|
||||
@ -1825,8 +1825,8 @@ namespace Org.OpenAPITools.Api
|
||||
if (int64 != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("int64", ClientUtils.ParameterToString(int64)));
|
||||
|
||||
if (_string != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("string", ClientUtils.ParameterToString(_string)));
|
||||
if (varString != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("string", ClientUtils.ParameterToString(varString)));
|
||||
|
||||
if (password != null)
|
||||
formParameterLocalVars.Add(new KeyValuePair<string, string>("password", ClientUtils.ParameterToString(password)));
|
||||
@ -1870,7 +1870,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
ApiResponse<object> apiResponseLocalVar = new ApiResponse<object>(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;
|
||||
}
|
||||
}
|
||||
|
@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ClassModel" /> class.
|
||||
/// </summary>
|
||||
/// <param name="classProperty">classProperty</param>
|
||||
/// <param name="varClass">varClass</param>
|
||||
[JsonConstructor]
|
||||
public ClassModel(string classProperty)
|
||||
public ClassModel(string varClass)
|
||||
{
|
||||
ClassProperty = classProperty;
|
||||
VarClass = varClass;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ClassProperty
|
||||
/// Gets or Sets VarClass
|
||||
/// </summary>
|
||||
[JsonPropertyName("_class")]
|
||||
public string ClassProperty { get; set; }
|
||||
public string VarClass { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -143,7 +143,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
writer.WriteStartObject();
|
||||
|
||||
writer.WriteString("_class", classModel.ClassProperty);
|
||||
writer.WriteString("_class", classModel.VarClass);
|
||||
|
||||
writer.WriteEndObject();
|
||||
}
|
||||
|
@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FooGetDefaultResponse" /> class.
|
||||
/// </summary>
|
||||
/// <param name="stringProperty">stringProperty</param>
|
||||
/// <param name="varString">varString</param>
|
||||
[JsonConstructor]
|
||||
public FooGetDefaultResponse(Foo stringProperty)
|
||||
public FooGetDefaultResponse(Foo varString)
|
||||
{
|
||||
StringProperty = stringProperty;
|
||||
VarString = varString;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets StringProperty
|
||||
/// Gets or Sets VarString
|
||||
/// </summary>
|
||||
[JsonPropertyName("string")]
|
||||
public Foo StringProperty { get; set; }
|
||||
public Foo VarString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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<Foo>(ref utf8JsonReader, jsonSerializerOptions);
|
||||
varString = JsonSerializer.Deserialize<Foo>(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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -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();
|
||||
}
|
||||
|
@ -32,12 +32,12 @@ namespace Org.OpenAPITools.Model
|
||||
/// Initializes a new instance of the <see cref="FormatTest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="binary">binary</param>
|
||||
/// <param name="byteProperty">byteProperty</param>
|
||||
/// <param name="varByte">varByte</param>
|
||||
/// <param name="date">date</param>
|
||||
/// <param name="dateTime">dateTime</param>
|
||||
/// <param name="decimalProperty">decimalProperty</param>
|
||||
/// <param name="doubleProperty">doubleProperty</param>
|
||||
/// <param name="floatProperty">floatProperty</param>
|
||||
/// <param name="varDecimal">varDecimal</param>
|
||||
/// <param name="varDouble">varDouble</param>
|
||||
/// <param name="varFloat">varFloat</param>
|
||||
/// <param name="int32">int32</param>
|
||||
/// <param name="int64">int64</param>
|
||||
/// <param name="integer">integer</param>
|
||||
@ -46,20 +46,20 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="patternWithBackslash">None</param>
|
||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</param>
|
||||
/// <param name="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||
/// <param name="stringProperty">stringProperty</param>
|
||||
/// <param name="varString">varString</param>
|
||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||
/// <param name="unsignedLong">unsignedLong</param>
|
||||
/// <param name="uuid">uuid</param>
|
||||
[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; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ByteProperty
|
||||
/// Gets or Sets VarByte
|
||||
/// </summary>
|
||||
[JsonPropertyName("byte")]
|
||||
public byte[] ByteProperty { get; set; }
|
||||
public byte[] VarByte { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Date
|
||||
@ -104,22 +104,22 @@ namespace Org.OpenAPITools.Model
|
||||
public DateTime DateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DecimalProperty
|
||||
/// Gets or Sets VarDecimal
|
||||
/// </summary>
|
||||
[JsonPropertyName("decimal")]
|
||||
public decimal DecimalProperty { get; set; }
|
||||
public decimal VarDecimal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DoubleProperty
|
||||
/// Gets or Sets VarDouble
|
||||
/// </summary>
|
||||
[JsonPropertyName("double")]
|
||||
public double DoubleProperty { get; set; }
|
||||
public double VarDouble { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets FloatProperty
|
||||
/// Gets or Sets VarFloat
|
||||
/// </summary>
|
||||
[JsonPropertyName("float")]
|
||||
public float FloatProperty { get; set; }
|
||||
public float VarFloat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Int32
|
||||
@ -173,10 +173,10 @@ namespace Org.OpenAPITools.Model
|
||||
public string PatternWithDigitsAndDelimiter { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets StringProperty
|
||||
/// Gets or Sets VarString
|
||||
/// </summary>
|
||||
[JsonPropertyName("string")]
|
||||
public string StringProperty { get; set; }
|
||||
public string VarString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> 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<byte[]>(ref utf8JsonReader, jsonSerializerOptions);
|
||||
varByte = JsonSerializer.Deserialize<byte[]>(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<decimal>(ref utf8JsonReader, jsonSerializerOptions);
|
||||
varDecimal = JsonSerializer.Deserialize<decimal>(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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -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);
|
||||
|
@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="List" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_123list">_123list</param>
|
||||
/// <param name="var123List">var123List</param>
|
||||
[JsonConstructor]
|
||||
public List(string _123list)
|
||||
public List(string var123List)
|
||||
{
|
||||
_123List = _123list;
|
||||
var123List = var123List;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets _123List
|
||||
/// Gets or Sets var123List
|
||||
/// </summary>
|
||||
[JsonPropertyName("123-list")]
|
||||
public string _123List { get; set; }
|
||||
public string var123List { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -143,7 +143,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
writer.WriteStartObject();
|
||||
|
||||
writer.WriteString("123-list", list._123List);
|
||||
writer.WriteString("123-list", list.var123List);
|
||||
|
||||
writer.WriteEndObject();
|
||||
}
|
||||
|
@ -31,12 +31,12 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Model200Response" /> class.
|
||||
/// </summary>
|
||||
/// <param name="classProperty">classProperty</param>
|
||||
/// <param name="varClass">varClass</param>
|
||||
/// <param name="name">name</param>
|
||||
[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();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ClassProperty
|
||||
/// Gets or Sets VarClass
|
||||
/// </summary>
|
||||
[JsonPropertyName("class")]
|
||||
public string ClassProperty { get; set; }
|
||||
public string VarClass { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -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();
|
||||
|
@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ModelClient" /> class.
|
||||
/// </summary>
|
||||
/// <param name="clientProperty">clientProperty</param>
|
||||
/// <param name="varClient">varClient</param>
|
||||
[JsonConstructor]
|
||||
public ModelClient(string clientProperty)
|
||||
public ModelClient(string varClient)
|
||||
{
|
||||
_ClientProperty = clientProperty;
|
||||
varClient = varClient;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets _ClientProperty
|
||||
/// Gets or Sets varClient
|
||||
/// </summary>
|
||||
[JsonPropertyName("client")]
|
||||
public string _ClientProperty { get; set; }
|
||||
public string varClient { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -143,7 +143,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
writer.WriteStartObject();
|
||||
|
||||
writer.WriteString("client", modelClient._ClientProperty);
|
||||
writer.WriteString("client", modelClient.varClient);
|
||||
|
||||
writer.WriteEndObject();
|
||||
}
|
||||
|
@ -31,27 +31,27 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Name" /> class.
|
||||
/// </summary>
|
||||
/// <param name="nameProperty">nameProperty</param>
|
||||
/// <param name="varName">varName</param>
|
||||
/// <param name="property">property</param>
|
||||
/// <param name="snakeCase">snakeCase</param>
|
||||
/// <param name="_123number">_123number</param>
|
||||
/// <param name="var123Number">var123Number</param>
|
||||
[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();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets NameProperty
|
||||
/// Gets or Sets VarName
|
||||
/// </summary>
|
||||
[JsonPropertyName("name")]
|
||||
public int NameProperty { get; set; }
|
||||
public int VarName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Property
|
||||
@ -66,10 +66,10 @@ namespace Org.OpenAPITools.Model
|
||||
public int SnakeCase { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets _123Number
|
||||
/// Gets or Sets var123Number
|
||||
/// </summary>
|
||||
[JsonPropertyName("123Number")]
|
||||
public int _123Number { get; }
|
||||
public int var123Number { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -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();
|
||||
}
|
||||
|
@ -31,11 +31,11 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_string"></param>
|
||||
/// <param name="varString"></param>
|
||||
[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<string>(ref _stringReader, jsonSerializerOptions, out string _string))
|
||||
return new OneOfString(_string);
|
||||
Utf8JsonReader varStringReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<string>(ref varStringReader, jsonSerializerOptions, out string varString))
|
||||
return new OneOfString(varString);
|
||||
|
||||
throw new JsonException();
|
||||
}
|
||||
|
@ -31,33 +31,33 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_bool"></param>
|
||||
/// <param name="varBool"></param>
|
||||
[JsonConstructor]
|
||||
internal PolymorphicProperty(bool _bool)
|
||||
internal PolymorphicProperty(bool varBool)
|
||||
{
|
||||
Bool = _bool;
|
||||
Bool = varBool;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_string"></param>
|
||||
/// <param name="varString"></param>
|
||||
[JsonConstructor]
|
||||
internal PolymorphicProperty(string _string)
|
||||
internal PolymorphicProperty(string varString)
|
||||
{
|
||||
String = _string;
|
||||
String = varString;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_object"></param>
|
||||
/// <param name="varObject"></param>
|
||||
[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<bool>(ref _boolReader, jsonSerializerOptions, out bool _bool))
|
||||
return new PolymorphicProperty(_bool);
|
||||
Utf8JsonReader varBoolReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<bool>(ref varBoolReader, jsonSerializerOptions, out bool varBool))
|
||||
return new PolymorphicProperty(varBool);
|
||||
|
||||
Utf8JsonReader _stringReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<string>(ref _stringReader, jsonSerializerOptions, out string _string))
|
||||
return new PolymorphicProperty(_string);
|
||||
Utf8JsonReader varStringReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<string>(ref varStringReader, jsonSerializerOptions, out string varString))
|
||||
return new PolymorphicProperty(varString);
|
||||
|
||||
Utf8JsonReader _objectReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<Object>(ref _objectReader, jsonSerializerOptions, out Object _object))
|
||||
return new PolymorphicProperty(_object);
|
||||
Utf8JsonReader varObjectReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<Object>(ref varObjectReader, jsonSerializerOptions, out Object varObject))
|
||||
return new PolymorphicProperty(varObject);
|
||||
|
||||
Utf8JsonReader liststringReader = utf8JsonReader;
|
||||
if (Client.ClientUtils.TryDeserialize<List<string>>(ref liststringReader, jsonSerializerOptions, out List<string> liststring))
|
||||
|
@ -31,21 +31,21 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Return" /> class.
|
||||
/// </summary>
|
||||
/// <param name="returnProperty">returnProperty</param>
|
||||
/// <param name="varReturn">varReturn</param>
|
||||
[JsonConstructor]
|
||||
public Return(int returnProperty)
|
||||
public Return(int varReturn)
|
||||
{
|
||||
ReturnProperty = returnProperty;
|
||||
VarReturn = varReturn;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ReturnProperty
|
||||
/// Gets or Sets VarReturn
|
||||
/// </summary>
|
||||
[JsonPropertyName("return")]
|
||||
public int ReturnProperty { get; set; }
|
||||
public int VarReturn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A Json writer
|
||||
/// </summary>
|
||||
/// <param name="writer"></param>
|
||||
/// <param name="_return"></param>
|
||||
/// <param name="varReturn"></param>
|
||||
/// <param name="jsonSerializerOptions"></param>
|
||||
/// <exception cref="NotImplementedException"></exception>
|
||||
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();
|
||||
}
|
||||
|
@ -31,12 +31,12 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
||||
/// </summary>
|
||||
/// <param name="specialModelNameProperty">specialModelNameProperty</param>
|
||||
/// <param name="varSpecialModelName">varSpecialModelName</param>
|
||||
/// <param name="specialPropertyName">specialPropertyName</param>
|
||||
[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();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets SpecialModelNameProperty
|
||||
/// Gets or Sets VarSpecialModelName
|
||||
/// </summary>
|
||||
[JsonPropertyName("_special_model.name_")]
|
||||
public string SpecialModelNameProperty { get; set; }
|
||||
public string VarSpecialModelName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -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();
|
||||
|
@ -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)
|
||||
|
||||
|
@ -845,7 +845,7 @@ No authorization required
|
||||
|
||||
<a id="testendpointparameters"></a>
|
||||
# **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"] |
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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]
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -215,21 +215,21 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <returns></returns>
|
||||
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));
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
@ -239,21 +239,21 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> 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<Object> 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));
|
||||
/// <summary>
|
||||
/// To test enum parameters
|
||||
/// </summary>
|
||||
@ -611,14 +611,14 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
@ -626,7 +626,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
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));
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
@ -636,14 +636,14 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
@ -651,7 +651,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> 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<ApiResponse<Object>> 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));
|
||||
/// <summary>
|
||||
/// To test enum parameters
|
||||
/// </summary>
|
||||
@ -2020,23 +2020,23 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <returns></returns>
|
||||
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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -2044,29 +2044,29 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> 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<Object> 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
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
@ -2168,9 +2168,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -2178,14 +2178,14 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="number">None</param>
|
||||
/// <param name="_double">None</param>
|
||||
/// <param name="varDouble">None</param>
|
||||
/// <param name="patternWithoutDelimiter">None</param>
|
||||
/// <param name="_byte">None</param>
|
||||
/// <param name="varByte">None</param>
|
||||
/// <param name="integer">None (optional)</param>
|
||||
/// <param name="int32">None (optional)</param>
|
||||
/// <param name="int64">None (optional)</param>
|
||||
/// <param name="_float">None (optional)</param>
|
||||
/// <param name="_string">None (optional)</param>
|
||||
/// <param name="varFloat">None (optional)</param>
|
||||
/// <param name="varString">None (optional)</param>
|
||||
/// <param name="binary">None (optional)</param>
|
||||
/// <param name="date">None (optional)</param>
|
||||
/// <param name="dateTime">None (optional, default to "2010-02-01T10:20:10.111110+01:00")</param>
|
||||
@ -2193,15 +2193,15 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> 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<Org.OpenAPITools.Client.ApiResponse<Object>> 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);
|
||||
|
@ -36,18 +36,18 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ClassModel" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_class">_class.</param>
|
||||
public ClassModel(string _class = default(string))
|
||||
/// <param name="varClass">varClass.</param>
|
||||
public ClassModel(string varClass = default(string))
|
||||
{
|
||||
this.Class = _class;
|
||||
this.VarClass = varClass;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Class
|
||||
/// Gets or Sets VarClass
|
||||
/// </summary>
|
||||
[DataMember(Name = "_class", EmitDefaultValue = false)]
|
||||
public string Class { get; set; }
|
||||
public string VarClass { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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)
|
||||
{
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user