forked from loafle/openapi-generator-original
[csharp][generichost] Fixed string formatted as decimal (#20894)
* fixed string formatted as decimal * build tests
This commit is contained in:
parent
8756ff7596
commit
34c6c583cc
@ -179,7 +179,12 @@
|
|||||||
{{^isMap}}
|
{{^isMap}}
|
||||||
{{^isEnum}}
|
{{^isEnum}}
|
||||||
{{^isUuid}}
|
{{^isUuid}}
|
||||||
|
{{#isDecimal}}
|
||||||
|
{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.GetDecimal());
|
||||||
|
{{/isDecimal}}
|
||||||
|
{{^isDecimal}}
|
||||||
{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.GetString(){{^isNullable}}{{nrt!}}{{/isNullable}});
|
{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.GetString(){{^isNullable}}{{nrt!}}{{/isNullable}});
|
||||||
|
{{/isDecimal}}
|
||||||
{{/isUuid}}
|
{{/isUuid}}
|
||||||
{{/isEnum}}
|
{{/isEnum}}
|
||||||
{{/isMap}}
|
{{/isMap}}
|
||||||
@ -439,7 +444,12 @@
|
|||||||
{{^isEnum}}
|
{{^isEnum}}
|
||||||
{{^isUuid}}
|
{{^isUuid}}
|
||||||
{{#lambda.copyText}}
|
{{#lambda.copyText}}
|
||||||
|
{{#isDecimal}}
|
||||||
|
writer.WriteString("{{baseName}}", {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}.ToString());
|
||||||
|
{{/isDecimal}}
|
||||||
|
{{^isDecimal}}
|
||||||
writer.WriteString("{{baseName}}", {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}});
|
writer.WriteString("{{baseName}}", {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}});
|
||||||
|
{{/isDecimal}}
|
||||||
{{/lambda.copyText}}
|
{{/lambda.copyText}}
|
||||||
{{#lambda.indent3}}
|
{{#lambda.indent3}}
|
||||||
{{>WriteProperty}}
|
{{>WriteProperty}}
|
||||||
|
@ -1673,6 +1673,7 @@ components:
|
|||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
properties:
|
properties:
|
||||||
integer:
|
integer:
|
||||||
type: integer
|
type: integer
|
||||||
@ -1771,6 +1772,12 @@ components:
|
|||||||
description: None
|
description: None
|
||||||
type: string
|
type: string
|
||||||
pattern: '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$'
|
pattern: '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$'
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
EnumClass:
|
EnumClass:
|
||||||
type: string
|
type: string
|
||||||
default: '-efg'
|
default: '-efg'
|
||||||
|
@ -1665,11 +1665,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|||||||
**Date** | **DateTime** | |
|
**Date** | **DateTime** | |
|
||||||
**Number** | **decimal** | |
|
**Number** | **decimal** | |
|
||||||
**Password** | **string** | |
|
**Password** | **string** | |
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
**Binary** | **System.IO.Stream** | | [optional]
|
**Binary** | **System.IO.Stream** | | [optional]
|
||||||
**DateTime** | **DateTime** | | [optional]
|
**DateTime** | **DateTime** | | [optional]
|
||||||
**Decimal** | **decimal** | | [optional]
|
**Decimal** | **decimal** | | [optional]
|
||||||
@ -25,6 +26,7 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**String** | **string** | | [optional]
|
**String** | **string** | | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
**UnsignedInteger** | **uint** | | [optional]
|
**UnsignedInteger** | **uint** | | [optional]
|
||||||
**UnsignedLong** | **ulong** | | [optional]
|
**UnsignedLong** | **ulong** | | [optional]
|
||||||
**Uuid** | **Guid** | | [optional]
|
**Uuid** | **Guid** | | [optional]
|
||||||
|
@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'Password'
|
// TODO unit test for the property 'Password'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimalRequired'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalRequiredTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimalRequired'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Binary'
|
/// Test the property 'Binary'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'String'
|
// TODO unit test for the property 'String'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimal'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimal'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'UnsignedInteger'
|
/// Test the property 'UnsignedInteger'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="date">date</param>
|
/// <param name="date">date</param>
|
||||||
/// <param name="number">number</param>
|
/// <param name="number">number</param>
|
||||||
/// <param name="password">password</param>
|
/// <param name="password">password</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
|
||||||
/// <param name="binary">binary</param>
|
/// <param name="binary">binary</param>
|
||||||
/// <param name="dateTime">dateTime</param>
|
/// <param name="dateTime">dateTime</param>
|
||||||
/// <param name="decimal">decimal</param>
|
/// <param name="decimal">decimal</param>
|
||||||
@ -53,16 +54,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||||
/// <param name="string">string</param>
|
/// <param name="string">string</param>
|
||||||
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
|
||||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||||
/// <param name="unsignedLong">unsignedLong</param>
|
/// <param name="unsignedLong">unsignedLong</param>
|
||||||
/// <param name="uuid">uuid</param>
|
/// <param name="uuid">uuid</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public FormatTest(byte[] @byte, DateTime date, decimal number, string password, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
public FormatTest(byte[] @byte, DateTime date, decimal number, string password, decimal stringFormattedAsDecimalRequired, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
||||||
{
|
{
|
||||||
Byte = @byte;
|
Byte = @byte;
|
||||||
Date = date;
|
Date = date;
|
||||||
Number = number;
|
Number = number;
|
||||||
Password = password;
|
Password = password;
|
||||||
|
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
BinaryOption = binary;
|
BinaryOption = binary;
|
||||||
DateTimeOption = dateTime;
|
DateTimeOption = dateTime;
|
||||||
DecimalOption = @decimal;
|
DecimalOption = @decimal;
|
||||||
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
PatternWithDigitsOption = patternWithDigits;
|
PatternWithDigitsOption = patternWithDigits;
|
||||||
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
||||||
StringOption = @string;
|
StringOption = @string;
|
||||||
|
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
|
||||||
UnsignedIntegerOption = unsignedInteger;
|
UnsignedIntegerOption = unsignedInteger;
|
||||||
UnsignedLongOption = unsignedLong;
|
UnsignedLongOption = unsignedLong;
|
||||||
UuidOption = uuid;
|
UuidOption = uuid;
|
||||||
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("password")]
|
[JsonPropertyName("password")]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal_required")]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of Binary
|
/// Used to track the state of Binary
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("string")]
|
[JsonPropertyName("string")]
|
||||||
public string String { get { return this.StringOption; } set { this.StringOption = new Option<string>(value); } }
|
public string String { get { return this.StringOption; } set { this.StringOption = new Option<string>(value); } }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Used to track the state of StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
|
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
|
public Option<decimal?> StringFormattedAsDecimalOption { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal")]
|
||||||
|
public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new Option<decimal?>(value); } }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of UnsignedInteger
|
/// Used to track the state of UnsignedInteger
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" Date: ").Append(Date).Append("\n");
|
sb.Append(" Date: ").Append(Date).Append("\n");
|
||||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
||||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||||
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
||||||
@ -413,6 +437,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" String: ").Append(String).Append("\n");
|
sb.Append(" String: ").Append(String).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<DateTime?> date = default;
|
Option<DateTime?> date = default;
|
||||||
Option<decimal?> number = default;
|
Option<decimal?> number = default;
|
||||||
Option<string> password = default;
|
Option<string> password = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimalRequired = default;
|
||||||
Option<System.IO.Stream> binary = default;
|
Option<System.IO.Stream> binary = default;
|
||||||
Option<DateTime?> dateTime = default;
|
Option<DateTime?> dateTime = default;
|
||||||
Option<decimal?> varDecimal = default;
|
Option<decimal?> varDecimal = default;
|
||||||
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<string> patternWithDigits = default;
|
Option<string> patternWithDigits = default;
|
||||||
Option<string> patternWithDigitsAndDelimiter = default;
|
Option<string> patternWithDigitsAndDelimiter = default;
|
||||||
Option<string> varString = default;
|
Option<string> varString = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimal = default;
|
||||||
Option<uint?> unsignedInteger = default;
|
Option<uint?> unsignedInteger = default;
|
||||||
Option<ulong?> unsignedLong = default;
|
Option<ulong?> unsignedLong = default;
|
||||||
Option<Guid?> uuid = default;
|
Option<Guid?> uuid = default;
|
||||||
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "password":
|
case "password":
|
||||||
password = new Option<string>(utf8JsonReader.GetString());
|
password = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal_required":
|
||||||
|
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "binary":
|
case "binary":
|
||||||
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
||||||
break;
|
break;
|
||||||
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "string":
|
case "string":
|
||||||
varString = new Option<string>(utf8JsonReader.GetString());
|
varString = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal":
|
||||||
|
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "unsigned_integer":
|
case "unsigned_integer":
|
||||||
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
||||||
break;
|
break;
|
||||||
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (!password.IsSet)
|
if (!password.IsSet)
|
||||||
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
||||||
|
|
||||||
|
if (!stringFormattedAsDecimalRequired.IsSet)
|
||||||
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired));
|
||||||
|
|
||||||
if (varByte.IsSet && varByte.Value == null)
|
if (varByte.IsSet && varByte.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -766,6 +802,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (password.IsSet && password.Value == null)
|
if (password.IsSet && password.Value == null)
|
||||||
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (binary.IsSet && binary.Value == null)
|
if (binary.IsSet && binary.Value == null)
|
||||||
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -817,6 +856,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (varString.IsSet && varString.Value == null)
|
if (varString.IsSet && varString.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
||||||
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -826,7 +868,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (uuid.IsSet && uuid.Value == null)
|
if (uuid.IsSet && uuid.Value == null)
|
||||||
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, unsignedInteger, unsignedLong, uuid);
|
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
writer.WriteString("password", formatTest.Password);
|
writer.WriteString("password", formatTest.Password);
|
||||||
|
|
||||||
|
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
|
||||||
|
|
||||||
if (formatTest.BinaryOption.IsSet)
|
if (formatTest.BinaryOption.IsSet)
|
||||||
{
|
{
|
||||||
writer.WritePropertyName("binary");
|
writer.WritePropertyName("binary");
|
||||||
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (formatTest.StringOption.IsSet)
|
if (formatTest.StringOption.IsSet)
|
||||||
writer.WriteString("string", formatTest.String);
|
writer.WriteString("string", formatTest.String);
|
||||||
|
|
||||||
|
if (formatTest.StringFormattedAsDecimalOption.IsSet)
|
||||||
|
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
|
||||||
|
|
||||||
if (formatTest.UnsignedIntegerOption.IsSet)
|
if (formatTest.UnsignedIntegerOption.IsSet)
|
||||||
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
||||||
|
|
||||||
|
@ -1706,11 +1706,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|||||||
**Date** | **DateTime** | |
|
**Date** | **DateTime** | |
|
||||||
**Number** | **decimal** | |
|
**Number** | **decimal** | |
|
||||||
**Password** | **string** | |
|
**Password** | **string** | |
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
**Binary** | **System.IO.Stream** | | [optional]
|
**Binary** | **System.IO.Stream** | | [optional]
|
||||||
**DateTime** | **DateTime** | | [optional]
|
**DateTime** | **DateTime** | | [optional]
|
||||||
**Decimal** | **decimal** | | [optional]
|
**Decimal** | **decimal** | | [optional]
|
||||||
@ -25,6 +26,7 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**String** | **string** | | [optional]
|
**String** | **string** | | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
**UnsignedInteger** | **uint** | | [optional]
|
**UnsignedInteger** | **uint** | | [optional]
|
||||||
**UnsignedLong** | **ulong** | | [optional]
|
**UnsignedLong** | **ulong** | | [optional]
|
||||||
**Uuid** | **Guid** | | [optional]
|
**Uuid** | **Guid** | | [optional]
|
||||||
|
@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'Password'
|
// TODO unit test for the property 'Password'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimalRequired'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalRequiredTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimalRequired'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Binary'
|
/// Test the property 'Binary'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'String'
|
// TODO unit test for the property 'String'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimal'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimal'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'UnsignedInteger'
|
/// Test the property 'UnsignedInteger'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="date">date</param>
|
/// <param name="date">date</param>
|
||||||
/// <param name="number">number</param>
|
/// <param name="number">number</param>
|
||||||
/// <param name="password">password</param>
|
/// <param name="password">password</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
|
||||||
/// <param name="binary">binary</param>
|
/// <param name="binary">binary</param>
|
||||||
/// <param name="dateTime">dateTime</param>
|
/// <param name="dateTime">dateTime</param>
|
||||||
/// <param name="decimal">decimal</param>
|
/// <param name="decimal">decimal</param>
|
||||||
@ -53,16 +54,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||||
/// <param name="string">string</param>
|
/// <param name="string">string</param>
|
||||||
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
|
||||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||||
/// <param name="unsignedLong">unsignedLong</param>
|
/// <param name="unsignedLong">unsignedLong</param>
|
||||||
/// <param name="uuid">uuid</param>
|
/// <param name="uuid">uuid</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public FormatTest(byte[] @byte, DateTime date, decimal number, string password, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
public FormatTest(byte[] @byte, DateTime date, decimal number, string password, decimal stringFormattedAsDecimalRequired, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
||||||
{
|
{
|
||||||
Byte = @byte;
|
Byte = @byte;
|
||||||
Date = date;
|
Date = date;
|
||||||
Number = number;
|
Number = number;
|
||||||
Password = password;
|
Password = password;
|
||||||
|
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
BinaryOption = binary;
|
BinaryOption = binary;
|
||||||
DateTimeOption = dateTime;
|
DateTimeOption = dateTime;
|
||||||
DecimalOption = @decimal;
|
DecimalOption = @decimal;
|
||||||
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
PatternWithDigitsOption = patternWithDigits;
|
PatternWithDigitsOption = patternWithDigits;
|
||||||
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
||||||
StringOption = @string;
|
StringOption = @string;
|
||||||
|
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
|
||||||
UnsignedIntegerOption = unsignedInteger;
|
UnsignedIntegerOption = unsignedInteger;
|
||||||
UnsignedLongOption = unsignedLong;
|
UnsignedLongOption = unsignedLong;
|
||||||
UuidOption = uuid;
|
UuidOption = uuid;
|
||||||
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("password")]
|
[JsonPropertyName("password")]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal_required")]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of Binary
|
/// Used to track the state of Binary
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("string")]
|
[JsonPropertyName("string")]
|
||||||
public string String { get { return this.StringOption; } set { this.StringOption = new Option<string>(value); } }
|
public string String { get { return this.StringOption; } set { this.StringOption = new Option<string>(value); } }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Used to track the state of StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
|
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
|
public Option<decimal?> StringFormattedAsDecimalOption { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal")]
|
||||||
|
public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new Option<decimal?>(value); } }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of UnsignedInteger
|
/// Used to track the state of UnsignedInteger
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" Date: ").Append(Date).Append("\n");
|
sb.Append(" Date: ").Append(Date).Append("\n");
|
||||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
||||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||||
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
||||||
@ -413,6 +437,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" String: ").Append(String).Append("\n");
|
sb.Append(" String: ").Append(String).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<DateTime?> date = default;
|
Option<DateTime?> date = default;
|
||||||
Option<decimal?> number = default;
|
Option<decimal?> number = default;
|
||||||
Option<string> password = default;
|
Option<string> password = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimalRequired = default;
|
||||||
Option<System.IO.Stream> binary = default;
|
Option<System.IO.Stream> binary = default;
|
||||||
Option<DateTime?> dateTime = default;
|
Option<DateTime?> dateTime = default;
|
||||||
Option<decimal?> varDecimal = default;
|
Option<decimal?> varDecimal = default;
|
||||||
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<string> patternWithDigits = default;
|
Option<string> patternWithDigits = default;
|
||||||
Option<string> patternWithDigitsAndDelimiter = default;
|
Option<string> patternWithDigitsAndDelimiter = default;
|
||||||
Option<string> varString = default;
|
Option<string> varString = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimal = default;
|
||||||
Option<uint?> unsignedInteger = default;
|
Option<uint?> unsignedInteger = default;
|
||||||
Option<ulong?> unsignedLong = default;
|
Option<ulong?> unsignedLong = default;
|
||||||
Option<Guid?> uuid = default;
|
Option<Guid?> uuid = default;
|
||||||
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "password":
|
case "password":
|
||||||
password = new Option<string>(utf8JsonReader.GetString());
|
password = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal_required":
|
||||||
|
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "binary":
|
case "binary":
|
||||||
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
||||||
break;
|
break;
|
||||||
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "string":
|
case "string":
|
||||||
varString = new Option<string>(utf8JsonReader.GetString());
|
varString = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal":
|
||||||
|
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "unsigned_integer":
|
case "unsigned_integer":
|
||||||
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
||||||
break;
|
break;
|
||||||
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (!password.IsSet)
|
if (!password.IsSet)
|
||||||
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
||||||
|
|
||||||
|
if (!stringFormattedAsDecimalRequired.IsSet)
|
||||||
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired));
|
||||||
|
|
||||||
if (varByte.IsSet && varByte.Value == null)
|
if (varByte.IsSet && varByte.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -766,6 +802,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (password.IsSet && password.Value == null)
|
if (password.IsSet && password.Value == null)
|
||||||
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (binary.IsSet && binary.Value == null)
|
if (binary.IsSet && binary.Value == null)
|
||||||
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -817,6 +856,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (varString.IsSet && varString.Value == null)
|
if (varString.IsSet && varString.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
||||||
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -826,7 +868,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (uuid.IsSet && uuid.Value == null)
|
if (uuid.IsSet && uuid.Value == null)
|
||||||
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, unsignedInteger, unsignedLong, uuid);
|
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
writer.WriteString("password", formatTest.Password);
|
writer.WriteString("password", formatTest.Password);
|
||||||
|
|
||||||
|
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
|
||||||
|
|
||||||
if (formatTest.BinaryOption.IsSet)
|
if (formatTest.BinaryOption.IsSet)
|
||||||
{
|
{
|
||||||
writer.WritePropertyName("binary");
|
writer.WritePropertyName("binary");
|
||||||
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (formatTest.StringOption.IsSet)
|
if (formatTest.StringOption.IsSet)
|
||||||
writer.WriteString("string", formatTest.String);
|
writer.WriteString("string", formatTest.String);
|
||||||
|
|
||||||
|
if (formatTest.StringFormattedAsDecimalOption.IsSet)
|
||||||
|
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
|
||||||
|
|
||||||
if (formatTest.UnsignedIntegerOption.IsSet)
|
if (formatTest.UnsignedIntegerOption.IsSet)
|
||||||
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
||||||
|
|
||||||
|
@ -1665,11 +1665,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|||||||
**Date** | **DateTime** | |
|
**Date** | **DateTime** | |
|
||||||
**Number** | **decimal** | |
|
**Number** | **decimal** | |
|
||||||
**Password** | **string** | |
|
**Password** | **string** | |
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
**Binary** | **System.IO.Stream** | | [optional]
|
**Binary** | **System.IO.Stream** | | [optional]
|
||||||
**DateTime** | **DateTime** | | [optional]
|
**DateTime** | **DateTime** | | [optional]
|
||||||
**Decimal** | **decimal** | | [optional]
|
**Decimal** | **decimal** | | [optional]
|
||||||
@ -25,6 +26,7 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**String** | **string** | | [optional]
|
**String** | **string** | | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
**UnsignedInteger** | **uint** | | [optional]
|
**UnsignedInteger** | **uint** | | [optional]
|
||||||
**UnsignedLong** | **ulong** | | [optional]
|
**UnsignedLong** | **ulong** | | [optional]
|
||||||
**Uuid** | **Guid** | | [optional]
|
**Uuid** | **Guid** | | [optional]
|
||||||
|
@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'Password'
|
// TODO unit test for the property 'Password'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimalRequired'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalRequiredTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimalRequired'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Binary'
|
/// Test the property 'Binary'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'String'
|
// TODO unit test for the property 'String'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimal'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimal'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'UnsignedInteger'
|
/// Test the property 'UnsignedInteger'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="date">date</param>
|
/// <param name="date">date</param>
|
||||||
/// <param name="number">number</param>
|
/// <param name="number">number</param>
|
||||||
/// <param name="password">password</param>
|
/// <param name="password">password</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
|
||||||
/// <param name="binary">binary</param>
|
/// <param name="binary">binary</param>
|
||||||
/// <param name="dateTime">dateTime</param>
|
/// <param name="dateTime">dateTime</param>
|
||||||
/// <param name="decimal">decimal</param>
|
/// <param name="decimal">decimal</param>
|
||||||
@ -53,16 +54,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||||
/// <param name="string">string</param>
|
/// <param name="string">string</param>
|
||||||
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
|
||||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||||
/// <param name="unsignedLong">unsignedLong</param>
|
/// <param name="unsignedLong">unsignedLong</param>
|
||||||
/// <param name="uuid">uuid</param>
|
/// <param name="uuid">uuid</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public FormatTest(byte[] @byte, DateTime date, decimal number, string password, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
public FormatTest(byte[] @byte, DateTime date, decimal number, string password, decimal stringFormattedAsDecimalRequired, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
||||||
{
|
{
|
||||||
Byte = @byte;
|
Byte = @byte;
|
||||||
Date = date;
|
Date = date;
|
||||||
Number = number;
|
Number = number;
|
||||||
Password = password;
|
Password = password;
|
||||||
|
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
BinaryOption = binary;
|
BinaryOption = binary;
|
||||||
DateTimeOption = dateTime;
|
DateTimeOption = dateTime;
|
||||||
DecimalOption = @decimal;
|
DecimalOption = @decimal;
|
||||||
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
PatternWithDigitsOption = patternWithDigits;
|
PatternWithDigitsOption = patternWithDigits;
|
||||||
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
||||||
StringOption = @string;
|
StringOption = @string;
|
||||||
|
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
|
||||||
UnsignedIntegerOption = unsignedInteger;
|
UnsignedIntegerOption = unsignedInteger;
|
||||||
UnsignedLongOption = unsignedLong;
|
UnsignedLongOption = unsignedLong;
|
||||||
UuidOption = uuid;
|
UuidOption = uuid;
|
||||||
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("password")]
|
[JsonPropertyName("password")]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal_required")]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of Binary
|
/// Used to track the state of Binary
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("string")]
|
[JsonPropertyName("string")]
|
||||||
public string String { get { return this.StringOption; } set { this.StringOption = new Option<string>(value); } }
|
public string String { get { return this.StringOption; } set { this.StringOption = new Option<string>(value); } }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Used to track the state of StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
|
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
|
public Option<decimal?> StringFormattedAsDecimalOption { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal")]
|
||||||
|
public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new Option<decimal?>(value); } }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of UnsignedInteger
|
/// Used to track the state of UnsignedInteger
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" Date: ").Append(Date).Append("\n");
|
sb.Append(" Date: ").Append(Date).Append("\n");
|
||||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
||||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||||
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
||||||
@ -413,6 +437,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" String: ").Append(String).Append("\n");
|
sb.Append(" String: ").Append(String).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<DateTime?> date = default;
|
Option<DateTime?> date = default;
|
||||||
Option<decimal?> number = default;
|
Option<decimal?> number = default;
|
||||||
Option<string> password = default;
|
Option<string> password = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimalRequired = default;
|
||||||
Option<System.IO.Stream> binary = default;
|
Option<System.IO.Stream> binary = default;
|
||||||
Option<DateTime?> dateTime = default;
|
Option<DateTime?> dateTime = default;
|
||||||
Option<decimal?> varDecimal = default;
|
Option<decimal?> varDecimal = default;
|
||||||
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<string> patternWithDigits = default;
|
Option<string> patternWithDigits = default;
|
||||||
Option<string> patternWithDigitsAndDelimiter = default;
|
Option<string> patternWithDigitsAndDelimiter = default;
|
||||||
Option<string> varString = default;
|
Option<string> varString = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimal = default;
|
||||||
Option<uint?> unsignedInteger = default;
|
Option<uint?> unsignedInteger = default;
|
||||||
Option<ulong?> unsignedLong = default;
|
Option<ulong?> unsignedLong = default;
|
||||||
Option<Guid?> uuid = default;
|
Option<Guid?> uuid = default;
|
||||||
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "password":
|
case "password":
|
||||||
password = new Option<string>(utf8JsonReader.GetString());
|
password = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal_required":
|
||||||
|
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "binary":
|
case "binary":
|
||||||
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
||||||
break;
|
break;
|
||||||
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "string":
|
case "string":
|
||||||
varString = new Option<string>(utf8JsonReader.GetString());
|
varString = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal":
|
||||||
|
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "unsigned_integer":
|
case "unsigned_integer":
|
||||||
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
||||||
break;
|
break;
|
||||||
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (!password.IsSet)
|
if (!password.IsSet)
|
||||||
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
||||||
|
|
||||||
|
if (!stringFormattedAsDecimalRequired.IsSet)
|
||||||
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired));
|
||||||
|
|
||||||
if (varByte.IsSet && varByte.Value == null)
|
if (varByte.IsSet && varByte.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -766,6 +802,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (password.IsSet && password.Value == null)
|
if (password.IsSet && password.Value == null)
|
||||||
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (binary.IsSet && binary.Value == null)
|
if (binary.IsSet && binary.Value == null)
|
||||||
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -817,6 +856,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (varString.IsSet && varString.Value == null)
|
if (varString.IsSet && varString.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
||||||
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -826,7 +868,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (uuid.IsSet && uuid.Value == null)
|
if (uuid.IsSet && uuid.Value == null)
|
||||||
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, unsignedInteger, unsignedLong, uuid);
|
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
writer.WriteString("password", formatTest.Password);
|
writer.WriteString("password", formatTest.Password);
|
||||||
|
|
||||||
|
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
|
||||||
|
|
||||||
if (formatTest.BinaryOption.IsSet)
|
if (formatTest.BinaryOption.IsSet)
|
||||||
{
|
{
|
||||||
writer.WritePropertyName("binary");
|
writer.WritePropertyName("binary");
|
||||||
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (formatTest.StringOption.IsSet)
|
if (formatTest.StringOption.IsSet)
|
||||||
writer.WriteString("string", formatTest.String);
|
writer.WriteString("string", formatTest.String);
|
||||||
|
|
||||||
|
if (formatTest.StringFormattedAsDecimalOption.IsSet)
|
||||||
|
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
|
||||||
|
|
||||||
if (formatTest.UnsignedIntegerOption.IsSet)
|
if (formatTest.UnsignedIntegerOption.IsSet)
|
||||||
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
||||||
|
|
||||||
|
@ -1706,11 +1706,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|||||||
**Date** | **DateTime** | |
|
**Date** | **DateTime** | |
|
||||||
**Number** | **decimal** | |
|
**Number** | **decimal** | |
|
||||||
**Password** | **string** | |
|
**Password** | **string** | |
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
**Binary** | **System.IO.Stream** | | [optional]
|
**Binary** | **System.IO.Stream** | | [optional]
|
||||||
**DateTime** | **DateTime** | | [optional]
|
**DateTime** | **DateTime** | | [optional]
|
||||||
**Decimal** | **decimal** | | [optional]
|
**Decimal** | **decimal** | | [optional]
|
||||||
@ -25,6 +26,7 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**String** | **string** | | [optional]
|
**String** | **string** | | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
**UnsignedInteger** | **uint** | | [optional]
|
**UnsignedInteger** | **uint** | | [optional]
|
||||||
**UnsignedLong** | **ulong** | | [optional]
|
**UnsignedLong** | **ulong** | | [optional]
|
||||||
**Uuid** | **Guid** | | [optional]
|
**Uuid** | **Guid** | | [optional]
|
||||||
|
@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'Password'
|
// TODO unit test for the property 'Password'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimalRequired'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalRequiredTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimalRequired'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Binary'
|
/// Test the property 'Binary'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'String'
|
// TODO unit test for the property 'String'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimal'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimal'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'UnsignedInteger'
|
/// Test the property 'UnsignedInteger'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="date">date</param>
|
/// <param name="date">date</param>
|
||||||
/// <param name="number">number</param>
|
/// <param name="number">number</param>
|
||||||
/// <param name="password">password</param>
|
/// <param name="password">password</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
|
||||||
/// <param name="binary">binary</param>
|
/// <param name="binary">binary</param>
|
||||||
/// <param name="dateTime">dateTime</param>
|
/// <param name="dateTime">dateTime</param>
|
||||||
/// <param name="decimal">decimal</param>
|
/// <param name="decimal">decimal</param>
|
||||||
@ -53,16 +54,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||||
/// <param name="string">string</param>
|
/// <param name="string">string</param>
|
||||||
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
|
||||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||||
/// <param name="unsignedLong">unsignedLong</param>
|
/// <param name="unsignedLong">unsignedLong</param>
|
||||||
/// <param name="uuid">uuid</param>
|
/// <param name="uuid">uuid</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public FormatTest(byte[] @byte, DateTime date, decimal number, string password, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
public FormatTest(byte[] @byte, DateTime date, decimal number, string password, decimal stringFormattedAsDecimalRequired, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
||||||
{
|
{
|
||||||
Byte = @byte;
|
Byte = @byte;
|
||||||
Date = date;
|
Date = date;
|
||||||
Number = number;
|
Number = number;
|
||||||
Password = password;
|
Password = password;
|
||||||
|
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
BinaryOption = binary;
|
BinaryOption = binary;
|
||||||
DateTimeOption = dateTime;
|
DateTimeOption = dateTime;
|
||||||
DecimalOption = @decimal;
|
DecimalOption = @decimal;
|
||||||
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
PatternWithDigitsOption = patternWithDigits;
|
PatternWithDigitsOption = patternWithDigits;
|
||||||
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
||||||
StringOption = @string;
|
StringOption = @string;
|
||||||
|
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
|
||||||
UnsignedIntegerOption = unsignedInteger;
|
UnsignedIntegerOption = unsignedInteger;
|
||||||
UnsignedLongOption = unsignedLong;
|
UnsignedLongOption = unsignedLong;
|
||||||
UuidOption = uuid;
|
UuidOption = uuid;
|
||||||
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("password")]
|
[JsonPropertyName("password")]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal_required")]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of Binary
|
/// Used to track the state of Binary
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("string")]
|
[JsonPropertyName("string")]
|
||||||
public string String { get { return this.StringOption; } set { this.StringOption = new Option<string>(value); } }
|
public string String { get { return this.StringOption; } set { this.StringOption = new Option<string>(value); } }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Used to track the state of StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
|
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
|
public Option<decimal?> StringFormattedAsDecimalOption { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal")]
|
||||||
|
public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new Option<decimal?>(value); } }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of UnsignedInteger
|
/// Used to track the state of UnsignedInteger
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" Date: ").Append(Date).Append("\n");
|
sb.Append(" Date: ").Append(Date).Append("\n");
|
||||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
||||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||||
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
||||||
@ -413,6 +437,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" String: ").Append(String).Append("\n");
|
sb.Append(" String: ").Append(String).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<DateTime?> date = default;
|
Option<DateTime?> date = default;
|
||||||
Option<decimal?> number = default;
|
Option<decimal?> number = default;
|
||||||
Option<string> password = default;
|
Option<string> password = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimalRequired = default;
|
||||||
Option<System.IO.Stream> binary = default;
|
Option<System.IO.Stream> binary = default;
|
||||||
Option<DateTime?> dateTime = default;
|
Option<DateTime?> dateTime = default;
|
||||||
Option<decimal?> varDecimal = default;
|
Option<decimal?> varDecimal = default;
|
||||||
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<string> patternWithDigits = default;
|
Option<string> patternWithDigits = default;
|
||||||
Option<string> patternWithDigitsAndDelimiter = default;
|
Option<string> patternWithDigitsAndDelimiter = default;
|
||||||
Option<string> varString = default;
|
Option<string> varString = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimal = default;
|
||||||
Option<uint?> unsignedInteger = default;
|
Option<uint?> unsignedInteger = default;
|
||||||
Option<ulong?> unsignedLong = default;
|
Option<ulong?> unsignedLong = default;
|
||||||
Option<Guid?> uuid = default;
|
Option<Guid?> uuid = default;
|
||||||
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "password":
|
case "password":
|
||||||
password = new Option<string>(utf8JsonReader.GetString());
|
password = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal_required":
|
||||||
|
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "binary":
|
case "binary":
|
||||||
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
||||||
break;
|
break;
|
||||||
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "string":
|
case "string":
|
||||||
varString = new Option<string>(utf8JsonReader.GetString());
|
varString = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal":
|
||||||
|
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "unsigned_integer":
|
case "unsigned_integer":
|
||||||
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
||||||
break;
|
break;
|
||||||
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (!password.IsSet)
|
if (!password.IsSet)
|
||||||
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
||||||
|
|
||||||
|
if (!stringFormattedAsDecimalRequired.IsSet)
|
||||||
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired));
|
||||||
|
|
||||||
if (varByte.IsSet && varByte.Value == null)
|
if (varByte.IsSet && varByte.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -766,6 +802,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (password.IsSet && password.Value == null)
|
if (password.IsSet && password.Value == null)
|
||||||
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (binary.IsSet && binary.Value == null)
|
if (binary.IsSet && binary.Value == null)
|
||||||
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -817,6 +856,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (varString.IsSet && varString.Value == null)
|
if (varString.IsSet && varString.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
||||||
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -826,7 +868,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (uuid.IsSet && uuid.Value == null)
|
if (uuid.IsSet && uuid.Value == null)
|
||||||
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, unsignedInteger, unsignedLong, uuid);
|
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
writer.WriteString("password", formatTest.Password);
|
writer.WriteString("password", formatTest.Password);
|
||||||
|
|
||||||
|
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
|
||||||
|
|
||||||
if (formatTest.BinaryOption.IsSet)
|
if (formatTest.BinaryOption.IsSet)
|
||||||
{
|
{
|
||||||
writer.WritePropertyName("binary");
|
writer.WritePropertyName("binary");
|
||||||
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (formatTest.StringOption.IsSet)
|
if (formatTest.StringOption.IsSet)
|
||||||
writer.WriteString("string", formatTest.String);
|
writer.WriteString("string", formatTest.String);
|
||||||
|
|
||||||
|
if (formatTest.StringFormattedAsDecimalOption.IsSet)
|
||||||
|
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
|
||||||
|
|
||||||
if (formatTest.UnsignedIntegerOption.IsSet)
|
if (formatTest.UnsignedIntegerOption.IsSet)
|
||||||
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
||||||
|
|
||||||
|
@ -1665,11 +1665,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|||||||
**Date** | **DateOnly** | |
|
**Date** | **DateOnly** | |
|
||||||
**Number** | **decimal** | |
|
**Number** | **decimal** | |
|
||||||
**Password** | **string** | |
|
**Password** | **string** | |
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
**Binary** | **System.IO.Stream** | | [optional]
|
**Binary** | **System.IO.Stream** | | [optional]
|
||||||
**DateTime** | **DateTime** | | [optional]
|
**DateTime** | **DateTime** | | [optional]
|
||||||
**Decimal** | **decimal** | | [optional]
|
**Decimal** | **decimal** | | [optional]
|
||||||
@ -25,6 +26,7 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**String** | **string** | | [optional]
|
**String** | **string** | | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
**UnsignedInteger** | **uint** | | [optional]
|
**UnsignedInteger** | **uint** | | [optional]
|
||||||
**UnsignedLong** | **ulong** | | [optional]
|
**UnsignedLong** | **ulong** | | [optional]
|
||||||
**Uuid** | **Guid** | | [optional]
|
**Uuid** | **Guid** | | [optional]
|
||||||
|
@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'Password'
|
// TODO unit test for the property 'Password'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimalRequired'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalRequiredTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimalRequired'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Binary'
|
/// Test the property 'Binary'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'String'
|
// TODO unit test for the property 'String'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimal'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimal'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'UnsignedInteger'
|
/// Test the property 'UnsignedInteger'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="date">date</param>
|
/// <param name="date">date</param>
|
||||||
/// <param name="number">number</param>
|
/// <param name="number">number</param>
|
||||||
/// <param name="password">password</param>
|
/// <param name="password">password</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
|
||||||
/// <param name="binary">binary</param>
|
/// <param name="binary">binary</param>
|
||||||
/// <param name="dateTime">dateTime</param>
|
/// <param name="dateTime">dateTime</param>
|
||||||
/// <param name="decimal">decimal</param>
|
/// <param name="decimal">decimal</param>
|
||||||
@ -53,16 +54,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||||
/// <param name="string">string</param>
|
/// <param name="string">string</param>
|
||||||
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
|
||||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||||
/// <param name="unsignedLong">unsignedLong</param>
|
/// <param name="unsignedLong">unsignedLong</param>
|
||||||
/// <param name="uuid">uuid</param>
|
/// <param name="uuid">uuid</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, decimal stringFormattedAsDecimalRequired, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
||||||
{
|
{
|
||||||
Byte = @byte;
|
Byte = @byte;
|
||||||
Date = date;
|
Date = date;
|
||||||
Number = number;
|
Number = number;
|
||||||
Password = password;
|
Password = password;
|
||||||
|
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
BinaryOption = binary;
|
BinaryOption = binary;
|
||||||
DateTimeOption = dateTime;
|
DateTimeOption = dateTime;
|
||||||
DecimalOption = @decimal;
|
DecimalOption = @decimal;
|
||||||
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
PatternWithDigitsOption = patternWithDigits;
|
PatternWithDigitsOption = patternWithDigits;
|
||||||
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
||||||
StringOption = @string;
|
StringOption = @string;
|
||||||
|
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
|
||||||
UnsignedIntegerOption = unsignedInteger;
|
UnsignedIntegerOption = unsignedInteger;
|
||||||
UnsignedLongOption = unsignedLong;
|
UnsignedLongOption = unsignedLong;
|
||||||
UuidOption = uuid;
|
UuidOption = uuid;
|
||||||
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("password")]
|
[JsonPropertyName("password")]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal_required")]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of Binary
|
/// Used to track the state of Binary
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("string")]
|
[JsonPropertyName("string")]
|
||||||
public string String { get { return this.StringOption; } set { this.StringOption = new(value); } }
|
public string String { get { return this.StringOption; } set { this.StringOption = new(value); } }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Used to track the state of StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
|
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
|
public Option<decimal?> StringFormattedAsDecimalOption { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal")]
|
||||||
|
public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of UnsignedInteger
|
/// Used to track the state of UnsignedInteger
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" Date: ").Append(Date).Append("\n");
|
sb.Append(" Date: ").Append(Date).Append("\n");
|
||||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
||||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||||
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
||||||
@ -413,6 +437,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" String: ").Append(String).Append("\n");
|
sb.Append(" String: ").Append(String).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<DateOnly?> date = default;
|
Option<DateOnly?> date = default;
|
||||||
Option<decimal?> number = default;
|
Option<decimal?> number = default;
|
||||||
Option<string> password = default;
|
Option<string> password = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimalRequired = default;
|
||||||
Option<System.IO.Stream> binary = default;
|
Option<System.IO.Stream> binary = default;
|
||||||
Option<DateTime?> dateTime = default;
|
Option<DateTime?> dateTime = default;
|
||||||
Option<decimal?> varDecimal = default;
|
Option<decimal?> varDecimal = default;
|
||||||
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<string> patternWithDigits = default;
|
Option<string> patternWithDigits = default;
|
||||||
Option<string> patternWithDigitsAndDelimiter = default;
|
Option<string> patternWithDigitsAndDelimiter = default;
|
||||||
Option<string> varString = default;
|
Option<string> varString = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimal = default;
|
||||||
Option<uint?> unsignedInteger = default;
|
Option<uint?> unsignedInteger = default;
|
||||||
Option<ulong?> unsignedLong = default;
|
Option<ulong?> unsignedLong = default;
|
||||||
Option<Guid?> uuid = default;
|
Option<Guid?> uuid = default;
|
||||||
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "password":
|
case "password":
|
||||||
password = new Option<string>(utf8JsonReader.GetString());
|
password = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal_required":
|
||||||
|
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "binary":
|
case "binary":
|
||||||
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
||||||
break;
|
break;
|
||||||
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "string":
|
case "string":
|
||||||
varString = new Option<string>(utf8JsonReader.GetString());
|
varString = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal":
|
||||||
|
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "unsigned_integer":
|
case "unsigned_integer":
|
||||||
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
||||||
break;
|
break;
|
||||||
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (!password.IsSet)
|
if (!password.IsSet)
|
||||||
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
||||||
|
|
||||||
|
if (!stringFormattedAsDecimalRequired.IsSet)
|
||||||
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired));
|
||||||
|
|
||||||
if (varByte.IsSet && varByte.Value == null)
|
if (varByte.IsSet && varByte.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -766,6 +802,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (password.IsSet && password.Value == null)
|
if (password.IsSet && password.Value == null)
|
||||||
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (binary.IsSet && binary.Value == null)
|
if (binary.IsSet && binary.Value == null)
|
||||||
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -817,6 +856,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (varString.IsSet && varString.Value == null)
|
if (varString.IsSet && varString.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
||||||
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -826,7 +868,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (uuid.IsSet && uuid.Value == null)
|
if (uuid.IsSet && uuid.Value == null)
|
||||||
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, unsignedInteger, unsignedLong, uuid);
|
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
writer.WriteString("password", formatTest.Password);
|
writer.WriteString("password", formatTest.Password);
|
||||||
|
|
||||||
|
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
|
||||||
|
|
||||||
if (formatTest.BinaryOption.IsSet)
|
if (formatTest.BinaryOption.IsSet)
|
||||||
{
|
{
|
||||||
writer.WritePropertyName("binary");
|
writer.WritePropertyName("binary");
|
||||||
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (formatTest.StringOption.IsSet)
|
if (formatTest.StringOption.IsSet)
|
||||||
writer.WriteString("string", formatTest.String);
|
writer.WriteString("string", formatTest.String);
|
||||||
|
|
||||||
|
if (formatTest.StringFormattedAsDecimalOption.IsSet)
|
||||||
|
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
|
||||||
|
|
||||||
if (formatTest.UnsignedIntegerOption.IsSet)
|
if (formatTest.UnsignedIntegerOption.IsSet)
|
||||||
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
||||||
|
|
||||||
|
@ -1706,11 +1706,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|||||||
**Date** | **DateOnly** | |
|
**Date** | **DateOnly** | |
|
||||||
**Number** | **decimal** | |
|
**Number** | **decimal** | |
|
||||||
**Password** | **string** | |
|
**Password** | **string** | |
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
**Binary** | **System.IO.Stream** | | [optional]
|
**Binary** | **System.IO.Stream** | | [optional]
|
||||||
**DateTime** | **DateTime** | | [optional]
|
**DateTime** | **DateTime** | | [optional]
|
||||||
**Decimal** | **decimal** | | [optional]
|
**Decimal** | **decimal** | | [optional]
|
||||||
@ -25,6 +26,7 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**String** | **string** | | [optional]
|
**String** | **string** | | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
**UnsignedInteger** | **uint** | | [optional]
|
**UnsignedInteger** | **uint** | | [optional]
|
||||||
**UnsignedLong** | **ulong** | | [optional]
|
**UnsignedLong** | **ulong** | | [optional]
|
||||||
**Uuid** | **Guid** | | [optional]
|
**Uuid** | **Guid** | | [optional]
|
||||||
|
@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'Password'
|
// TODO unit test for the property 'Password'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimalRequired'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalRequiredTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimalRequired'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Binary'
|
/// Test the property 'Binary'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'String'
|
// TODO unit test for the property 'String'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimal'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimal'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'UnsignedInteger'
|
/// Test the property 'UnsignedInteger'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -38,6 +38,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="date">date</param>
|
/// <param name="date">date</param>
|
||||||
/// <param name="number">number</param>
|
/// <param name="number">number</param>
|
||||||
/// <param name="password">password</param>
|
/// <param name="password">password</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
|
||||||
/// <param name="binary">binary</param>
|
/// <param name="binary">binary</param>
|
||||||
/// <param name="dateTime">dateTime</param>
|
/// <param name="dateTime">dateTime</param>
|
||||||
/// <param name="decimal">decimal</param>
|
/// <param name="decimal">decimal</param>
|
||||||
@ -55,16 +56,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||||
/// <param name="string">string</param>
|
/// <param name="string">string</param>
|
||||||
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
|
||||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||||
/// <param name="unsignedLong">unsignedLong</param>
|
/// <param name="unsignedLong">unsignedLong</param>
|
||||||
/// <param name="uuid">uuid</param>
|
/// <param name="uuid">uuid</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, Option<System.IO.Stream?> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string?> patternWithBackslash = default, Option<string?> patternWithDigits = default, Option<string?> patternWithDigitsAndDelimiter = default, Option<string?> @string = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, decimal stringFormattedAsDecimalRequired, Option<System.IO.Stream?> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string?> patternWithBackslash = default, Option<string?> patternWithDigits = default, Option<string?> patternWithDigitsAndDelimiter = default, Option<string?> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
||||||
{
|
{
|
||||||
Byte = @byte;
|
Byte = @byte;
|
||||||
Date = date;
|
Date = date;
|
||||||
Number = number;
|
Number = number;
|
||||||
Password = password;
|
Password = password;
|
||||||
|
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
BinaryOption = binary;
|
BinaryOption = binary;
|
||||||
DateTimeOption = dateTime;
|
DateTimeOption = dateTime;
|
||||||
DecimalOption = @decimal;
|
DecimalOption = @decimal;
|
||||||
@ -82,6 +85,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
PatternWithDigitsOption = patternWithDigits;
|
PatternWithDigitsOption = patternWithDigits;
|
||||||
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
||||||
StringOption = @string;
|
StringOption = @string;
|
||||||
|
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
|
||||||
UnsignedIntegerOption = unsignedInteger;
|
UnsignedIntegerOption = unsignedInteger;
|
||||||
UnsignedLongOption = unsignedLong;
|
UnsignedLongOption = unsignedLong;
|
||||||
UuidOption = uuid;
|
UuidOption = uuid;
|
||||||
@ -115,6 +119,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("password")]
|
[JsonPropertyName("password")]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal_required")]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of Binary
|
/// Used to track the state of Binary
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -340,6 +350,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("string")]
|
[JsonPropertyName("string")]
|
||||||
public string? String { get { return this.StringOption; } set { this.StringOption = new(value); } }
|
public string? String { get { return this.StringOption; } set { this.StringOption = new(value); } }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Used to track the state of StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
|
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
|
public Option<decimal?> StringFormattedAsDecimalOption { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal")]
|
||||||
|
public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of UnsignedInteger
|
/// Used to track the state of UnsignedInteger
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -398,6 +421,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" Date: ").Append(Date).Append("\n");
|
sb.Append(" Date: ").Append(Date).Append("\n");
|
||||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
||||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||||
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
||||||
@ -415,6 +439,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" String: ").Append(String).Append("\n");
|
sb.Append(" String: ").Append(String).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
@ -630,6 +655,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<DateOnly?> date = default;
|
Option<DateOnly?> date = default;
|
||||||
Option<decimal?> number = default;
|
Option<decimal?> number = default;
|
||||||
Option<string?> password = default;
|
Option<string?> password = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimalRequired = default;
|
||||||
Option<System.IO.Stream?> binary = default;
|
Option<System.IO.Stream?> binary = default;
|
||||||
Option<DateTime?> dateTime = default;
|
Option<DateTime?> dateTime = default;
|
||||||
Option<decimal?> varDecimal = default;
|
Option<decimal?> varDecimal = default;
|
||||||
@ -647,6 +673,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<string?> patternWithDigits = default;
|
Option<string?> patternWithDigits = default;
|
||||||
Option<string?> patternWithDigitsAndDelimiter = default;
|
Option<string?> patternWithDigitsAndDelimiter = default;
|
||||||
Option<string?> varString = default;
|
Option<string?> varString = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimal = default;
|
||||||
Option<uint?> unsignedInteger = default;
|
Option<uint?> unsignedInteger = default;
|
||||||
Option<ulong?> unsignedLong = default;
|
Option<ulong?> unsignedLong = default;
|
||||||
Option<Guid?> uuid = default;
|
Option<Guid?> uuid = default;
|
||||||
@ -678,6 +705,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "password":
|
case "password":
|
||||||
password = new Option<string?>(utf8JsonReader.GetString()!);
|
password = new Option<string?>(utf8JsonReader.GetString()!);
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal_required":
|
||||||
|
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "binary":
|
case "binary":
|
||||||
binary = new Option<System.IO.Stream?>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions)!);
|
binary = new Option<System.IO.Stream?>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions)!);
|
||||||
break;
|
break;
|
||||||
@ -729,6 +759,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "string":
|
case "string":
|
||||||
varString = new Option<string?>(utf8JsonReader.GetString()!);
|
varString = new Option<string?>(utf8JsonReader.GetString()!);
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal":
|
||||||
|
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "unsigned_integer":
|
case "unsigned_integer":
|
||||||
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
||||||
break;
|
break;
|
||||||
@ -756,6 +789,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (!password.IsSet)
|
if (!password.IsSet)
|
||||||
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
||||||
|
|
||||||
|
if (!stringFormattedAsDecimalRequired.IsSet)
|
||||||
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired));
|
||||||
|
|
||||||
if (varByte.IsSet && varByte.Value == null)
|
if (varByte.IsSet && varByte.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -768,6 +804,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (password.IsSet && password.Value == null)
|
if (password.IsSet && password.Value == null)
|
||||||
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (binary.IsSet && binary.Value == null)
|
if (binary.IsSet && binary.Value == null)
|
||||||
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -819,6 +858,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (varString.IsSet && varString.Value == null)
|
if (varString.IsSet && varString.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
||||||
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -828,7 +870,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (uuid.IsSet && uuid.Value == null)
|
if (uuid.IsSet && uuid.Value == null)
|
||||||
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, unsignedInteger, unsignedLong, uuid);
|
return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -884,6 +926,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
writer.WriteString("password", formatTest.Password);
|
writer.WriteString("password", formatTest.Password);
|
||||||
|
|
||||||
|
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
|
||||||
|
|
||||||
if (formatTest.BinaryOption.IsSet)
|
if (formatTest.BinaryOption.IsSet)
|
||||||
{
|
{
|
||||||
writer.WritePropertyName("binary");
|
writer.WritePropertyName("binary");
|
||||||
@ -939,6 +983,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (formatTest.StringOption.IsSet)
|
if (formatTest.StringOption.IsSet)
|
||||||
writer.WriteString("string", formatTest.String);
|
writer.WriteString("string", formatTest.String);
|
||||||
|
|
||||||
|
if (formatTest.StringFormattedAsDecimalOption.IsSet)
|
||||||
|
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
|
||||||
|
|
||||||
if (formatTest.UnsignedIntegerOption.IsSet)
|
if (formatTest.UnsignedIntegerOption.IsSet)
|
||||||
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value!.Value);
|
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value!.Value);
|
||||||
|
|
||||||
|
@ -1706,11 +1706,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|||||||
**Date** | **DateOnly** | |
|
**Date** | **DateOnly** | |
|
||||||
**Number** | **decimal** | |
|
**Number** | **decimal** | |
|
||||||
**Password** | **string** | |
|
**Password** | **string** | |
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
**Binary** | **System.IO.Stream** | | [optional]
|
**Binary** | **System.IO.Stream** | | [optional]
|
||||||
**DateTime** | **DateTime** | | [optional]
|
**DateTime** | **DateTime** | | [optional]
|
||||||
**Decimal** | **decimal** | | [optional]
|
**Decimal** | **decimal** | | [optional]
|
||||||
@ -25,6 +26,7 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**String** | **string** | | [optional]
|
**String** | **string** | | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
**UnsignedInteger** | **uint** | | [optional]
|
**UnsignedInteger** | **uint** | | [optional]
|
||||||
**UnsignedLong** | **ulong** | | [optional]
|
**UnsignedLong** | **ulong** | | [optional]
|
||||||
**Uuid** | **Guid** | | [optional]
|
**Uuid** | **Guid** | | [optional]
|
||||||
|
@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'Password'
|
// TODO unit test for the property 'Password'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimalRequired'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalRequiredTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimalRequired'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Binary'
|
/// Test the property 'Binary'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'String'
|
// TODO unit test for the property 'String'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimal'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimal'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'UnsignedInteger'
|
/// Test the property 'UnsignedInteger'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="date">date</param>
|
/// <param name="date">date</param>
|
||||||
/// <param name="number">number</param>
|
/// <param name="number">number</param>
|
||||||
/// <param name="password">password</param>
|
/// <param name="password">password</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
|
||||||
/// <param name="binary">binary</param>
|
/// <param name="binary">binary</param>
|
||||||
/// <param name="dateTime">dateTime</param>
|
/// <param name="dateTime">dateTime</param>
|
||||||
/// <param name="decimal">decimal</param>
|
/// <param name="decimal">decimal</param>
|
||||||
@ -53,16 +54,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||||
/// <param name="string">string</param>
|
/// <param name="string">string</param>
|
||||||
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
|
||||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||||
/// <param name="unsignedLong">unsignedLong</param>
|
/// <param name="unsignedLong">unsignedLong</param>
|
||||||
/// <param name="uuid">uuid</param>
|
/// <param name="uuid">uuid</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, decimal stringFormattedAsDecimalRequired, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
||||||
{
|
{
|
||||||
Byte = @byte;
|
Byte = @byte;
|
||||||
Date = date;
|
Date = date;
|
||||||
Number = number;
|
Number = number;
|
||||||
Password = password;
|
Password = password;
|
||||||
|
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
BinaryOption = binary;
|
BinaryOption = binary;
|
||||||
DateTimeOption = dateTime;
|
DateTimeOption = dateTime;
|
||||||
DecimalOption = @decimal;
|
DecimalOption = @decimal;
|
||||||
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
PatternWithDigitsOption = patternWithDigits;
|
PatternWithDigitsOption = patternWithDigits;
|
||||||
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
||||||
StringOption = @string;
|
StringOption = @string;
|
||||||
|
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
|
||||||
UnsignedIntegerOption = unsignedInteger;
|
UnsignedIntegerOption = unsignedInteger;
|
||||||
UnsignedLongOption = unsignedLong;
|
UnsignedLongOption = unsignedLong;
|
||||||
UuidOption = uuid;
|
UuidOption = uuid;
|
||||||
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("password")]
|
[JsonPropertyName("password")]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal_required")]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of Binary
|
/// Used to track the state of Binary
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("string")]
|
[JsonPropertyName("string")]
|
||||||
public string String { get { return this.StringOption; } set { this.StringOption = new(value); } }
|
public string String { get { return this.StringOption; } set { this.StringOption = new(value); } }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Used to track the state of StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
|
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
|
public Option<decimal?> StringFormattedAsDecimalOption { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal")]
|
||||||
|
public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of UnsignedInteger
|
/// Used to track the state of UnsignedInteger
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" Date: ").Append(Date).Append("\n");
|
sb.Append(" Date: ").Append(Date).Append("\n");
|
||||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
||||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||||
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
||||||
@ -413,6 +437,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" String: ").Append(String).Append("\n");
|
sb.Append(" String: ").Append(String).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<DateOnly?> date = default;
|
Option<DateOnly?> date = default;
|
||||||
Option<decimal?> number = default;
|
Option<decimal?> number = default;
|
||||||
Option<string> password = default;
|
Option<string> password = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimalRequired = default;
|
||||||
Option<System.IO.Stream> binary = default;
|
Option<System.IO.Stream> binary = default;
|
||||||
Option<DateTime?> dateTime = default;
|
Option<DateTime?> dateTime = default;
|
||||||
Option<decimal?> varDecimal = default;
|
Option<decimal?> varDecimal = default;
|
||||||
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<string> patternWithDigits = default;
|
Option<string> patternWithDigits = default;
|
||||||
Option<string> patternWithDigitsAndDelimiter = default;
|
Option<string> patternWithDigitsAndDelimiter = default;
|
||||||
Option<string> varString = default;
|
Option<string> varString = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimal = default;
|
||||||
Option<uint?> unsignedInteger = default;
|
Option<uint?> unsignedInteger = default;
|
||||||
Option<ulong?> unsignedLong = default;
|
Option<ulong?> unsignedLong = default;
|
||||||
Option<Guid?> uuid = default;
|
Option<Guid?> uuid = default;
|
||||||
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "password":
|
case "password":
|
||||||
password = new Option<string>(utf8JsonReader.GetString());
|
password = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal_required":
|
||||||
|
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "binary":
|
case "binary":
|
||||||
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
||||||
break;
|
break;
|
||||||
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "string":
|
case "string":
|
||||||
varString = new Option<string>(utf8JsonReader.GetString());
|
varString = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal":
|
||||||
|
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "unsigned_integer":
|
case "unsigned_integer":
|
||||||
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
||||||
break;
|
break;
|
||||||
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (!password.IsSet)
|
if (!password.IsSet)
|
||||||
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
||||||
|
|
||||||
|
if (!stringFormattedAsDecimalRequired.IsSet)
|
||||||
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired));
|
||||||
|
|
||||||
if (varByte.IsSet && varByte.Value == null)
|
if (varByte.IsSet && varByte.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -766,6 +802,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (password.IsSet && password.Value == null)
|
if (password.IsSet && password.Value == null)
|
||||||
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (binary.IsSet && binary.Value == null)
|
if (binary.IsSet && binary.Value == null)
|
||||||
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -817,6 +856,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (varString.IsSet && varString.Value == null)
|
if (varString.IsSet && varString.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
||||||
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -826,7 +868,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (uuid.IsSet && uuid.Value == null)
|
if (uuid.IsSet && uuid.Value == null)
|
||||||
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, unsignedInteger, unsignedLong, uuid);
|
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
writer.WriteString("password", formatTest.Password);
|
writer.WriteString("password", formatTest.Password);
|
||||||
|
|
||||||
|
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
|
||||||
|
|
||||||
if (formatTest.BinaryOption.IsSet)
|
if (formatTest.BinaryOption.IsSet)
|
||||||
{
|
{
|
||||||
writer.WritePropertyName("binary");
|
writer.WritePropertyName("binary");
|
||||||
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (formatTest.StringOption.IsSet)
|
if (formatTest.StringOption.IsSet)
|
||||||
writer.WriteString("string", formatTest.String);
|
writer.WriteString("string", formatTest.String);
|
||||||
|
|
||||||
|
if (formatTest.StringFormattedAsDecimalOption.IsSet)
|
||||||
|
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
|
||||||
|
|
||||||
if (formatTest.UnsignedIntegerOption.IsSet)
|
if (formatTest.UnsignedIntegerOption.IsSet)
|
||||||
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
||||||
|
|
||||||
|
@ -1706,11 +1706,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|||||||
**Date** | **DateOnly** | |
|
**Date** | **DateOnly** | |
|
||||||
**Number** | **decimal** | |
|
**Number** | **decimal** | |
|
||||||
**Password** | **string** | |
|
**Password** | **string** | |
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
**Binary** | **System.IO.Stream** | | [optional]
|
**Binary** | **System.IO.Stream** | | [optional]
|
||||||
**DateTime** | **DateTime** | | [optional]
|
**DateTime** | **DateTime** | | [optional]
|
||||||
**Decimal** | **decimal** | | [optional]
|
**Decimal** | **decimal** | | [optional]
|
||||||
@ -25,6 +26,7 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**String** | **string** | | [optional]
|
**String** | **string** | | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
**UnsignedInteger** | **uint** | | [optional]
|
**UnsignedInteger** | **uint** | | [optional]
|
||||||
**UnsignedLong** | **ulong** | | [optional]
|
**UnsignedLong** | **ulong** | | [optional]
|
||||||
**Uuid** | **Guid** | | [optional]
|
**Uuid** | **Guid** | | [optional]
|
||||||
|
@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'Password'
|
// TODO unit test for the property 'Password'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimalRequired'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalRequiredTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimalRequired'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Binary'
|
/// Test the property 'Binary'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'String'
|
// TODO unit test for the property 'String'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimal'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimal'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'UnsignedInteger'
|
/// Test the property 'UnsignedInteger'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -39,6 +39,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="date">date</param>
|
/// <param name="date">date</param>
|
||||||
/// <param name="number">number</param>
|
/// <param name="number">number</param>
|
||||||
/// <param name="password">password</param>
|
/// <param name="password">password</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
|
||||||
/// <param name="binary">binary</param>
|
/// <param name="binary">binary</param>
|
||||||
/// <param name="dateTime">dateTime</param>
|
/// <param name="dateTime">dateTime</param>
|
||||||
/// <param name="decimal">decimal</param>
|
/// <param name="decimal">decimal</param>
|
||||||
@ -56,16 +57,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||||
/// <param name="string">string</param>
|
/// <param name="string">string</param>
|
||||||
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
|
||||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||||
/// <param name="unsignedLong">unsignedLong</param>
|
/// <param name="unsignedLong">unsignedLong</param>
|
||||||
/// <param name="uuid">uuid</param>
|
/// <param name="uuid">uuid</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, Option<System.IO.Stream?> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string?> patternWithBackslash = default, Option<string?> patternWithDigits = default, Option<string?> patternWithDigitsAndDelimiter = default, Option<string?> @string = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, decimal stringFormattedAsDecimalRequired, Option<System.IO.Stream?> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string?> patternWithBackslash = default, Option<string?> patternWithDigits = default, Option<string?> patternWithDigitsAndDelimiter = default, Option<string?> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
||||||
{
|
{
|
||||||
Byte = @byte;
|
Byte = @byte;
|
||||||
Date = date;
|
Date = date;
|
||||||
Number = number;
|
Number = number;
|
||||||
Password = password;
|
Password = password;
|
||||||
|
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
BinaryOption = binary;
|
BinaryOption = binary;
|
||||||
DateTimeOption = dateTime;
|
DateTimeOption = dateTime;
|
||||||
DecimalOption = @decimal;
|
DecimalOption = @decimal;
|
||||||
@ -83,6 +86,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
PatternWithDigitsOption = patternWithDigits;
|
PatternWithDigitsOption = patternWithDigits;
|
||||||
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
||||||
StringOption = @string;
|
StringOption = @string;
|
||||||
|
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
|
||||||
UnsignedIntegerOption = unsignedInteger;
|
UnsignedIntegerOption = unsignedInteger;
|
||||||
UnsignedLongOption = unsignedLong;
|
UnsignedLongOption = unsignedLong;
|
||||||
UuidOption = uuid;
|
UuidOption = uuid;
|
||||||
@ -116,6 +120,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("password")]
|
[JsonPropertyName("password")]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal_required")]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of Binary
|
/// Used to track the state of Binary
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -341,6 +351,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("string")]
|
[JsonPropertyName("string")]
|
||||||
public string? String { get { return this.StringOption; } set { this.StringOption = new(value); } }
|
public string? String { get { return this.StringOption; } set { this.StringOption = new(value); } }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Used to track the state of StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
|
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
|
public Option<decimal?> StringFormattedAsDecimalOption { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal")]
|
||||||
|
public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of UnsignedInteger
|
/// Used to track the state of UnsignedInteger
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -399,6 +422,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" Date: ").Append(Date).Append("\n");
|
sb.Append(" Date: ").Append(Date).Append("\n");
|
||||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
||||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||||
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
||||||
@ -416,6 +440,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" String: ").Append(String).Append("\n");
|
sb.Append(" String: ").Append(String).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
@ -631,6 +656,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<DateOnly?> date = default;
|
Option<DateOnly?> date = default;
|
||||||
Option<decimal?> number = default;
|
Option<decimal?> number = default;
|
||||||
Option<string?> password = default;
|
Option<string?> password = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimalRequired = default;
|
||||||
Option<System.IO.Stream?> binary = default;
|
Option<System.IO.Stream?> binary = default;
|
||||||
Option<DateTime?> dateTime = default;
|
Option<DateTime?> dateTime = default;
|
||||||
Option<decimal?> varDecimal = default;
|
Option<decimal?> varDecimal = default;
|
||||||
@ -648,6 +674,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<string?> patternWithDigits = default;
|
Option<string?> patternWithDigits = default;
|
||||||
Option<string?> patternWithDigitsAndDelimiter = default;
|
Option<string?> patternWithDigitsAndDelimiter = default;
|
||||||
Option<string?> varString = default;
|
Option<string?> varString = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimal = default;
|
||||||
Option<uint?> unsignedInteger = default;
|
Option<uint?> unsignedInteger = default;
|
||||||
Option<ulong?> unsignedLong = default;
|
Option<ulong?> unsignedLong = default;
|
||||||
Option<Guid?> uuid = default;
|
Option<Guid?> uuid = default;
|
||||||
@ -679,6 +706,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "password":
|
case "password":
|
||||||
password = new Option<string?>(utf8JsonReader.GetString()!);
|
password = new Option<string?>(utf8JsonReader.GetString()!);
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal_required":
|
||||||
|
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "binary":
|
case "binary":
|
||||||
binary = new Option<System.IO.Stream?>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions)!);
|
binary = new Option<System.IO.Stream?>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions)!);
|
||||||
break;
|
break;
|
||||||
@ -730,6 +760,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "string":
|
case "string":
|
||||||
varString = new Option<string?>(utf8JsonReader.GetString()!);
|
varString = new Option<string?>(utf8JsonReader.GetString()!);
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal":
|
||||||
|
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "unsigned_integer":
|
case "unsigned_integer":
|
||||||
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
||||||
break;
|
break;
|
||||||
@ -757,6 +790,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (!password.IsSet)
|
if (!password.IsSet)
|
||||||
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
||||||
|
|
||||||
|
if (!stringFormattedAsDecimalRequired.IsSet)
|
||||||
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired));
|
||||||
|
|
||||||
if (varByte.IsSet && varByte.Value == null)
|
if (varByte.IsSet && varByte.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -769,6 +805,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (password.IsSet && password.Value == null)
|
if (password.IsSet && password.Value == null)
|
||||||
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (binary.IsSet && binary.Value == null)
|
if (binary.IsSet && binary.Value == null)
|
||||||
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -820,6 +859,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (varString.IsSet && varString.Value == null)
|
if (varString.IsSet && varString.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
||||||
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -829,7 +871,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (uuid.IsSet && uuid.Value == null)
|
if (uuid.IsSet && uuid.Value == null)
|
||||||
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, unsignedInteger, unsignedLong, uuid);
|
return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -885,6 +927,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
writer.WriteString("password", formatTest.Password);
|
writer.WriteString("password", formatTest.Password);
|
||||||
|
|
||||||
|
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
|
||||||
|
|
||||||
if (formatTest.BinaryOption.IsSet)
|
if (formatTest.BinaryOption.IsSet)
|
||||||
{
|
{
|
||||||
writer.WritePropertyName("binary");
|
writer.WritePropertyName("binary");
|
||||||
@ -940,6 +984,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (formatTest.StringOption.IsSet)
|
if (formatTest.StringOption.IsSet)
|
||||||
writer.WriteString("string", formatTest.String);
|
writer.WriteString("string", formatTest.String);
|
||||||
|
|
||||||
|
if (formatTest.StringFormattedAsDecimalOption.IsSet)
|
||||||
|
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
|
||||||
|
|
||||||
if (formatTest.UnsignedIntegerOption.IsSet)
|
if (formatTest.UnsignedIntegerOption.IsSet)
|
||||||
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value!.Value);
|
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value!.Value);
|
||||||
|
|
||||||
|
@ -1665,11 +1665,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|||||||
**Date** | **DateOnly** | |
|
**Date** | **DateOnly** | |
|
||||||
**Number** | **decimal** | |
|
**Number** | **decimal** | |
|
||||||
**Password** | **string** | |
|
**Password** | **string** | |
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
**Binary** | **System.IO.Stream** | | [optional]
|
**Binary** | **System.IO.Stream** | | [optional]
|
||||||
**DateTime** | **DateTime** | | [optional]
|
**DateTime** | **DateTime** | | [optional]
|
||||||
**Decimal** | **decimal** | | [optional]
|
**Decimal** | **decimal** | | [optional]
|
||||||
@ -25,6 +26,7 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**String** | **string** | | [optional]
|
**String** | **string** | | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
**UnsignedInteger** | **uint** | | [optional]
|
**UnsignedInteger** | **uint** | | [optional]
|
||||||
**UnsignedLong** | **ulong** | | [optional]
|
**UnsignedLong** | **ulong** | | [optional]
|
||||||
**Uuid** | **Guid** | | [optional]
|
**Uuid** | **Guid** | | [optional]
|
||||||
|
@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'Password'
|
// TODO unit test for the property 'Password'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimalRequired'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalRequiredTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimalRequired'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Binary'
|
/// Test the property 'Binary'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'String'
|
// TODO unit test for the property 'String'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimal'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimal'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'UnsignedInteger'
|
/// Test the property 'UnsignedInteger'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="date">date</param>
|
/// <param name="date">date</param>
|
||||||
/// <param name="number">number</param>
|
/// <param name="number">number</param>
|
||||||
/// <param name="password">password</param>
|
/// <param name="password">password</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
|
||||||
/// <param name="binary">binary</param>
|
/// <param name="binary">binary</param>
|
||||||
/// <param name="dateTime">dateTime</param>
|
/// <param name="dateTime">dateTime</param>
|
||||||
/// <param name="decimal">decimal</param>
|
/// <param name="decimal">decimal</param>
|
||||||
@ -53,16 +54,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||||
/// <param name="string">string</param>
|
/// <param name="string">string</param>
|
||||||
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
|
||||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||||
/// <param name="unsignedLong">unsignedLong</param>
|
/// <param name="unsignedLong">unsignedLong</param>
|
||||||
/// <param name="uuid">uuid</param>
|
/// <param name="uuid">uuid</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, decimal stringFormattedAsDecimalRequired, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
||||||
{
|
{
|
||||||
Byte = @byte;
|
Byte = @byte;
|
||||||
Date = date;
|
Date = date;
|
||||||
Number = number;
|
Number = number;
|
||||||
Password = password;
|
Password = password;
|
||||||
|
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
BinaryOption = binary;
|
BinaryOption = binary;
|
||||||
DateTimeOption = dateTime;
|
DateTimeOption = dateTime;
|
||||||
DecimalOption = @decimal;
|
DecimalOption = @decimal;
|
||||||
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
PatternWithDigitsOption = patternWithDigits;
|
PatternWithDigitsOption = patternWithDigits;
|
||||||
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
||||||
StringOption = @string;
|
StringOption = @string;
|
||||||
|
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
|
||||||
UnsignedIntegerOption = unsignedInteger;
|
UnsignedIntegerOption = unsignedInteger;
|
||||||
UnsignedLongOption = unsignedLong;
|
UnsignedLongOption = unsignedLong;
|
||||||
UuidOption = uuid;
|
UuidOption = uuid;
|
||||||
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("password")]
|
[JsonPropertyName("password")]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal_required")]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of Binary
|
/// Used to track the state of Binary
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("string")]
|
[JsonPropertyName("string")]
|
||||||
public string String { get { return this.StringOption; } set { this.StringOption = new(value); } }
|
public string String { get { return this.StringOption; } set { this.StringOption = new(value); } }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Used to track the state of StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
|
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
|
public Option<decimal?> StringFormattedAsDecimalOption { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal")]
|
||||||
|
public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of UnsignedInteger
|
/// Used to track the state of UnsignedInteger
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" Date: ").Append(Date).Append("\n");
|
sb.Append(" Date: ").Append(Date).Append("\n");
|
||||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
||||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||||
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
||||||
@ -413,6 +437,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" String: ").Append(String).Append("\n");
|
sb.Append(" String: ").Append(String).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<DateOnly?> date = default;
|
Option<DateOnly?> date = default;
|
||||||
Option<decimal?> number = default;
|
Option<decimal?> number = default;
|
||||||
Option<string> password = default;
|
Option<string> password = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimalRequired = default;
|
||||||
Option<System.IO.Stream> binary = default;
|
Option<System.IO.Stream> binary = default;
|
||||||
Option<DateTime?> dateTime = default;
|
Option<DateTime?> dateTime = default;
|
||||||
Option<decimal?> varDecimal = default;
|
Option<decimal?> varDecimal = default;
|
||||||
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<string> patternWithDigits = default;
|
Option<string> patternWithDigits = default;
|
||||||
Option<string> patternWithDigitsAndDelimiter = default;
|
Option<string> patternWithDigitsAndDelimiter = default;
|
||||||
Option<string> varString = default;
|
Option<string> varString = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimal = default;
|
||||||
Option<uint?> unsignedInteger = default;
|
Option<uint?> unsignedInteger = default;
|
||||||
Option<ulong?> unsignedLong = default;
|
Option<ulong?> unsignedLong = default;
|
||||||
Option<Guid?> uuid = default;
|
Option<Guid?> uuid = default;
|
||||||
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "password":
|
case "password":
|
||||||
password = new Option<string>(utf8JsonReader.GetString());
|
password = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal_required":
|
||||||
|
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "binary":
|
case "binary":
|
||||||
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
||||||
break;
|
break;
|
||||||
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "string":
|
case "string":
|
||||||
varString = new Option<string>(utf8JsonReader.GetString());
|
varString = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal":
|
||||||
|
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "unsigned_integer":
|
case "unsigned_integer":
|
||||||
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
||||||
break;
|
break;
|
||||||
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (!password.IsSet)
|
if (!password.IsSet)
|
||||||
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
||||||
|
|
||||||
|
if (!stringFormattedAsDecimalRequired.IsSet)
|
||||||
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired));
|
||||||
|
|
||||||
if (varByte.IsSet && varByte.Value == null)
|
if (varByte.IsSet && varByte.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -766,6 +802,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (password.IsSet && password.Value == null)
|
if (password.IsSet && password.Value == null)
|
||||||
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (binary.IsSet && binary.Value == null)
|
if (binary.IsSet && binary.Value == null)
|
||||||
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -817,6 +856,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (varString.IsSet && varString.Value == null)
|
if (varString.IsSet && varString.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
||||||
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -826,7 +868,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (uuid.IsSet && uuid.Value == null)
|
if (uuid.IsSet && uuid.Value == null)
|
||||||
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, unsignedInteger, unsignedLong, uuid);
|
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
writer.WriteString("password", formatTest.Password);
|
writer.WriteString("password", formatTest.Password);
|
||||||
|
|
||||||
|
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
|
||||||
|
|
||||||
if (formatTest.BinaryOption.IsSet)
|
if (formatTest.BinaryOption.IsSet)
|
||||||
{
|
{
|
||||||
writer.WritePropertyName("binary");
|
writer.WritePropertyName("binary");
|
||||||
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (formatTest.StringOption.IsSet)
|
if (formatTest.StringOption.IsSet)
|
||||||
writer.WriteString("string", formatTest.String);
|
writer.WriteString("string", formatTest.String);
|
||||||
|
|
||||||
|
if (formatTest.StringFormattedAsDecimalOption.IsSet)
|
||||||
|
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
|
||||||
|
|
||||||
if (formatTest.UnsignedIntegerOption.IsSet)
|
if (formatTest.UnsignedIntegerOption.IsSet)
|
||||||
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
||||||
|
|
||||||
|
@ -1706,11 +1706,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|||||||
**Date** | **DateOnly** | |
|
**Date** | **DateOnly** | |
|
||||||
**Number** | **decimal** | |
|
**Number** | **decimal** | |
|
||||||
**Password** | **string** | |
|
**Password** | **string** | |
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
**Binary** | **System.IO.Stream** | | [optional]
|
**Binary** | **System.IO.Stream** | | [optional]
|
||||||
**DateTime** | **DateTime** | | [optional]
|
**DateTime** | **DateTime** | | [optional]
|
||||||
**Decimal** | **decimal** | | [optional]
|
**Decimal** | **decimal** | | [optional]
|
||||||
@ -25,6 +26,7 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**String** | **string** | | [optional]
|
**String** | **string** | | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
**UnsignedInteger** | **uint** | | [optional]
|
**UnsignedInteger** | **uint** | | [optional]
|
||||||
**UnsignedLong** | **ulong** | | [optional]
|
**UnsignedLong** | **ulong** | | [optional]
|
||||||
**Uuid** | **Guid** | | [optional]
|
**Uuid** | **Guid** | | [optional]
|
||||||
|
@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'Password'
|
// TODO unit test for the property 'Password'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimalRequired'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalRequiredTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimalRequired'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Binary'
|
/// Test the property 'Binary'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'String'
|
// TODO unit test for the property 'String'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimal'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimal'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'UnsignedInteger'
|
/// Test the property 'UnsignedInteger'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -38,6 +38,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="date">date</param>
|
/// <param name="date">date</param>
|
||||||
/// <param name="number">number</param>
|
/// <param name="number">number</param>
|
||||||
/// <param name="password">password</param>
|
/// <param name="password">password</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
|
||||||
/// <param name="binary">binary</param>
|
/// <param name="binary">binary</param>
|
||||||
/// <param name="dateTime">dateTime</param>
|
/// <param name="dateTime">dateTime</param>
|
||||||
/// <param name="decimal">decimal</param>
|
/// <param name="decimal">decimal</param>
|
||||||
@ -55,16 +56,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||||
/// <param name="string">string</param>
|
/// <param name="string">string</param>
|
||||||
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
|
||||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||||
/// <param name="unsignedLong">unsignedLong</param>
|
/// <param name="unsignedLong">unsignedLong</param>
|
||||||
/// <param name="uuid">uuid</param>
|
/// <param name="uuid">uuid</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, Option<System.IO.Stream?> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string?> patternWithBackslash = default, Option<string?> patternWithDigits = default, Option<string?> patternWithDigitsAndDelimiter = default, Option<string?> @string = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, decimal stringFormattedAsDecimalRequired, Option<System.IO.Stream?> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string?> patternWithBackslash = default, Option<string?> patternWithDigits = default, Option<string?> patternWithDigitsAndDelimiter = default, Option<string?> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
||||||
{
|
{
|
||||||
Byte = @byte;
|
Byte = @byte;
|
||||||
Date = date;
|
Date = date;
|
||||||
Number = number;
|
Number = number;
|
||||||
Password = password;
|
Password = password;
|
||||||
|
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
BinaryOption = binary;
|
BinaryOption = binary;
|
||||||
DateTimeOption = dateTime;
|
DateTimeOption = dateTime;
|
||||||
DecimalOption = @decimal;
|
DecimalOption = @decimal;
|
||||||
@ -82,6 +85,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
PatternWithDigitsOption = patternWithDigits;
|
PatternWithDigitsOption = patternWithDigits;
|
||||||
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
||||||
StringOption = @string;
|
StringOption = @string;
|
||||||
|
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
|
||||||
UnsignedIntegerOption = unsignedInteger;
|
UnsignedIntegerOption = unsignedInteger;
|
||||||
UnsignedLongOption = unsignedLong;
|
UnsignedLongOption = unsignedLong;
|
||||||
UuidOption = uuid;
|
UuidOption = uuid;
|
||||||
@ -115,6 +119,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("password")]
|
[JsonPropertyName("password")]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal_required")]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of Binary
|
/// Used to track the state of Binary
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -340,6 +350,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("string")]
|
[JsonPropertyName("string")]
|
||||||
public string? String { get { return this.StringOption; } set { this.StringOption = new(value); } }
|
public string? String { get { return this.StringOption; } set { this.StringOption = new(value); } }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Used to track the state of StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
|
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
|
public Option<decimal?> StringFormattedAsDecimalOption { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal")]
|
||||||
|
public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of UnsignedInteger
|
/// Used to track the state of UnsignedInteger
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -398,6 +421,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" Date: ").Append(Date).Append("\n");
|
sb.Append(" Date: ").Append(Date).Append("\n");
|
||||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
||||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||||
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
||||||
@ -415,6 +439,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" String: ").Append(String).Append("\n");
|
sb.Append(" String: ").Append(String).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
@ -630,6 +655,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<DateOnly?> date = default;
|
Option<DateOnly?> date = default;
|
||||||
Option<decimal?> number = default;
|
Option<decimal?> number = default;
|
||||||
Option<string?> password = default;
|
Option<string?> password = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimalRequired = default;
|
||||||
Option<System.IO.Stream?> binary = default;
|
Option<System.IO.Stream?> binary = default;
|
||||||
Option<DateTime?> dateTime = default;
|
Option<DateTime?> dateTime = default;
|
||||||
Option<decimal?> varDecimal = default;
|
Option<decimal?> varDecimal = default;
|
||||||
@ -647,6 +673,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<string?> patternWithDigits = default;
|
Option<string?> patternWithDigits = default;
|
||||||
Option<string?> patternWithDigitsAndDelimiter = default;
|
Option<string?> patternWithDigitsAndDelimiter = default;
|
||||||
Option<string?> varString = default;
|
Option<string?> varString = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimal = default;
|
||||||
Option<uint?> unsignedInteger = default;
|
Option<uint?> unsignedInteger = default;
|
||||||
Option<ulong?> unsignedLong = default;
|
Option<ulong?> unsignedLong = default;
|
||||||
Option<Guid?> uuid = default;
|
Option<Guid?> uuid = default;
|
||||||
@ -678,6 +705,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "password":
|
case "password":
|
||||||
password = new Option<string?>(utf8JsonReader.GetString()!);
|
password = new Option<string?>(utf8JsonReader.GetString()!);
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal_required":
|
||||||
|
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "binary":
|
case "binary":
|
||||||
binary = new Option<System.IO.Stream?>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions)!);
|
binary = new Option<System.IO.Stream?>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions)!);
|
||||||
break;
|
break;
|
||||||
@ -729,6 +759,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "string":
|
case "string":
|
||||||
varString = new Option<string?>(utf8JsonReader.GetString()!);
|
varString = new Option<string?>(utf8JsonReader.GetString()!);
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal":
|
||||||
|
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "unsigned_integer":
|
case "unsigned_integer":
|
||||||
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
||||||
break;
|
break;
|
||||||
@ -756,6 +789,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (!password.IsSet)
|
if (!password.IsSet)
|
||||||
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
||||||
|
|
||||||
|
if (!stringFormattedAsDecimalRequired.IsSet)
|
||||||
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired));
|
||||||
|
|
||||||
if (varByte.IsSet && varByte.Value == null)
|
if (varByte.IsSet && varByte.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -768,6 +804,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (password.IsSet && password.Value == null)
|
if (password.IsSet && password.Value == null)
|
||||||
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (binary.IsSet && binary.Value == null)
|
if (binary.IsSet && binary.Value == null)
|
||||||
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -819,6 +858,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (varString.IsSet && varString.Value == null)
|
if (varString.IsSet && varString.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
||||||
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -828,7 +870,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (uuid.IsSet && uuid.Value == null)
|
if (uuid.IsSet && uuid.Value == null)
|
||||||
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, unsignedInteger, unsignedLong, uuid);
|
return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -884,6 +926,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
writer.WriteString("password", formatTest.Password);
|
writer.WriteString("password", formatTest.Password);
|
||||||
|
|
||||||
|
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
|
||||||
|
|
||||||
if (formatTest.BinaryOption.IsSet)
|
if (formatTest.BinaryOption.IsSet)
|
||||||
{
|
{
|
||||||
writer.WritePropertyName("binary");
|
writer.WritePropertyName("binary");
|
||||||
@ -939,6 +983,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (formatTest.StringOption.IsSet)
|
if (formatTest.StringOption.IsSet)
|
||||||
writer.WriteString("string", formatTest.String);
|
writer.WriteString("string", formatTest.String);
|
||||||
|
|
||||||
|
if (formatTest.StringFormattedAsDecimalOption.IsSet)
|
||||||
|
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
|
||||||
|
|
||||||
if (formatTest.UnsignedIntegerOption.IsSet)
|
if (formatTest.UnsignedIntegerOption.IsSet)
|
||||||
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value!.Value);
|
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value!.Value);
|
||||||
|
|
||||||
|
@ -1706,11 +1706,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|||||||
**Date** | **DateOnly** | |
|
**Date** | **DateOnly** | |
|
||||||
**Number** | **decimal** | |
|
**Number** | **decimal** | |
|
||||||
**Password** | **string** | |
|
**Password** | **string** | |
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
**Binary** | **System.IO.Stream** | | [optional]
|
**Binary** | **System.IO.Stream** | | [optional]
|
||||||
**DateTime** | **DateTime** | | [optional]
|
**DateTime** | **DateTime** | | [optional]
|
||||||
**Decimal** | **decimal** | | [optional]
|
**Decimal** | **decimal** | | [optional]
|
||||||
@ -25,6 +26,7 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**String** | **string** | | [optional]
|
**String** | **string** | | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
**UnsignedInteger** | **uint** | | [optional]
|
**UnsignedInteger** | **uint** | | [optional]
|
||||||
**UnsignedLong** | **ulong** | | [optional]
|
**UnsignedLong** | **ulong** | | [optional]
|
||||||
**Uuid** | **Guid** | | [optional]
|
**Uuid** | **Guid** | | [optional]
|
||||||
|
@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'Password'
|
// TODO unit test for the property 'Password'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimalRequired'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalRequiredTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimalRequired'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Binary'
|
/// Test the property 'Binary'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'String'
|
// TODO unit test for the property 'String'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimal'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimal'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'UnsignedInteger'
|
/// Test the property 'UnsignedInteger'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="date">date</param>
|
/// <param name="date">date</param>
|
||||||
/// <param name="number">number</param>
|
/// <param name="number">number</param>
|
||||||
/// <param name="password">password</param>
|
/// <param name="password">password</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
|
||||||
/// <param name="binary">binary</param>
|
/// <param name="binary">binary</param>
|
||||||
/// <param name="dateTime">dateTime</param>
|
/// <param name="dateTime">dateTime</param>
|
||||||
/// <param name="decimal">decimal</param>
|
/// <param name="decimal">decimal</param>
|
||||||
@ -53,16 +54,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||||
/// <param name="string">string</param>
|
/// <param name="string">string</param>
|
||||||
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
|
||||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||||
/// <param name="unsignedLong">unsignedLong</param>
|
/// <param name="unsignedLong">unsignedLong</param>
|
||||||
/// <param name="uuid">uuid</param>
|
/// <param name="uuid">uuid</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, decimal stringFormattedAsDecimalRequired, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
||||||
{
|
{
|
||||||
Byte = @byte;
|
Byte = @byte;
|
||||||
Date = date;
|
Date = date;
|
||||||
Number = number;
|
Number = number;
|
||||||
Password = password;
|
Password = password;
|
||||||
|
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
BinaryOption = binary;
|
BinaryOption = binary;
|
||||||
DateTimeOption = dateTime;
|
DateTimeOption = dateTime;
|
||||||
DecimalOption = @decimal;
|
DecimalOption = @decimal;
|
||||||
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
PatternWithDigitsOption = patternWithDigits;
|
PatternWithDigitsOption = patternWithDigits;
|
||||||
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
||||||
StringOption = @string;
|
StringOption = @string;
|
||||||
|
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
|
||||||
UnsignedIntegerOption = unsignedInteger;
|
UnsignedIntegerOption = unsignedInteger;
|
||||||
UnsignedLongOption = unsignedLong;
|
UnsignedLongOption = unsignedLong;
|
||||||
UuidOption = uuid;
|
UuidOption = uuid;
|
||||||
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("password")]
|
[JsonPropertyName("password")]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal_required")]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of Binary
|
/// Used to track the state of Binary
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("string")]
|
[JsonPropertyName("string")]
|
||||||
public string String { get { return this.StringOption; } set { this.StringOption = new(value); } }
|
public string String { get { return this.StringOption; } set { this.StringOption = new(value); } }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Used to track the state of StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
|
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
|
public Option<decimal?> StringFormattedAsDecimalOption { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal")]
|
||||||
|
public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of UnsignedInteger
|
/// Used to track the state of UnsignedInteger
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" Date: ").Append(Date).Append("\n");
|
sb.Append(" Date: ").Append(Date).Append("\n");
|
||||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
||||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||||
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
||||||
@ -413,6 +437,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" String: ").Append(String).Append("\n");
|
sb.Append(" String: ").Append(String).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<DateOnly?> date = default;
|
Option<DateOnly?> date = default;
|
||||||
Option<decimal?> number = default;
|
Option<decimal?> number = default;
|
||||||
Option<string> password = default;
|
Option<string> password = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimalRequired = default;
|
||||||
Option<System.IO.Stream> binary = default;
|
Option<System.IO.Stream> binary = default;
|
||||||
Option<DateTime?> dateTime = default;
|
Option<DateTime?> dateTime = default;
|
||||||
Option<decimal?> varDecimal = default;
|
Option<decimal?> varDecimal = default;
|
||||||
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<string> patternWithDigits = default;
|
Option<string> patternWithDigits = default;
|
||||||
Option<string> patternWithDigitsAndDelimiter = default;
|
Option<string> patternWithDigitsAndDelimiter = default;
|
||||||
Option<string> varString = default;
|
Option<string> varString = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimal = default;
|
||||||
Option<uint?> unsignedInteger = default;
|
Option<uint?> unsignedInteger = default;
|
||||||
Option<ulong?> unsignedLong = default;
|
Option<ulong?> unsignedLong = default;
|
||||||
Option<Guid?> uuid = default;
|
Option<Guid?> uuid = default;
|
||||||
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "password":
|
case "password":
|
||||||
password = new Option<string>(utf8JsonReader.GetString());
|
password = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal_required":
|
||||||
|
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "binary":
|
case "binary":
|
||||||
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
||||||
break;
|
break;
|
||||||
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "string":
|
case "string":
|
||||||
varString = new Option<string>(utf8JsonReader.GetString());
|
varString = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal":
|
||||||
|
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "unsigned_integer":
|
case "unsigned_integer":
|
||||||
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
||||||
break;
|
break;
|
||||||
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (!password.IsSet)
|
if (!password.IsSet)
|
||||||
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
||||||
|
|
||||||
|
if (!stringFormattedAsDecimalRequired.IsSet)
|
||||||
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired));
|
||||||
|
|
||||||
if (varByte.IsSet && varByte.Value == null)
|
if (varByte.IsSet && varByte.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -766,6 +802,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (password.IsSet && password.Value == null)
|
if (password.IsSet && password.Value == null)
|
||||||
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (binary.IsSet && binary.Value == null)
|
if (binary.IsSet && binary.Value == null)
|
||||||
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -817,6 +856,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (varString.IsSet && varString.Value == null)
|
if (varString.IsSet && varString.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
||||||
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -826,7 +868,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (uuid.IsSet && uuid.Value == null)
|
if (uuid.IsSet && uuid.Value == null)
|
||||||
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, unsignedInteger, unsignedLong, uuid);
|
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
writer.WriteString("password", formatTest.Password);
|
writer.WriteString("password", formatTest.Password);
|
||||||
|
|
||||||
|
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
|
||||||
|
|
||||||
if (formatTest.BinaryOption.IsSet)
|
if (formatTest.BinaryOption.IsSet)
|
||||||
{
|
{
|
||||||
writer.WritePropertyName("binary");
|
writer.WritePropertyName("binary");
|
||||||
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (formatTest.StringOption.IsSet)
|
if (formatTest.StringOption.IsSet)
|
||||||
writer.WriteString("string", formatTest.String);
|
writer.WriteString("string", formatTest.String);
|
||||||
|
|
||||||
|
if (formatTest.StringFormattedAsDecimalOption.IsSet)
|
||||||
|
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
|
||||||
|
|
||||||
if (formatTest.UnsignedIntegerOption.IsSet)
|
if (formatTest.UnsignedIntegerOption.IsSet)
|
||||||
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
||||||
|
|
||||||
|
@ -1706,11 +1706,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|||||||
**Date** | **DateOnly** | |
|
**Date** | **DateOnly** | |
|
||||||
**Number** | **decimal** | |
|
**Number** | **decimal** | |
|
||||||
**Password** | **string** | |
|
**Password** | **string** | |
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
**Binary** | **System.IO.Stream** | | [optional]
|
**Binary** | **System.IO.Stream** | | [optional]
|
||||||
**DateTime** | **DateTime** | | [optional]
|
**DateTime** | **DateTime** | | [optional]
|
||||||
**Decimal** | **decimal** | | [optional]
|
**Decimal** | **decimal** | | [optional]
|
||||||
@ -25,6 +26,7 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**String** | **string** | | [optional]
|
**String** | **string** | | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
**UnsignedInteger** | **uint** | | [optional]
|
**UnsignedInteger** | **uint** | | [optional]
|
||||||
**UnsignedLong** | **ulong** | | [optional]
|
**UnsignedLong** | **ulong** | | [optional]
|
||||||
**Uuid** | **Guid** | | [optional]
|
**Uuid** | **Guid** | | [optional]
|
||||||
|
@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'Password'
|
// TODO unit test for the property 'Password'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimalRequired'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalRequiredTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimalRequired'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Binary'
|
/// Test the property 'Binary'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'String'
|
// TODO unit test for the property 'String'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimal'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimal'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'UnsignedInteger'
|
/// Test the property 'UnsignedInteger'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -39,6 +39,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="date">date</param>
|
/// <param name="date">date</param>
|
||||||
/// <param name="number">number</param>
|
/// <param name="number">number</param>
|
||||||
/// <param name="password">password</param>
|
/// <param name="password">password</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
|
||||||
/// <param name="binary">binary</param>
|
/// <param name="binary">binary</param>
|
||||||
/// <param name="dateTime">dateTime</param>
|
/// <param name="dateTime">dateTime</param>
|
||||||
/// <param name="decimal">decimal</param>
|
/// <param name="decimal">decimal</param>
|
||||||
@ -56,16 +57,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||||
/// <param name="string">string</param>
|
/// <param name="string">string</param>
|
||||||
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
|
||||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||||
/// <param name="unsignedLong">unsignedLong</param>
|
/// <param name="unsignedLong">unsignedLong</param>
|
||||||
/// <param name="uuid">uuid</param>
|
/// <param name="uuid">uuid</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, Option<System.IO.Stream?> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string?> patternWithBackslash = default, Option<string?> patternWithDigits = default, Option<string?> patternWithDigitsAndDelimiter = default, Option<string?> @string = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, decimal stringFormattedAsDecimalRequired, Option<System.IO.Stream?> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string?> patternWithBackslash = default, Option<string?> patternWithDigits = default, Option<string?> patternWithDigitsAndDelimiter = default, Option<string?> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
||||||
{
|
{
|
||||||
Byte = @byte;
|
Byte = @byte;
|
||||||
Date = date;
|
Date = date;
|
||||||
Number = number;
|
Number = number;
|
||||||
Password = password;
|
Password = password;
|
||||||
|
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
BinaryOption = binary;
|
BinaryOption = binary;
|
||||||
DateTimeOption = dateTime;
|
DateTimeOption = dateTime;
|
||||||
DecimalOption = @decimal;
|
DecimalOption = @decimal;
|
||||||
@ -83,6 +86,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
PatternWithDigitsOption = patternWithDigits;
|
PatternWithDigitsOption = patternWithDigits;
|
||||||
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
||||||
StringOption = @string;
|
StringOption = @string;
|
||||||
|
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
|
||||||
UnsignedIntegerOption = unsignedInteger;
|
UnsignedIntegerOption = unsignedInteger;
|
||||||
UnsignedLongOption = unsignedLong;
|
UnsignedLongOption = unsignedLong;
|
||||||
UuidOption = uuid;
|
UuidOption = uuid;
|
||||||
@ -116,6 +120,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("password")]
|
[JsonPropertyName("password")]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal_required")]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of Binary
|
/// Used to track the state of Binary
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -341,6 +351,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("string")]
|
[JsonPropertyName("string")]
|
||||||
public string? String { get { return this.StringOption; } set { this.StringOption = new(value); } }
|
public string? String { get { return this.StringOption; } set { this.StringOption = new(value); } }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Used to track the state of StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
|
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
|
public Option<decimal?> StringFormattedAsDecimalOption { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal")]
|
||||||
|
public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of UnsignedInteger
|
/// Used to track the state of UnsignedInteger
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -399,6 +422,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" Date: ").Append(Date).Append("\n");
|
sb.Append(" Date: ").Append(Date).Append("\n");
|
||||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
||||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||||
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
||||||
@ -416,6 +440,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" String: ").Append(String).Append("\n");
|
sb.Append(" String: ").Append(String).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
@ -631,6 +656,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<DateOnly?> date = default;
|
Option<DateOnly?> date = default;
|
||||||
Option<decimal?> number = default;
|
Option<decimal?> number = default;
|
||||||
Option<string?> password = default;
|
Option<string?> password = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimalRequired = default;
|
||||||
Option<System.IO.Stream?> binary = default;
|
Option<System.IO.Stream?> binary = default;
|
||||||
Option<DateTime?> dateTime = default;
|
Option<DateTime?> dateTime = default;
|
||||||
Option<decimal?> varDecimal = default;
|
Option<decimal?> varDecimal = default;
|
||||||
@ -648,6 +674,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<string?> patternWithDigits = default;
|
Option<string?> patternWithDigits = default;
|
||||||
Option<string?> patternWithDigitsAndDelimiter = default;
|
Option<string?> patternWithDigitsAndDelimiter = default;
|
||||||
Option<string?> varString = default;
|
Option<string?> varString = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimal = default;
|
||||||
Option<uint?> unsignedInteger = default;
|
Option<uint?> unsignedInteger = default;
|
||||||
Option<ulong?> unsignedLong = default;
|
Option<ulong?> unsignedLong = default;
|
||||||
Option<Guid?> uuid = default;
|
Option<Guid?> uuid = default;
|
||||||
@ -679,6 +706,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "password":
|
case "password":
|
||||||
password = new Option<string?>(utf8JsonReader.GetString()!);
|
password = new Option<string?>(utf8JsonReader.GetString()!);
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal_required":
|
||||||
|
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "binary":
|
case "binary":
|
||||||
binary = new Option<System.IO.Stream?>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions)!);
|
binary = new Option<System.IO.Stream?>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions)!);
|
||||||
break;
|
break;
|
||||||
@ -730,6 +760,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "string":
|
case "string":
|
||||||
varString = new Option<string?>(utf8JsonReader.GetString()!);
|
varString = new Option<string?>(utf8JsonReader.GetString()!);
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal":
|
||||||
|
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "unsigned_integer":
|
case "unsigned_integer":
|
||||||
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
||||||
break;
|
break;
|
||||||
@ -757,6 +790,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (!password.IsSet)
|
if (!password.IsSet)
|
||||||
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
||||||
|
|
||||||
|
if (!stringFormattedAsDecimalRequired.IsSet)
|
||||||
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired));
|
||||||
|
|
||||||
if (varByte.IsSet && varByte.Value == null)
|
if (varByte.IsSet && varByte.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -769,6 +805,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (password.IsSet && password.Value == null)
|
if (password.IsSet && password.Value == null)
|
||||||
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (binary.IsSet && binary.Value == null)
|
if (binary.IsSet && binary.Value == null)
|
||||||
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -820,6 +859,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (varString.IsSet && varString.Value == null)
|
if (varString.IsSet && varString.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
||||||
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -829,7 +871,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (uuid.IsSet && uuid.Value == null)
|
if (uuid.IsSet && uuid.Value == null)
|
||||||
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, unsignedInteger, unsignedLong, uuid);
|
return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -885,6 +927,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
writer.WriteString("password", formatTest.Password);
|
writer.WriteString("password", formatTest.Password);
|
||||||
|
|
||||||
|
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
|
||||||
|
|
||||||
if (formatTest.BinaryOption.IsSet)
|
if (formatTest.BinaryOption.IsSet)
|
||||||
{
|
{
|
||||||
writer.WritePropertyName("binary");
|
writer.WritePropertyName("binary");
|
||||||
@ -940,6 +984,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (formatTest.StringOption.IsSet)
|
if (formatTest.StringOption.IsSet)
|
||||||
writer.WriteString("string", formatTest.String);
|
writer.WriteString("string", formatTest.String);
|
||||||
|
|
||||||
|
if (formatTest.StringFormattedAsDecimalOption.IsSet)
|
||||||
|
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
|
||||||
|
|
||||||
if (formatTest.UnsignedIntegerOption.IsSet)
|
if (formatTest.UnsignedIntegerOption.IsSet)
|
||||||
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value!.Value);
|
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value!.Value);
|
||||||
|
|
||||||
|
@ -1706,11 +1706,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|||||||
**Date** | **DateTime** | |
|
**Date** | **DateTime** | |
|
||||||
**Number** | **decimal** | |
|
**Number** | **decimal** | |
|
||||||
**Password** | **string** | |
|
**Password** | **string** | |
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
**Binary** | **System.IO.Stream** | | [optional]
|
**Binary** | **System.IO.Stream** | | [optional]
|
||||||
**DateTime** | **DateTime** | | [optional]
|
**DateTime** | **DateTime** | | [optional]
|
||||||
**Decimal** | **decimal** | | [optional]
|
**Decimal** | **decimal** | | [optional]
|
||||||
@ -25,6 +26,7 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**String** | **string** | | [optional]
|
**String** | **string** | | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
**UnsignedInteger** | **uint** | | [optional]
|
**UnsignedInteger** | **uint** | | [optional]
|
||||||
**UnsignedLong** | **ulong** | | [optional]
|
**UnsignedLong** | **ulong** | | [optional]
|
||||||
**Uuid** | **Guid** | | [optional]
|
**Uuid** | **Guid** | | [optional]
|
||||||
|
@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'Password'
|
// TODO unit test for the property 'Password'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimalRequired'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalRequiredTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimalRequired'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Binary'
|
/// Test the property 'Binary'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
|
|||||||
// TODO unit test for the property 'String'
|
// TODO unit test for the property 'String'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'StringFormattedAsDecimal'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void StringFormattedAsDecimalTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'StringFormattedAsDecimal'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'UnsignedInteger'
|
/// Test the property 'UnsignedInteger'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="date">date</param>
|
/// <param name="date">date</param>
|
||||||
/// <param name="number">number</param>
|
/// <param name="number">number</param>
|
||||||
/// <param name="password">password</param>
|
/// <param name="password">password</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
|
||||||
/// <param name="binary">binary</param>
|
/// <param name="binary">binary</param>
|
||||||
/// <param name="dateTime">dateTime</param>
|
/// <param name="dateTime">dateTime</param>
|
||||||
/// <param name="decimal">decimal</param>
|
/// <param name="decimal">decimal</param>
|
||||||
@ -53,16 +54,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||||
/// <param name="string">string</param>
|
/// <param name="string">string</param>
|
||||||
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
|
||||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||||
/// <param name="unsignedLong">unsignedLong</param>
|
/// <param name="unsignedLong">unsignedLong</param>
|
||||||
/// <param name="uuid">uuid</param>
|
/// <param name="uuid">uuid</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public FormatTest(byte[] @byte, DateTime date, decimal number, string password, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
public FormatTest(byte[] @byte, DateTime date, decimal number, string password, decimal stringFormattedAsDecimalRequired, Option<System.IO.Stream> binary = default, Option<DateTime?> dateTime = default, Option<decimal?> @decimal = default, Option<double?> @double = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
|
||||||
{
|
{
|
||||||
Byte = @byte;
|
Byte = @byte;
|
||||||
Date = date;
|
Date = date;
|
||||||
Number = number;
|
Number = number;
|
||||||
Password = password;
|
Password = password;
|
||||||
|
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
BinaryOption = binary;
|
BinaryOption = binary;
|
||||||
DateTimeOption = dateTime;
|
DateTimeOption = dateTime;
|
||||||
DecimalOption = @decimal;
|
DecimalOption = @decimal;
|
||||||
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
PatternWithDigitsOption = patternWithDigits;
|
PatternWithDigitsOption = patternWithDigits;
|
||||||
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
|
||||||
StringOption = @string;
|
StringOption = @string;
|
||||||
|
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
|
||||||
UnsignedIntegerOption = unsignedInteger;
|
UnsignedIntegerOption = unsignedInteger;
|
||||||
UnsignedLongOption = unsignedLong;
|
UnsignedLongOption = unsignedLong;
|
||||||
UuidOption = uuid;
|
UuidOption = uuid;
|
||||||
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("password")]
|
[JsonPropertyName("password")]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal_required")]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of Binary
|
/// Used to track the state of Binary
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonPropertyName("string")]
|
[JsonPropertyName("string")]
|
||||||
public string String { get { return this.StringOption; } set { this.StringOption = new Option<string>(value); } }
|
public string String { get { return this.StringOption; } set { this.StringOption = new Option<string>(value); } }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Used to track the state of StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
|
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
|
public Option<decimal?> StringFormattedAsDecimalOption { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("string_formatted_as_decimal")]
|
||||||
|
public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new Option<decimal?>(value); } }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the state of UnsignedInteger
|
/// Used to track the state of UnsignedInteger
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" Date: ").Append(Date).Append("\n");
|
sb.Append(" Date: ").Append(Date).Append("\n");
|
||||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
||||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||||
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
sb.Append(" Decimal: ").Append(Decimal).Append("\n");
|
||||||
@ -413,6 +437,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" String: ").Append(String).Append("\n");
|
sb.Append(" String: ").Append(String).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<DateTime?> date = default;
|
Option<DateTime?> date = default;
|
||||||
Option<decimal?> number = default;
|
Option<decimal?> number = default;
|
||||||
Option<string> password = default;
|
Option<string> password = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimalRequired = default;
|
||||||
Option<System.IO.Stream> binary = default;
|
Option<System.IO.Stream> binary = default;
|
||||||
Option<DateTime?> dateTime = default;
|
Option<DateTime?> dateTime = default;
|
||||||
Option<decimal?> varDecimal = default;
|
Option<decimal?> varDecimal = default;
|
||||||
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
Option<string> patternWithDigits = default;
|
Option<string> patternWithDigits = default;
|
||||||
Option<string> patternWithDigitsAndDelimiter = default;
|
Option<string> patternWithDigitsAndDelimiter = default;
|
||||||
Option<string> varString = default;
|
Option<string> varString = default;
|
||||||
|
Option<decimal?> stringFormattedAsDecimal = default;
|
||||||
Option<uint?> unsignedInteger = default;
|
Option<uint?> unsignedInteger = default;
|
||||||
Option<ulong?> unsignedLong = default;
|
Option<ulong?> unsignedLong = default;
|
||||||
Option<Guid?> uuid = default;
|
Option<Guid?> uuid = default;
|
||||||
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "password":
|
case "password":
|
||||||
password = new Option<string>(utf8JsonReader.GetString());
|
password = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal_required":
|
||||||
|
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "binary":
|
case "binary":
|
||||||
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
|
||||||
break;
|
break;
|
||||||
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
case "string":
|
case "string":
|
||||||
varString = new Option<string>(utf8JsonReader.GetString());
|
varString = new Option<string>(utf8JsonReader.GetString());
|
||||||
break;
|
break;
|
||||||
|
case "string_formatted_as_decimal":
|
||||||
|
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
|
||||||
|
break;
|
||||||
case "unsigned_integer":
|
case "unsigned_integer":
|
||||||
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
|
||||||
break;
|
break;
|
||||||
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (!password.IsSet)
|
if (!password.IsSet)
|
||||||
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(password));
|
||||||
|
|
||||||
|
if (!stringFormattedAsDecimalRequired.IsSet)
|
||||||
|
throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired));
|
||||||
|
|
||||||
if (varByte.IsSet && varByte.Value == null)
|
if (varByte.IsSet && varByte.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -766,6 +802,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (password.IsSet && password.Value == null)
|
if (password.IsSet && password.Value == null)
|
||||||
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (binary.IsSet && binary.Value == null)
|
if (binary.IsSet && binary.Value == null)
|
||||||
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -817,6 +856,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (varString.IsSet && varString.Value == null)
|
if (varString.IsSet && varString.Value == null)
|
||||||
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
|
if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null)
|
||||||
|
throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
if (unsignedInteger.IsSet && unsignedInteger.Value == null)
|
||||||
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
@ -826,7 +868,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (uuid.IsSet && uuid.Value == null)
|
if (uuid.IsSet && uuid.Value == null)
|
||||||
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
|
||||||
|
|
||||||
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, unsignedInteger, unsignedLong, uuid);
|
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
writer.WriteString("password", formatTest.Password);
|
writer.WriteString("password", formatTest.Password);
|
||||||
|
|
||||||
|
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
|
||||||
|
|
||||||
if (formatTest.BinaryOption.IsSet)
|
if (formatTest.BinaryOption.IsSet)
|
||||||
{
|
{
|
||||||
writer.WritePropertyName("binary");
|
writer.WritePropertyName("binary");
|
||||||
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
if (formatTest.StringOption.IsSet)
|
if (formatTest.StringOption.IsSet)
|
||||||
writer.WriteString("string", formatTest.String);
|
writer.WriteString("string", formatTest.String);
|
||||||
|
|
||||||
|
if (formatTest.StringFormattedAsDecimalOption.IsSet)
|
||||||
|
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
|
||||||
|
|
||||||
if (formatTest.UnsignedIntegerOption.IsSet)
|
if (formatTest.UnsignedIntegerOption.IsSet)
|
||||||
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);
|
||||||
|
|
||||||
|
@ -1706,11 +1706,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -28,6 +28,8 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**PatternWithBackslash** | **string** | None | [optional]
|
**PatternWithBackslash** | **string** | None | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -68,7 +68,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros..</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01..</param>
|
||||||
/// <param name="patternWithBackslash">None.</param>
|
/// <param name="patternWithBackslash">None.</param>
|
||||||
public FormatTest(int integer = default(int), int int32 = default(int), int int32Range = default(int), int int64Positive = default(int), int int64Negative = default(int), int int64PositiveExclusive = default(int), int int64NegativeExclusive = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), FileParameter binary = default(FileParameter), DateOnly date = default(DateOnly), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string))
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param>
|
||||||
|
public FormatTest(int integer = default(int), int int32 = default(int), int int32Range = default(int), int int64Positive = default(int), int int64Negative = default(int), int int64PositiveExclusive = default(int), int int64NegativeExclusive = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), FileParameter binary = default(FileParameter), DateOnly date = default(DateOnly), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string), decimal stringFormattedAsDecimal = default(decimal), decimal stringFormattedAsDecimalRequired = default(decimal))
|
||||||
{
|
{
|
||||||
this.Number = number;
|
this.Number = number;
|
||||||
// to ensure "varByte" is required (not null)
|
// to ensure "varByte" is required (not null)
|
||||||
@ -84,6 +86,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
throw new ArgumentNullException("password is a required property for FormatTest and cannot be null");
|
throw new ArgumentNullException("password is a required property for FormatTest and cannot be null");
|
||||||
}
|
}
|
||||||
this.Password = password;
|
this.Password = password;
|
||||||
|
this.StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
this.Integer = integer;
|
this.Integer = integer;
|
||||||
this.Int32 = int32;
|
this.Int32 = int32;
|
||||||
this.Int32Range = int32Range;
|
this.Int32Range = int32Range;
|
||||||
@ -104,6 +107,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
this.PatternWithDigits = patternWithDigits;
|
this.PatternWithDigits = patternWithDigits;
|
||||||
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
||||||
this.PatternWithBackslash = patternWithBackslash;
|
this.PatternWithBackslash = patternWithBackslash;
|
||||||
|
this.StringFormattedAsDecimal = stringFormattedAsDecimal;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -263,6 +267,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
[DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)]
|
[DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)]
|
||||||
public string PatternWithBackslash { get; set; }
|
public string PatternWithBackslash { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "string_formatted_as_decimal", EmitDefaultValue = false)]
|
||||||
|
public decimal StringFormattedAsDecimal { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "string_formatted_as_decimal_required", IsRequired = true, EmitDefaultValue = true)]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets additional properties
|
/// Gets or Sets additional properties
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -301,6 +317,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
|
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
@ -398,6 +416,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
|
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
|
||||||
}
|
}
|
||||||
|
hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
|
||||||
|
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
|
||||||
if (this.AdditionalProperties != null)
|
if (this.AdditionalProperties != null)
|
||||||
{
|
{
|
||||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||||
|
@ -1706,11 +1706,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -28,6 +28,8 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**PatternWithBackslash** | **string** | None | [optional]
|
**PatternWithBackslash** | **string** | None | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -68,7 +68,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros..</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01..</param>
|
||||||
/// <param name="patternWithBackslash">None.</param>
|
/// <param name="patternWithBackslash">None.</param>
|
||||||
public FormatTest(int integer = default(int), int int32 = default(int), int int32Range = default(int), int int64Positive = default(int), int int64Negative = default(int), int int64PositiveExclusive = default(int), int int64NegativeExclusive = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), FileParameter binary = default(FileParameter), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string))
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param>
|
||||||
|
public FormatTest(int integer = default(int), int int32 = default(int), int int32Range = default(int), int int64Positive = default(int), int int64Negative = default(int), int int64PositiveExclusive = default(int), int int64NegativeExclusive = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), FileParameter binary = default(FileParameter), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string), decimal stringFormattedAsDecimal = default(decimal), decimal stringFormattedAsDecimalRequired = default(decimal))
|
||||||
{
|
{
|
||||||
this.Number = number;
|
this.Number = number;
|
||||||
// to ensure "varByte" is required (not null)
|
// to ensure "varByte" is required (not null)
|
||||||
@ -84,6 +86,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
throw new ArgumentNullException("password is a required property for FormatTest and cannot be null");
|
throw new ArgumentNullException("password is a required property for FormatTest and cannot be null");
|
||||||
}
|
}
|
||||||
this.Password = password;
|
this.Password = password;
|
||||||
|
this.StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
this.Integer = integer;
|
this.Integer = integer;
|
||||||
this.Int32 = int32;
|
this.Int32 = int32;
|
||||||
this.Int32Range = int32Range;
|
this.Int32Range = int32Range;
|
||||||
@ -104,6 +107,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
this.PatternWithDigits = patternWithDigits;
|
this.PatternWithDigits = patternWithDigits;
|
||||||
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
||||||
this.PatternWithBackslash = patternWithBackslash;
|
this.PatternWithBackslash = patternWithBackslash;
|
||||||
|
this.StringFormattedAsDecimal = stringFormattedAsDecimal;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -264,6 +268,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
[DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)]
|
[DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)]
|
||||||
public string PatternWithBackslash { get; set; }
|
public string PatternWithBackslash { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "string_formatted_as_decimal", EmitDefaultValue = false)]
|
||||||
|
public decimal StringFormattedAsDecimal { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "string_formatted_as_decimal_required", IsRequired = true, EmitDefaultValue = true)]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets additional properties
|
/// Gets or Sets additional properties
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -302,6 +318,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
|
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
@ -399,6 +417,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
|
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
|
||||||
}
|
}
|
||||||
|
hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
|
||||||
|
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
|
||||||
if (this.AdditionalProperties != null)
|
if (this.AdditionalProperties != null)
|
||||||
{
|
{
|
||||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||||
|
@ -1706,11 +1706,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -28,6 +28,8 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**PatternWithBackslash** | **string** | None | [optional]
|
**PatternWithBackslash** | **string** | None | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -64,7 +64,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros..</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01..</param>
|
||||||
/// <param name="patternWithBackslash">None.</param>
|
/// <param name="patternWithBackslash">None.</param>
|
||||||
public FormatTest(int integer = default(int), int int32 = default(int), int int32Range = default(int), int int64Positive = default(int), int int64Negative = default(int), int int64PositiveExclusive = default(int), int int64NegativeExclusive = 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), DateOnly date = default(DateOnly), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string))
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param>
|
||||||
|
public FormatTest(int integer = default(int), int int32 = default(int), int int32Range = default(int), int int64Positive = default(int), int int64Negative = default(int), int int64PositiveExclusive = default(int), int int64NegativeExclusive = 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), DateOnly date = default(DateOnly), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string), decimal stringFormattedAsDecimal = default(decimal), decimal stringFormattedAsDecimalRequired = default(decimal))
|
||||||
{
|
{
|
||||||
this.Number = number;
|
this.Number = number;
|
||||||
// to ensure "varByte" is required (not null)
|
// to ensure "varByte" is required (not null)
|
||||||
@ -80,6 +82,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
throw new ArgumentNullException("password is a required property for FormatTest and cannot be null");
|
throw new ArgumentNullException("password is a required property for FormatTest and cannot be null");
|
||||||
}
|
}
|
||||||
this.Password = password;
|
this.Password = password;
|
||||||
|
this.StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
this.Integer = integer;
|
this.Integer = integer;
|
||||||
this.Int32 = int32;
|
this.Int32 = int32;
|
||||||
this.Int32Range = int32Range;
|
this.Int32Range = int32Range;
|
||||||
@ -100,6 +103,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
this.PatternWithDigits = patternWithDigits;
|
this.PatternWithDigits = patternWithDigits;
|
||||||
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
||||||
this.PatternWithBackslash = patternWithBackslash;
|
this.PatternWithBackslash = patternWithBackslash;
|
||||||
|
this.StringFormattedAsDecimal = stringFormattedAsDecimal;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -258,6 +262,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
[DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)]
|
[DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)]
|
||||||
public string PatternWithBackslash { get; set; }
|
public string PatternWithBackslash { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "string_formatted_as_decimal", EmitDefaultValue = false)]
|
||||||
|
public decimal StringFormattedAsDecimal { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "string_formatted_as_decimal_required", IsRequired = true, EmitDefaultValue = true)]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the string presentation of the object
|
/// Returns the string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -290,6 +306,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
|
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
@ -386,6 +404,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
|
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
|
||||||
}
|
}
|
||||||
|
hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
|
||||||
|
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
|
||||||
return hashCode;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1706,11 +1706,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -28,6 +28,8 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**PatternWithBackslash** | **string** | None | [optional]
|
**PatternWithBackslash** | **string** | None | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -67,7 +67,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros..</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01..</param>
|
||||||
/// <param name="patternWithBackslash">None.</param>
|
/// <param name="patternWithBackslash">None.</param>
|
||||||
public FormatTest(int integer = default(int), int int32 = default(int), int int32Range = default(int), int int64Positive = default(int), int int64Negative = default(int), int int64PositiveExclusive = default(int), int int64NegativeExclusive = 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))
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param>
|
||||||
|
public FormatTest(int integer = default(int), int int32 = default(int), int int32Range = default(int), int int64Positive = default(int), int int64Negative = default(int), int int64PositiveExclusive = default(int), int int64NegativeExclusive = 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), decimal stringFormattedAsDecimal = default(decimal), decimal stringFormattedAsDecimalRequired = default(decimal))
|
||||||
{
|
{
|
||||||
this._Number = number;
|
this._Number = number;
|
||||||
// to ensure "varByte" is required (not null)
|
// to ensure "varByte" is required (not null)
|
||||||
@ -83,6 +85,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
throw new ArgumentNullException("password is a required property for FormatTest and cannot be null");
|
throw new ArgumentNullException("password is a required property for FormatTest and cannot be null");
|
||||||
}
|
}
|
||||||
this._Password = password;
|
this._Password = password;
|
||||||
|
this._StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
this._Integer = integer;
|
this._Integer = integer;
|
||||||
if (this.Integer != null)
|
if (this.Integer != null)
|
||||||
{
|
{
|
||||||
@ -183,6 +186,11 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this._flagPatternWithBackslash = true;
|
this._flagPatternWithBackslash = true;
|
||||||
}
|
}
|
||||||
|
this._StringFormattedAsDecimal = stringFormattedAsDecimal;
|
||||||
|
if (this.StringFormattedAsDecimal != null)
|
||||||
|
{
|
||||||
|
this._flagStringFormattedAsDecimal = true;
|
||||||
|
}
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -776,6 +784,54 @@ namespace Org.OpenAPITools.Model
|
|||||||
return _flagPatternWithBackslash;
|
return _flagPatternWithBackslash;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "string_formatted_as_decimal", EmitDefaultValue = false)]
|
||||||
|
public decimal StringFormattedAsDecimal
|
||||||
|
{
|
||||||
|
get{ return _StringFormattedAsDecimal;}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_StringFormattedAsDecimal = value;
|
||||||
|
_flagStringFormattedAsDecimal = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private decimal _StringFormattedAsDecimal;
|
||||||
|
private bool _flagStringFormattedAsDecimal;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns false as StringFormattedAsDecimal should not be serialized given that it's read-only.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>false (boolean)</returns>
|
||||||
|
public bool ShouldSerializeStringFormattedAsDecimal()
|
||||||
|
{
|
||||||
|
return _flagStringFormattedAsDecimal;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "string_formatted_as_decimal_required", IsRequired = true, EmitDefaultValue = true)]
|
||||||
|
public decimal StringFormattedAsDecimalRequired
|
||||||
|
{
|
||||||
|
get{ return _StringFormattedAsDecimalRequired;}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_StringFormattedAsDecimalRequired = value;
|
||||||
|
_flagStringFormattedAsDecimalRequired = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private decimal _StringFormattedAsDecimalRequired;
|
||||||
|
private bool _flagStringFormattedAsDecimalRequired;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns false as StringFormattedAsDecimalRequired should not be serialized given that it's read-only.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>false (boolean)</returns>
|
||||||
|
public bool ShouldSerializeStringFormattedAsDecimalRequired()
|
||||||
|
{
|
||||||
|
return _flagStringFormattedAsDecimalRequired;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
/// Gets or Sets additional properties
|
/// Gets or Sets additional properties
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonExtensionData]
|
[JsonExtensionData]
|
||||||
@ -813,6 +869,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
|
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
@ -910,6 +968,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
|
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
|
||||||
}
|
}
|
||||||
|
hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
|
||||||
|
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
|
||||||
if (this.AdditionalProperties != null)
|
if (this.AdditionalProperties != null)
|
||||||
{
|
{
|
||||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||||
|
@ -1706,11 +1706,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -28,6 +28,8 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**PatternWithBackslash** | **string** | None | [optional]
|
**PatternWithBackslash** | **string** | None | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -62,7 +62,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros..</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01..</param>
|
||||||
/// <param name="patternWithBackslash">None.</param>
|
/// <param name="patternWithBackslash">None.</param>
|
||||||
public FormatTest(int integer = default(int), int int32 = default(int), int int32Range = default(int), int int64Positive = default(int), int int64Negative = default(int), int int64PositiveExclusive = default(int), int int64NegativeExclusive = 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), DateOnly date = default(DateOnly), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string))
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param>
|
||||||
|
public FormatTest(int integer = default(int), int int32 = default(int), int int32Range = default(int), int int64Positive = default(int), int int64Negative = default(int), int int64PositiveExclusive = default(int), int int64NegativeExclusive = 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), DateOnly date = default(DateOnly), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string), decimal stringFormattedAsDecimal = default(decimal), decimal stringFormattedAsDecimalRequired = default(decimal))
|
||||||
{
|
{
|
||||||
this.Number = number;
|
this.Number = number;
|
||||||
// to ensure "varByte" is required (not null)
|
// to ensure "varByte" is required (not null)
|
||||||
@ -78,6 +80,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
throw new ArgumentNullException("password is a required property for FormatTest and cannot be null");
|
throw new ArgumentNullException("password is a required property for FormatTest and cannot be null");
|
||||||
}
|
}
|
||||||
this.Password = password;
|
this.Password = password;
|
||||||
|
this.StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
this.Integer = integer;
|
this.Integer = integer;
|
||||||
this.Int32 = int32;
|
this.Int32 = int32;
|
||||||
this.Int32Range = int32Range;
|
this.Int32Range = int32Range;
|
||||||
@ -98,6 +101,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
this.PatternWithDigits = patternWithDigits;
|
this.PatternWithDigits = patternWithDigits;
|
||||||
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
||||||
this.PatternWithBackslash = patternWithBackslash;
|
this.PatternWithBackslash = patternWithBackslash;
|
||||||
|
this.StringFormattedAsDecimal = stringFormattedAsDecimal;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -256,6 +260,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
[DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)]
|
[DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)]
|
||||||
public string PatternWithBackslash { get; set; }
|
public string PatternWithBackslash { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "string_formatted_as_decimal", EmitDefaultValue = false)]
|
||||||
|
public decimal StringFormattedAsDecimal { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "string_formatted_as_decimal_required", IsRequired = true, EmitDefaultValue = true)]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the string presentation of the object
|
/// Returns the string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -288,6 +304,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
|
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
@ -428,6 +446,14 @@ namespace Org.OpenAPITools.Model
|
|||||||
this.PatternWithBackslash == input.PatternWithBackslash ||
|
this.PatternWithBackslash == input.PatternWithBackslash ||
|
||||||
(this.PatternWithBackslash != null &&
|
(this.PatternWithBackslash != null &&
|
||||||
this.PatternWithBackslash.Equals(input.PatternWithBackslash))
|
this.PatternWithBackslash.Equals(input.PatternWithBackslash))
|
||||||
|
) &&
|
||||||
|
(
|
||||||
|
this.StringFormattedAsDecimal == input.StringFormattedAsDecimal ||
|
||||||
|
this.StringFormattedAsDecimal.Equals(input.StringFormattedAsDecimal)
|
||||||
|
) &&
|
||||||
|
(
|
||||||
|
this.StringFormattedAsDecimalRequired == input.StringFormattedAsDecimalRequired ||
|
||||||
|
this.StringFormattedAsDecimalRequired.Equals(input.StringFormattedAsDecimalRequired)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -494,6 +520,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
|
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
|
||||||
}
|
}
|
||||||
|
hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
|
||||||
|
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
|
||||||
return hashCode;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1706,11 +1706,18 @@ components:
|
|||||||
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\\
|
||||||
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
type: string
|
type: string
|
||||||
|
string_formatted_as_decimal:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
|
string_formatted_as_decimal_required:
|
||||||
|
format: decimal
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- byte
|
- byte
|
||||||
- date
|
- date
|
||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
|
- string_formatted_as_decimal_required
|
||||||
type: object
|
type: object
|
||||||
EnumClass:
|
EnumClass:
|
||||||
default: -efg
|
default: -efg
|
||||||
|
@ -28,6 +28,8 @@ Name | Type | Description | Notes
|
|||||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [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]
|
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
**PatternWithBackslash** | **string** | None | [optional]
|
**PatternWithBackslash** | **string** | None | [optional]
|
||||||
|
**StringFormattedAsDecimal** | **decimal** | | [optional]
|
||||||
|
**StringFormattedAsDecimalRequired** | **decimal** | |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -62,7 +62,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros..</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="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01..</param>
|
||||||
/// <param name="patternWithBackslash">None.</param>
|
/// <param name="patternWithBackslash">None.</param>
|
||||||
public FormatTest(int integer = default(int), int int32 = default(int), int int32Range = default(int), int int64Positive = default(int), int int64Negative = default(int), int int64PositiveExclusive = default(int), int int64NegativeExclusive = 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))
|
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param>
|
||||||
|
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param>
|
||||||
|
public FormatTest(int integer = default(int), int int32 = default(int), int int32Range = default(int), int int64Positive = default(int), int int64Negative = default(int), int int64PositiveExclusive = default(int), int int64NegativeExclusive = 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), decimal stringFormattedAsDecimal = default(decimal), decimal stringFormattedAsDecimalRequired = default(decimal))
|
||||||
{
|
{
|
||||||
this.Number = number;
|
this.Number = number;
|
||||||
// to ensure "varByte" is required (not null)
|
// to ensure "varByte" is required (not null)
|
||||||
@ -78,6 +80,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
throw new ArgumentNullException("password is a required property for FormatTest and cannot be null");
|
throw new ArgumentNullException("password is a required property for FormatTest and cannot be null");
|
||||||
}
|
}
|
||||||
this.Password = password;
|
this.Password = password;
|
||||||
|
this.StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
|
||||||
this.Integer = integer;
|
this.Integer = integer;
|
||||||
this.Int32 = int32;
|
this.Int32 = int32;
|
||||||
this.Int32Range = int32Range;
|
this.Int32Range = int32Range;
|
||||||
@ -98,6 +101,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
this.PatternWithDigits = patternWithDigits;
|
this.PatternWithDigits = patternWithDigits;
|
||||||
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
||||||
this.PatternWithBackslash = patternWithBackslash;
|
this.PatternWithBackslash = patternWithBackslash;
|
||||||
|
this.StringFormattedAsDecimal = stringFormattedAsDecimal;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -257,6 +261,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
[DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)]
|
[DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)]
|
||||||
public string PatternWithBackslash { get; set; }
|
public string PatternWithBackslash { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimal
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "string_formatted_as_decimal", EmitDefaultValue = false)]
|
||||||
|
public decimal StringFormattedAsDecimal { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets StringFormattedAsDecimalRequired
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "string_formatted_as_decimal_required", IsRequired = true, EmitDefaultValue = true)]
|
||||||
|
public decimal StringFormattedAsDecimalRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the string presentation of the object
|
/// Returns the string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -289,6 +305,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||||
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
|
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
|
||||||
|
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
@ -429,6 +447,14 @@ namespace Org.OpenAPITools.Model
|
|||||||
this.PatternWithBackslash == input.PatternWithBackslash ||
|
this.PatternWithBackslash == input.PatternWithBackslash ||
|
||||||
(this.PatternWithBackslash != null &&
|
(this.PatternWithBackslash != null &&
|
||||||
this.PatternWithBackslash.Equals(input.PatternWithBackslash))
|
this.PatternWithBackslash.Equals(input.PatternWithBackslash))
|
||||||
|
) &&
|
||||||
|
(
|
||||||
|
this.StringFormattedAsDecimal == input.StringFormattedAsDecimal ||
|
||||||
|
this.StringFormattedAsDecimal.Equals(input.StringFormattedAsDecimal)
|
||||||
|
) &&
|
||||||
|
(
|
||||||
|
this.StringFormattedAsDecimalRequired == input.StringFormattedAsDecimalRequired ||
|
||||||
|
this.StringFormattedAsDecimalRequired.Equals(input.StringFormattedAsDecimalRequired)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -495,6 +521,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
|
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
|
||||||
}
|
}
|
||||||
|
hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
|
||||||
|
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
|
||||||
return hashCode;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user