[csharp][generichost] Fixed string formatted as decimal (#20894)

* fixed string formatted as decimal

* build tests
This commit is contained in:
devhl-labs 2025-03-23 10:44:12 -04:00 committed by GitHub
parent 8756ff7596
commit 34c6c583cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
72 changed files with 1241 additions and 32 deletions

View File

@ -179,7 +179,12 @@
{{^isMap}}
{{^isEnum}}
{{^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}});
{{/isDecimal}}
{{/isUuid}}
{{/isEnum}}
{{/isMap}}
@ -439,7 +444,12 @@
{{^isEnum}}
{{^isUuid}}
{{#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}});
{{/isDecimal}}
{{/lambda.copyText}}
{{#lambda.indent3}}
{{>WriteProperty}}

View File

@ -1673,6 +1673,7 @@ components:
- byte
- date
- password
- string_formatted_as_decimal_required
properties:
integer:
type: integer
@ -1771,6 +1772,12 @@ components:
description: None
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]))$'
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
EnumClass:
type: string
default: '-efg'

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Date** | **DateTime** | |
**Number** | **decimal** | |
**Password** | **string** | |
**StringFormattedAsDecimalRequired** | **decimal** | |
**Binary** | **System.IO.Stream** | | [optional]
**DateTime** | **DateTime** | | [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]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
**String** | **string** | | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional]
**UnsignedInteger** | **uint** | | [optional]
**UnsignedLong** | **ulong** | | [optional]
**Uuid** | **Guid** | | [optional]

View File

@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'Binary'
/// </summary>
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'UnsignedInteger'
/// </summary>

View File

@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
/// <param name="date">date</param>
/// <param name="number">number</param>
/// <param name="password">password</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
/// <param name="binary">binary</param>
/// <param name="dateTime">dateTime</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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01.</param>
/// <param name="string">string</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
/// <param name="unsignedInteger">unsignedInteger</param>
/// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param>
[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;
Date = date;
Number = number;
Password = password;
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
BinaryOption = binary;
DateTimeOption = dateTime;
DecimalOption = @decimal;
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
PatternWithDigitsOption = patternWithDigits;
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
StringOption = @string;
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
UnsignedIntegerOption = unsignedInteger;
UnsignedLongOption = unsignedLong;
UuidOption = uuid;
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("password")]
public string Password { get; set; }
/// <summary>
/// Gets or Sets StringFormattedAsDecimalRequired
/// </summary>
[JsonPropertyName("string_formatted_as_decimal_required")]
public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Used to track the state of Binary
/// </summary>
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("string")]
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>
/// Used to track the state of UnsignedInteger
/// </summary>
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
sb.Append(" Date: ").Append(Date).Append("\n");
sb.Append(" Number: ").Append(Number).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(" DateTime: ").Append(DateTime).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(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> date = default;
Option<decimal?> number = default;
Option<string> password = default;
Option<decimal?> stringFormattedAsDecimalRequired = default;
Option<System.IO.Stream> binary = default;
Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default;
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
Option<string> patternWithDigits = default;
Option<string> patternWithDigitsAndDelimiter = default;
Option<string> varString = default;
Option<decimal?> stringFormattedAsDecimal = default;
Option<uint?> unsignedInteger = default;
Option<ulong?> unsignedLong = default;
Option<Guid?> uuid = default;
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
case "password":
password = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal_required":
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "binary":
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
break;
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
case "string":
varString = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal":
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "unsigned_integer":
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
break;
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
if (!password.IsSet)
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)
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)
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)
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)
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)
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)
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>
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
writer.WriteString("password", formatTest.Password);
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
if (formatTest.BinaryOption.IsSet)
{
writer.WritePropertyName("binary");
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
if (formatTest.StringOption.IsSet)
writer.WriteString("string", formatTest.String);
if (formatTest.StringFormattedAsDecimalOption.IsSet)
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
if (formatTest.UnsignedIntegerOption.IsSet)
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Date** | **DateTime** | |
**Number** | **decimal** | |
**Password** | **string** | |
**StringFormattedAsDecimalRequired** | **decimal** | |
**Binary** | **System.IO.Stream** | | [optional]
**DateTime** | **DateTime** | | [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]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [optional]
**String** | **string** | | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional]
**UnsignedInteger** | **uint** | | [optional]
**UnsignedLong** | **ulong** | | [optional]
**Uuid** | **Guid** | | [optional]

View File

@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'Binary'
/// </summary>
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'UnsignedInteger'
/// </summary>

View File

@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
/// <param name="date">date</param>
/// <param name="number">number</param>
/// <param name="password">password</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
/// <param name="binary">binary</param>
/// <param name="dateTime">dateTime</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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01.</param>
/// <param name="string">string</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
/// <param name="unsignedInteger">unsignedInteger</param>
/// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param>
[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;
Date = date;
Number = number;
Password = password;
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
BinaryOption = binary;
DateTimeOption = dateTime;
DecimalOption = @decimal;
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
PatternWithDigitsOption = patternWithDigits;
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
StringOption = @string;
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
UnsignedIntegerOption = unsignedInteger;
UnsignedLongOption = unsignedLong;
UuidOption = uuid;
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("password")]
public string Password { get; set; }
/// <summary>
/// Gets or Sets StringFormattedAsDecimalRequired
/// </summary>
[JsonPropertyName("string_formatted_as_decimal_required")]
public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Used to track the state of Binary
/// </summary>
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("string")]
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>
/// Used to track the state of UnsignedInteger
/// </summary>
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
sb.Append(" Date: ").Append(Date).Append("\n");
sb.Append(" Number: ").Append(Number).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(" DateTime: ").Append(DateTime).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(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> date = default;
Option<decimal?> number = default;
Option<string> password = default;
Option<decimal?> stringFormattedAsDecimalRequired = default;
Option<System.IO.Stream> binary = default;
Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default;
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
Option<string> patternWithDigits = default;
Option<string> patternWithDigitsAndDelimiter = default;
Option<string> varString = default;
Option<decimal?> stringFormattedAsDecimal = default;
Option<uint?> unsignedInteger = default;
Option<ulong?> unsignedLong = default;
Option<Guid?> uuid = default;
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
case "password":
password = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal_required":
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "binary":
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
break;
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
case "string":
varString = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal":
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "unsigned_integer":
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
break;
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
if (!password.IsSet)
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)
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)
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)
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)
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)
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)
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>
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
writer.WriteString("password", formatTest.Password);
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
if (formatTest.BinaryOption.IsSet)
{
writer.WritePropertyName("binary");
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
if (formatTest.StringOption.IsSet)
writer.WriteString("string", formatTest.String);
if (formatTest.StringFormattedAsDecimalOption.IsSet)
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
if (formatTest.UnsignedIntegerOption.IsSet)
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Date** | **DateTime** | |
**Number** | **decimal** | |
**Password** | **string** | |
**StringFormattedAsDecimalRequired** | **decimal** | |
**Binary** | **System.IO.Stream** | | [optional]
**DateTime** | **DateTime** | | [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]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [optional]
**String** | **string** | | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional]
**UnsignedInteger** | **uint** | | [optional]
**UnsignedLong** | **ulong** | | [optional]
**Uuid** | **Guid** | | [optional]

View File

@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'Binary'
/// </summary>
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'UnsignedInteger'
/// </summary>

View File

@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
/// <param name="date">date</param>
/// <param name="number">number</param>
/// <param name="password">password</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
/// <param name="binary">binary</param>
/// <param name="dateTime">dateTime</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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01.</param>
/// <param name="string">string</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
/// <param name="unsignedInteger">unsignedInteger</param>
/// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param>
[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;
Date = date;
Number = number;
Password = password;
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
BinaryOption = binary;
DateTimeOption = dateTime;
DecimalOption = @decimal;
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
PatternWithDigitsOption = patternWithDigits;
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
StringOption = @string;
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
UnsignedIntegerOption = unsignedInteger;
UnsignedLongOption = unsignedLong;
UuidOption = uuid;
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("password")]
public string Password { get; set; }
/// <summary>
/// Gets or Sets StringFormattedAsDecimalRequired
/// </summary>
[JsonPropertyName("string_formatted_as_decimal_required")]
public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Used to track the state of Binary
/// </summary>
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("string")]
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>
/// Used to track the state of UnsignedInteger
/// </summary>
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
sb.Append(" Date: ").Append(Date).Append("\n");
sb.Append(" Number: ").Append(Number).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(" DateTime: ").Append(DateTime).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(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> date = default;
Option<decimal?> number = default;
Option<string> password = default;
Option<decimal?> stringFormattedAsDecimalRequired = default;
Option<System.IO.Stream> binary = default;
Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default;
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
Option<string> patternWithDigits = default;
Option<string> patternWithDigitsAndDelimiter = default;
Option<string> varString = default;
Option<decimal?> stringFormattedAsDecimal = default;
Option<uint?> unsignedInteger = default;
Option<ulong?> unsignedLong = default;
Option<Guid?> uuid = default;
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
case "password":
password = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal_required":
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "binary":
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
break;
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
case "string":
varString = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal":
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "unsigned_integer":
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
break;
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
if (!password.IsSet)
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)
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)
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)
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)
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)
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)
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>
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
writer.WriteString("password", formatTest.Password);
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
if (formatTest.BinaryOption.IsSet)
{
writer.WritePropertyName("binary");
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
if (formatTest.StringOption.IsSet)
writer.WriteString("string", formatTest.String);
if (formatTest.StringFormattedAsDecimalOption.IsSet)
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
if (formatTest.UnsignedIntegerOption.IsSet)
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Date** | **DateTime** | |
**Number** | **decimal** | |
**Password** | **string** | |
**StringFormattedAsDecimalRequired** | **decimal** | |
**Binary** | **System.IO.Stream** | | [optional]
**DateTime** | **DateTime** | | [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]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [optional]
**String** | **string** | | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional]
**UnsignedInteger** | **uint** | | [optional]
**UnsignedLong** | **ulong** | | [optional]
**Uuid** | **Guid** | | [optional]

View File

@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'Binary'
/// </summary>
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'UnsignedInteger'
/// </summary>

View File

@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
/// <param name="date">date</param>
/// <param name="number">number</param>
/// <param name="password">password</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
/// <param name="binary">binary</param>
/// <param name="dateTime">dateTime</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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01.</param>
/// <param name="string">string</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
/// <param name="unsignedInteger">unsignedInteger</param>
/// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param>
[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;
Date = date;
Number = number;
Password = password;
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
BinaryOption = binary;
DateTimeOption = dateTime;
DecimalOption = @decimal;
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
PatternWithDigitsOption = patternWithDigits;
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
StringOption = @string;
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
UnsignedIntegerOption = unsignedInteger;
UnsignedLongOption = unsignedLong;
UuidOption = uuid;
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("password")]
public string Password { get; set; }
/// <summary>
/// Gets or Sets StringFormattedAsDecimalRequired
/// </summary>
[JsonPropertyName("string_formatted_as_decimal_required")]
public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Used to track the state of Binary
/// </summary>
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("string")]
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>
/// Used to track the state of UnsignedInteger
/// </summary>
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
sb.Append(" Date: ").Append(Date).Append("\n");
sb.Append(" Number: ").Append(Number).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(" DateTime: ").Append(DateTime).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(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> date = default;
Option<decimal?> number = default;
Option<string> password = default;
Option<decimal?> stringFormattedAsDecimalRequired = default;
Option<System.IO.Stream> binary = default;
Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default;
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
Option<string> patternWithDigits = default;
Option<string> patternWithDigitsAndDelimiter = default;
Option<string> varString = default;
Option<decimal?> stringFormattedAsDecimal = default;
Option<uint?> unsignedInteger = default;
Option<ulong?> unsignedLong = default;
Option<Guid?> uuid = default;
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
case "password":
password = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal_required":
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "binary":
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
break;
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
case "string":
varString = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal":
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "unsigned_integer":
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
break;
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
if (!password.IsSet)
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)
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)
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)
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)
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)
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)
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>
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
writer.WriteString("password", formatTest.Password);
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
if (formatTest.BinaryOption.IsSet)
{
writer.WritePropertyName("binary");
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
if (formatTest.StringOption.IsSet)
writer.WriteString("string", formatTest.String);
if (formatTest.StringFormattedAsDecimalOption.IsSet)
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
if (formatTest.UnsignedIntegerOption.IsSet)
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Date** | **DateOnly** | |
**Number** | **decimal** | |
**Password** | **string** | |
**StringFormattedAsDecimalRequired** | **decimal** | |
**Binary** | **System.IO.Stream** | | [optional]
**DateTime** | **DateTime** | | [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]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [optional]
**String** | **string** | | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional]
**UnsignedInteger** | **uint** | | [optional]
**UnsignedLong** | **ulong** | | [optional]
**Uuid** | **Guid** | | [optional]

View File

@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'Binary'
/// </summary>
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'UnsignedInteger'
/// </summary>

View File

@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
/// <param name="date">date</param>
/// <param name="number">number</param>
/// <param name="password">password</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
/// <param name="binary">binary</param>
/// <param name="dateTime">dateTime</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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01.</param>
/// <param name="string">string</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
/// <param name="unsignedInteger">unsignedInteger</param>
/// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param>
[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;
Date = date;
Number = number;
Password = password;
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
BinaryOption = binary;
DateTimeOption = dateTime;
DecimalOption = @decimal;
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
PatternWithDigitsOption = patternWithDigits;
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
StringOption = @string;
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
UnsignedIntegerOption = unsignedInteger;
UnsignedLongOption = unsignedLong;
UuidOption = uuid;
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("password")]
public string Password { get; set; }
/// <summary>
/// Gets or Sets StringFormattedAsDecimalRequired
/// </summary>
[JsonPropertyName("string_formatted_as_decimal_required")]
public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Used to track the state of Binary
/// </summary>
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("string")]
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>
/// Used to track the state of UnsignedInteger
/// </summary>
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
sb.Append(" Date: ").Append(Date).Append("\n");
sb.Append(" Number: ").Append(Number).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(" DateTime: ").Append(DateTime).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(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
Option<DateOnly?> date = default;
Option<decimal?> number = default;
Option<string> password = default;
Option<decimal?> stringFormattedAsDecimalRequired = default;
Option<System.IO.Stream> binary = default;
Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default;
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
Option<string> patternWithDigits = default;
Option<string> patternWithDigitsAndDelimiter = default;
Option<string> varString = default;
Option<decimal?> stringFormattedAsDecimal = default;
Option<uint?> unsignedInteger = default;
Option<ulong?> unsignedLong = default;
Option<Guid?> uuid = default;
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
case "password":
password = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal_required":
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "binary":
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
break;
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
case "string":
varString = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal":
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "unsigned_integer":
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
break;
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
if (!password.IsSet)
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)
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)
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)
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)
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)
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)
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>
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
writer.WriteString("password", formatTest.Password);
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
if (formatTest.BinaryOption.IsSet)
{
writer.WritePropertyName("binary");
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
if (formatTest.StringOption.IsSet)
writer.WriteString("string", formatTest.String);
if (formatTest.StringFormattedAsDecimalOption.IsSet)
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
if (formatTest.UnsignedIntegerOption.IsSet)
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Date** | **DateOnly** | |
**Number** | **decimal** | |
**Password** | **string** | |
**StringFormattedAsDecimalRequired** | **decimal** | |
**Binary** | **System.IO.Stream** | | [optional]
**DateTime** | **DateTime** | | [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]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [optional]
**String** | **string** | | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional]
**UnsignedInteger** | **uint** | | [optional]
**UnsignedLong** | **ulong** | | [optional]
**Uuid** | **Guid** | | [optional]

View File

@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'Binary'
/// </summary>
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'UnsignedInteger'
/// </summary>

View File

@ -38,6 +38,7 @@ namespace Org.OpenAPITools.Model
/// <param name="date">date</param>
/// <param name="number">number</param>
/// <param name="password">password</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
/// <param name="binary">binary</param>
/// <param name="dateTime">dateTime</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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01.</param>
/// <param name="string">string</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
/// <param name="unsignedInteger">unsignedInteger</param>
/// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param>
[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;
Date = date;
Number = number;
Password = password;
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
BinaryOption = binary;
DateTimeOption = dateTime;
DecimalOption = @decimal;
@ -82,6 +85,7 @@ namespace Org.OpenAPITools.Model
PatternWithDigitsOption = patternWithDigits;
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
StringOption = @string;
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
UnsignedIntegerOption = unsignedInteger;
UnsignedLongOption = unsignedLong;
UuidOption = uuid;
@ -115,6 +119,12 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("password")]
public string Password { get; set; }
/// <summary>
/// Gets or Sets StringFormattedAsDecimalRequired
/// </summary>
[JsonPropertyName("string_formatted_as_decimal_required")]
public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Used to track the state of Binary
/// </summary>
@ -340,6 +350,19 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("string")]
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>
/// Used to track the state of UnsignedInteger
/// </summary>
@ -398,6 +421,7 @@ namespace Org.OpenAPITools.Model
sb.Append(" Date: ").Append(Date).Append("\n");
sb.Append(" Number: ").Append(Number).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(" DateTime: ").Append(DateTime).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(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
@ -630,6 +655,7 @@ namespace Org.OpenAPITools.Model
Option<DateOnly?> date = default;
Option<decimal?> number = default;
Option<string?> password = default;
Option<decimal?> stringFormattedAsDecimalRequired = default;
Option<System.IO.Stream?> binary = default;
Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default;
@ -647,6 +673,7 @@ namespace Org.OpenAPITools.Model
Option<string?> patternWithDigits = default;
Option<string?> patternWithDigitsAndDelimiter = default;
Option<string?> varString = default;
Option<decimal?> stringFormattedAsDecimal = default;
Option<uint?> unsignedInteger = default;
Option<ulong?> unsignedLong = default;
Option<Guid?> uuid = default;
@ -678,6 +705,9 @@ namespace Org.OpenAPITools.Model
case "password":
password = new Option<string?>(utf8JsonReader.GetString()!);
break;
case "string_formatted_as_decimal_required":
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "binary":
binary = new Option<System.IO.Stream?>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions)!);
break;
@ -729,6 +759,9 @@ namespace Org.OpenAPITools.Model
case "string":
varString = new Option<string?>(utf8JsonReader.GetString()!);
break;
case "string_formatted_as_decimal":
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "unsigned_integer":
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
break;
@ -756,6 +789,9 @@ namespace Org.OpenAPITools.Model
if (!password.IsSet)
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)
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)
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)
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)
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)
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)
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>
@ -884,6 +926,8 @@ namespace Org.OpenAPITools.Model
writer.WriteString("password", formatTest.Password);
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
if (formatTest.BinaryOption.IsSet)
{
writer.WritePropertyName("binary");
@ -939,6 +983,9 @@ namespace Org.OpenAPITools.Model
if (formatTest.StringOption.IsSet)
writer.WriteString("string", formatTest.String);
if (formatTest.StringFormattedAsDecimalOption.IsSet)
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
if (formatTest.UnsignedIntegerOption.IsSet)
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value!.Value);

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Date** | **DateOnly** | |
**Number** | **decimal** | |
**Password** | **string** | |
**StringFormattedAsDecimalRequired** | **decimal** | |
**Binary** | **System.IO.Stream** | | [optional]
**DateTime** | **DateTime** | | [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]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [optional]
**String** | **string** | | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional]
**UnsignedInteger** | **uint** | | [optional]
**UnsignedLong** | **ulong** | | [optional]
**Uuid** | **Guid** | | [optional]

View File

@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'Binary'
/// </summary>
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'UnsignedInteger'
/// </summary>

View File

@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
/// <param name="date">date</param>
/// <param name="number">number</param>
/// <param name="password">password</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
/// <param name="binary">binary</param>
/// <param name="dateTime">dateTime</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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01.</param>
/// <param name="string">string</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
/// <param name="unsignedInteger">unsignedInteger</param>
/// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param>
[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;
Date = date;
Number = number;
Password = password;
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
BinaryOption = binary;
DateTimeOption = dateTime;
DecimalOption = @decimal;
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
PatternWithDigitsOption = patternWithDigits;
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
StringOption = @string;
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
UnsignedIntegerOption = unsignedInteger;
UnsignedLongOption = unsignedLong;
UuidOption = uuid;
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("password")]
public string Password { get; set; }
/// <summary>
/// Gets or Sets StringFormattedAsDecimalRequired
/// </summary>
[JsonPropertyName("string_formatted_as_decimal_required")]
public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Used to track the state of Binary
/// </summary>
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("string")]
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>
/// Used to track the state of UnsignedInteger
/// </summary>
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
sb.Append(" Date: ").Append(Date).Append("\n");
sb.Append(" Number: ").Append(Number).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(" DateTime: ").Append(DateTime).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(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
Option<DateOnly?> date = default;
Option<decimal?> number = default;
Option<string> password = default;
Option<decimal?> stringFormattedAsDecimalRequired = default;
Option<System.IO.Stream> binary = default;
Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default;
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
Option<string> patternWithDigits = default;
Option<string> patternWithDigitsAndDelimiter = default;
Option<string> varString = default;
Option<decimal?> stringFormattedAsDecimal = default;
Option<uint?> unsignedInteger = default;
Option<ulong?> unsignedLong = default;
Option<Guid?> uuid = default;
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
case "password":
password = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal_required":
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "binary":
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
break;
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
case "string":
varString = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal":
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "unsigned_integer":
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
break;
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
if (!password.IsSet)
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)
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)
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)
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)
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)
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)
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>
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
writer.WriteString("password", formatTest.Password);
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
if (formatTest.BinaryOption.IsSet)
{
writer.WritePropertyName("binary");
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
if (formatTest.StringOption.IsSet)
writer.WriteString("string", formatTest.String);
if (formatTest.StringFormattedAsDecimalOption.IsSet)
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
if (formatTest.UnsignedIntegerOption.IsSet)
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Date** | **DateOnly** | |
**Number** | **decimal** | |
**Password** | **string** | |
**StringFormattedAsDecimalRequired** | **decimal** | |
**Binary** | **System.IO.Stream** | | [optional]
**DateTime** | **DateTime** | | [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]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [optional]
**String** | **string** | | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional]
**UnsignedInteger** | **uint** | | [optional]
**UnsignedLong** | **ulong** | | [optional]
**Uuid** | **Guid** | | [optional]

View File

@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'Binary'
/// </summary>
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'UnsignedInteger'
/// </summary>

View File

@ -39,6 +39,7 @@ namespace Org.OpenAPITools.Model
/// <param name="date">date</param>
/// <param name="number">number</param>
/// <param name="password">password</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
/// <param name="binary">binary</param>
/// <param name="dateTime">dateTime</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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01.</param>
/// <param name="string">string</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
/// <param name="unsignedInteger">unsignedInteger</param>
/// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param>
[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;
Date = date;
Number = number;
Password = password;
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
BinaryOption = binary;
DateTimeOption = dateTime;
DecimalOption = @decimal;
@ -83,6 +86,7 @@ namespace Org.OpenAPITools.Model
PatternWithDigitsOption = patternWithDigits;
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
StringOption = @string;
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
UnsignedIntegerOption = unsignedInteger;
UnsignedLongOption = unsignedLong;
UuidOption = uuid;
@ -116,6 +120,12 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("password")]
public string Password { get; set; }
/// <summary>
/// Gets or Sets StringFormattedAsDecimalRequired
/// </summary>
[JsonPropertyName("string_formatted_as_decimal_required")]
public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Used to track the state of Binary
/// </summary>
@ -341,6 +351,19 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("string")]
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>
/// Used to track the state of UnsignedInteger
/// </summary>
@ -399,6 +422,7 @@ namespace Org.OpenAPITools.Model
sb.Append(" Date: ").Append(Date).Append("\n");
sb.Append(" Number: ").Append(Number).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(" DateTime: ").Append(DateTime).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(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
@ -631,6 +656,7 @@ namespace Org.OpenAPITools.Model
Option<DateOnly?> date = default;
Option<decimal?> number = default;
Option<string?> password = default;
Option<decimal?> stringFormattedAsDecimalRequired = default;
Option<System.IO.Stream?> binary = default;
Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default;
@ -648,6 +674,7 @@ namespace Org.OpenAPITools.Model
Option<string?> patternWithDigits = default;
Option<string?> patternWithDigitsAndDelimiter = default;
Option<string?> varString = default;
Option<decimal?> stringFormattedAsDecimal = default;
Option<uint?> unsignedInteger = default;
Option<ulong?> unsignedLong = default;
Option<Guid?> uuid = default;
@ -679,6 +706,9 @@ namespace Org.OpenAPITools.Model
case "password":
password = new Option<string?>(utf8JsonReader.GetString()!);
break;
case "string_formatted_as_decimal_required":
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "binary":
binary = new Option<System.IO.Stream?>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions)!);
break;
@ -730,6 +760,9 @@ namespace Org.OpenAPITools.Model
case "string":
varString = new Option<string?>(utf8JsonReader.GetString()!);
break;
case "string_formatted_as_decimal":
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "unsigned_integer":
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
break;
@ -757,6 +790,9 @@ namespace Org.OpenAPITools.Model
if (!password.IsSet)
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)
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)
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)
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)
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)
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)
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>
@ -885,6 +927,8 @@ namespace Org.OpenAPITools.Model
writer.WriteString("password", formatTest.Password);
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
if (formatTest.BinaryOption.IsSet)
{
writer.WritePropertyName("binary");
@ -940,6 +984,9 @@ namespace Org.OpenAPITools.Model
if (formatTest.StringOption.IsSet)
writer.WriteString("string", formatTest.String);
if (formatTest.StringFormattedAsDecimalOption.IsSet)
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
if (formatTest.UnsignedIntegerOption.IsSet)
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value!.Value);

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Date** | **DateOnly** | |
**Number** | **decimal** | |
**Password** | **string** | |
**StringFormattedAsDecimalRequired** | **decimal** | |
**Binary** | **System.IO.Stream** | | [optional]
**DateTime** | **DateTime** | | [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]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [optional]
**String** | **string** | | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional]
**UnsignedInteger** | **uint** | | [optional]
**UnsignedLong** | **ulong** | | [optional]
**Uuid** | **Guid** | | [optional]

View File

@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'Binary'
/// </summary>
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'UnsignedInteger'
/// </summary>

View File

@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
/// <param name="date">date</param>
/// <param name="number">number</param>
/// <param name="password">password</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
/// <param name="binary">binary</param>
/// <param name="dateTime">dateTime</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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01.</param>
/// <param name="string">string</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
/// <param name="unsignedInteger">unsignedInteger</param>
/// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param>
[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;
Date = date;
Number = number;
Password = password;
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
BinaryOption = binary;
DateTimeOption = dateTime;
DecimalOption = @decimal;
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
PatternWithDigitsOption = patternWithDigits;
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
StringOption = @string;
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
UnsignedIntegerOption = unsignedInteger;
UnsignedLongOption = unsignedLong;
UuidOption = uuid;
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("password")]
public string Password { get; set; }
/// <summary>
/// Gets or Sets StringFormattedAsDecimalRequired
/// </summary>
[JsonPropertyName("string_formatted_as_decimal_required")]
public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Used to track the state of Binary
/// </summary>
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("string")]
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>
/// Used to track the state of UnsignedInteger
/// </summary>
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
sb.Append(" Date: ").Append(Date).Append("\n");
sb.Append(" Number: ").Append(Number).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(" DateTime: ").Append(DateTime).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(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
Option<DateOnly?> date = default;
Option<decimal?> number = default;
Option<string> password = default;
Option<decimal?> stringFormattedAsDecimalRequired = default;
Option<System.IO.Stream> binary = default;
Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default;
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
Option<string> patternWithDigits = default;
Option<string> patternWithDigitsAndDelimiter = default;
Option<string> varString = default;
Option<decimal?> stringFormattedAsDecimal = default;
Option<uint?> unsignedInteger = default;
Option<ulong?> unsignedLong = default;
Option<Guid?> uuid = default;
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
case "password":
password = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal_required":
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "binary":
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
break;
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
case "string":
varString = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal":
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "unsigned_integer":
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
break;
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
if (!password.IsSet)
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)
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)
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)
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)
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)
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)
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>
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
writer.WriteString("password", formatTest.Password);
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
if (formatTest.BinaryOption.IsSet)
{
writer.WritePropertyName("binary");
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
if (formatTest.StringOption.IsSet)
writer.WriteString("string", formatTest.String);
if (formatTest.StringFormattedAsDecimalOption.IsSet)
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
if (formatTest.UnsignedIntegerOption.IsSet)
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Date** | **DateOnly** | |
**Number** | **decimal** | |
**Password** | **string** | |
**StringFormattedAsDecimalRequired** | **decimal** | |
**Binary** | **System.IO.Stream** | | [optional]
**DateTime** | **DateTime** | | [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]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [optional]
**String** | **string** | | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional]
**UnsignedInteger** | **uint** | | [optional]
**UnsignedLong** | **ulong** | | [optional]
**Uuid** | **Guid** | | [optional]

View File

@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'Binary'
/// </summary>
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'UnsignedInteger'
/// </summary>

View File

@ -38,6 +38,7 @@ namespace Org.OpenAPITools.Model
/// <param name="date">date</param>
/// <param name="number">number</param>
/// <param name="password">password</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
/// <param name="binary">binary</param>
/// <param name="dateTime">dateTime</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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01.</param>
/// <param name="string">string</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
/// <param name="unsignedInteger">unsignedInteger</param>
/// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param>
[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;
Date = date;
Number = number;
Password = password;
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
BinaryOption = binary;
DateTimeOption = dateTime;
DecimalOption = @decimal;
@ -82,6 +85,7 @@ namespace Org.OpenAPITools.Model
PatternWithDigitsOption = patternWithDigits;
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
StringOption = @string;
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
UnsignedIntegerOption = unsignedInteger;
UnsignedLongOption = unsignedLong;
UuidOption = uuid;
@ -115,6 +119,12 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("password")]
public string Password { get; set; }
/// <summary>
/// Gets or Sets StringFormattedAsDecimalRequired
/// </summary>
[JsonPropertyName("string_formatted_as_decimal_required")]
public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Used to track the state of Binary
/// </summary>
@ -340,6 +350,19 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("string")]
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>
/// Used to track the state of UnsignedInteger
/// </summary>
@ -398,6 +421,7 @@ namespace Org.OpenAPITools.Model
sb.Append(" Date: ").Append(Date).Append("\n");
sb.Append(" Number: ").Append(Number).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(" DateTime: ").Append(DateTime).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(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
@ -630,6 +655,7 @@ namespace Org.OpenAPITools.Model
Option<DateOnly?> date = default;
Option<decimal?> number = default;
Option<string?> password = default;
Option<decimal?> stringFormattedAsDecimalRequired = default;
Option<System.IO.Stream?> binary = default;
Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default;
@ -647,6 +673,7 @@ namespace Org.OpenAPITools.Model
Option<string?> patternWithDigits = default;
Option<string?> patternWithDigitsAndDelimiter = default;
Option<string?> varString = default;
Option<decimal?> stringFormattedAsDecimal = default;
Option<uint?> unsignedInteger = default;
Option<ulong?> unsignedLong = default;
Option<Guid?> uuid = default;
@ -678,6 +705,9 @@ namespace Org.OpenAPITools.Model
case "password":
password = new Option<string?>(utf8JsonReader.GetString()!);
break;
case "string_formatted_as_decimal_required":
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "binary":
binary = new Option<System.IO.Stream?>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions)!);
break;
@ -729,6 +759,9 @@ namespace Org.OpenAPITools.Model
case "string":
varString = new Option<string?>(utf8JsonReader.GetString()!);
break;
case "string_formatted_as_decimal":
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "unsigned_integer":
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
break;
@ -756,6 +789,9 @@ namespace Org.OpenAPITools.Model
if (!password.IsSet)
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)
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)
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)
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)
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)
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)
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>
@ -884,6 +926,8 @@ namespace Org.OpenAPITools.Model
writer.WriteString("password", formatTest.Password);
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
if (formatTest.BinaryOption.IsSet)
{
writer.WritePropertyName("binary");
@ -939,6 +983,9 @@ namespace Org.OpenAPITools.Model
if (formatTest.StringOption.IsSet)
writer.WriteString("string", formatTest.String);
if (formatTest.StringFormattedAsDecimalOption.IsSet)
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
if (formatTest.UnsignedIntegerOption.IsSet)
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value!.Value);

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Date** | **DateOnly** | |
**Number** | **decimal** | |
**Password** | **string** | |
**StringFormattedAsDecimalRequired** | **decimal** | |
**Binary** | **System.IO.Stream** | | [optional]
**DateTime** | **DateTime** | | [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]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [optional]
**String** | **string** | | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional]
**UnsignedInteger** | **uint** | | [optional]
**UnsignedLong** | **ulong** | | [optional]
**Uuid** | **Guid** | | [optional]

View File

@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'Binary'
/// </summary>
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'UnsignedInteger'
/// </summary>

View File

@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
/// <param name="date">date</param>
/// <param name="number">number</param>
/// <param name="password">password</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
/// <param name="binary">binary</param>
/// <param name="dateTime">dateTime</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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01.</param>
/// <param name="string">string</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
/// <param name="unsignedInteger">unsignedInteger</param>
/// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param>
[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;
Date = date;
Number = number;
Password = password;
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
BinaryOption = binary;
DateTimeOption = dateTime;
DecimalOption = @decimal;
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
PatternWithDigitsOption = patternWithDigits;
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
StringOption = @string;
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
UnsignedIntegerOption = unsignedInteger;
UnsignedLongOption = unsignedLong;
UuidOption = uuid;
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("password")]
public string Password { get; set; }
/// <summary>
/// Gets or Sets StringFormattedAsDecimalRequired
/// </summary>
[JsonPropertyName("string_formatted_as_decimal_required")]
public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Used to track the state of Binary
/// </summary>
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("string")]
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>
/// Used to track the state of UnsignedInteger
/// </summary>
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
sb.Append(" Date: ").Append(Date).Append("\n");
sb.Append(" Number: ").Append(Number).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(" DateTime: ").Append(DateTime).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(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
Option<DateOnly?> date = default;
Option<decimal?> number = default;
Option<string> password = default;
Option<decimal?> stringFormattedAsDecimalRequired = default;
Option<System.IO.Stream> binary = default;
Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default;
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
Option<string> patternWithDigits = default;
Option<string> patternWithDigitsAndDelimiter = default;
Option<string> varString = default;
Option<decimal?> stringFormattedAsDecimal = default;
Option<uint?> unsignedInteger = default;
Option<ulong?> unsignedLong = default;
Option<Guid?> uuid = default;
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
case "password":
password = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal_required":
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "binary":
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
break;
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
case "string":
varString = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal":
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "unsigned_integer":
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
break;
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
if (!password.IsSet)
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)
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)
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)
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)
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)
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)
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>
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
writer.WriteString("password", formatTest.Password);
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
if (formatTest.BinaryOption.IsSet)
{
writer.WritePropertyName("binary");
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
if (formatTest.StringOption.IsSet)
writer.WriteString("string", formatTest.String);
if (formatTest.StringFormattedAsDecimalOption.IsSet)
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
if (formatTest.UnsignedIntegerOption.IsSet)
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Date** | **DateOnly** | |
**Number** | **decimal** | |
**Password** | **string** | |
**StringFormattedAsDecimalRequired** | **decimal** | |
**Binary** | **System.IO.Stream** | | [optional]
**DateTime** | **DateTime** | | [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]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [optional]
**String** | **string** | | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional]
**UnsignedInteger** | **uint** | | [optional]
**UnsignedLong** | **ulong** | | [optional]
**Uuid** | **Guid** | | [optional]

View File

@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'Binary'
/// </summary>
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'UnsignedInteger'
/// </summary>

View File

@ -39,6 +39,7 @@ namespace Org.OpenAPITools.Model
/// <param name="date">date</param>
/// <param name="number">number</param>
/// <param name="password">password</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
/// <param name="binary">binary</param>
/// <param name="dateTime">dateTime</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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01.</param>
/// <param name="string">string</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
/// <param name="unsignedInteger">unsignedInteger</param>
/// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param>
[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;
Date = date;
Number = number;
Password = password;
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
BinaryOption = binary;
DateTimeOption = dateTime;
DecimalOption = @decimal;
@ -83,6 +86,7 @@ namespace Org.OpenAPITools.Model
PatternWithDigitsOption = patternWithDigits;
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
StringOption = @string;
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
UnsignedIntegerOption = unsignedInteger;
UnsignedLongOption = unsignedLong;
UuidOption = uuid;
@ -116,6 +120,12 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("password")]
public string Password { get; set; }
/// <summary>
/// Gets or Sets StringFormattedAsDecimalRequired
/// </summary>
[JsonPropertyName("string_formatted_as_decimal_required")]
public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Used to track the state of Binary
/// </summary>
@ -341,6 +351,19 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("string")]
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>
/// Used to track the state of UnsignedInteger
/// </summary>
@ -399,6 +422,7 @@ namespace Org.OpenAPITools.Model
sb.Append(" Date: ").Append(Date).Append("\n");
sb.Append(" Number: ").Append(Number).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(" DateTime: ").Append(DateTime).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(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
@ -631,6 +656,7 @@ namespace Org.OpenAPITools.Model
Option<DateOnly?> date = default;
Option<decimal?> number = default;
Option<string?> password = default;
Option<decimal?> stringFormattedAsDecimalRequired = default;
Option<System.IO.Stream?> binary = default;
Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default;
@ -648,6 +674,7 @@ namespace Org.OpenAPITools.Model
Option<string?> patternWithDigits = default;
Option<string?> patternWithDigitsAndDelimiter = default;
Option<string?> varString = default;
Option<decimal?> stringFormattedAsDecimal = default;
Option<uint?> unsignedInteger = default;
Option<ulong?> unsignedLong = default;
Option<Guid?> uuid = default;
@ -679,6 +706,9 @@ namespace Org.OpenAPITools.Model
case "password":
password = new Option<string?>(utf8JsonReader.GetString()!);
break;
case "string_formatted_as_decimal_required":
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "binary":
binary = new Option<System.IO.Stream?>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions)!);
break;
@ -730,6 +760,9 @@ namespace Org.OpenAPITools.Model
case "string":
varString = new Option<string?>(utf8JsonReader.GetString()!);
break;
case "string_formatted_as_decimal":
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "unsigned_integer":
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
break;
@ -757,6 +790,9 @@ namespace Org.OpenAPITools.Model
if (!password.IsSet)
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)
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)
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)
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)
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)
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)
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>
@ -885,6 +927,8 @@ namespace Org.OpenAPITools.Model
writer.WriteString("password", formatTest.Password);
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
if (formatTest.BinaryOption.IsSet)
{
writer.WritePropertyName("binary");
@ -940,6 +984,9 @@ namespace Org.OpenAPITools.Model
if (formatTest.StringOption.IsSet)
writer.WriteString("string", formatTest.String);
if (formatTest.StringFormattedAsDecimalOption.IsSet)
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
if (formatTest.UnsignedIntegerOption.IsSet)
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value!.Value);

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Date** | **DateTime** | |
**Number** | **decimal** | |
**Password** | **string** | |
**StringFormattedAsDecimalRequired** | **decimal** | |
**Binary** | **System.IO.Stream** | | [optional]
**DateTime** | **DateTime** | | [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]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [optional]
**String** | **string** | | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional]
**UnsignedInteger** | **uint** | | [optional]
**UnsignedLong** | **ulong** | | [optional]
**Uuid** | **Guid** | | [optional]

View File

@ -89,6 +89,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'Binary'
/// </summary>
@ -242,6 +251,15 @@ namespace Org.OpenAPITools.Test.Model
// 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>
/// Test the property 'UnsignedInteger'
/// </summary>

View File

@ -36,6 +36,7 @@ namespace Org.OpenAPITools.Model
/// <param name="date">date</param>
/// <param name="number">number</param>
/// <param name="password">password</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired</param>
/// <param name="binary">binary</param>
/// <param name="dateTime">dateTime</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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01.</param>
/// <param name="string">string</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal</param>
/// <param name="unsignedInteger">unsignedInteger</param>
/// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param>
[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;
Date = date;
Number = number;
Password = password;
StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
BinaryOption = binary;
DateTimeOption = dateTime;
DecimalOption = @decimal;
@ -80,6 +83,7 @@ namespace Org.OpenAPITools.Model
PatternWithDigitsOption = patternWithDigits;
PatternWithDigitsAndDelimiterOption = patternWithDigitsAndDelimiter;
StringOption = @string;
StringFormattedAsDecimalOption = stringFormattedAsDecimal;
UnsignedIntegerOption = unsignedInteger;
UnsignedLongOption = unsignedLong;
UuidOption = uuid;
@ -113,6 +117,12 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("password")]
public string Password { get; set; }
/// <summary>
/// Gets or Sets StringFormattedAsDecimalRequired
/// </summary>
[JsonPropertyName("string_formatted_as_decimal_required")]
public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Used to track the state of Binary
/// </summary>
@ -338,6 +348,19 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("string")]
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>
/// Used to track the state of UnsignedInteger
/// </summary>
@ -396,6 +419,7 @@ namespace Org.OpenAPITools.Model
sb.Append(" Date: ").Append(Date).Append("\n");
sb.Append(" Number: ").Append(Number).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(" DateTime: ").Append(DateTime).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(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
@ -628,6 +653,7 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> date = default;
Option<decimal?> number = default;
Option<string> password = default;
Option<decimal?> stringFormattedAsDecimalRequired = default;
Option<System.IO.Stream> binary = default;
Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default;
@ -645,6 +671,7 @@ namespace Org.OpenAPITools.Model
Option<string> patternWithDigits = default;
Option<string> patternWithDigitsAndDelimiter = default;
Option<string> varString = default;
Option<decimal?> stringFormattedAsDecimal = default;
Option<uint?> unsignedInteger = default;
Option<ulong?> unsignedLong = default;
Option<Guid?> uuid = default;
@ -676,6 +703,9 @@ namespace Org.OpenAPITools.Model
case "password":
password = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal_required":
stringFormattedAsDecimalRequired = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "binary":
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
break;
@ -727,6 +757,9 @@ namespace Org.OpenAPITools.Model
case "string":
varString = new Option<string>(utf8JsonReader.GetString());
break;
case "string_formatted_as_decimal":
stringFormattedAsDecimal = new Option<decimal?>(utf8JsonReader.GetDecimal());
break;
case "unsigned_integer":
unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
break;
@ -754,6 +787,9 @@ namespace Org.OpenAPITools.Model
if (!password.IsSet)
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)
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)
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)
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)
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)
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)
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>
@ -882,6 +924,8 @@ namespace Org.OpenAPITools.Model
writer.WriteString("password", formatTest.Password);
writer.WriteString("string_formatted_as_decimal_required", formatTest.StringFormattedAsDecimalRequired.ToString());
if (formatTest.BinaryOption.IsSet)
{
writer.WritePropertyName("binary");
@ -937,6 +981,9 @@ namespace Org.OpenAPITools.Model
if (formatTest.StringOption.IsSet)
writer.WriteString("string", formatTest.String);
if (formatTest.StringFormattedAsDecimalOption.IsSet)
writer.WriteString("string_formatted_as_decimal", formatTest.StringFormattedAsDecimal.ToString());
if (formatTest.UnsignedIntegerOption.IsSet)
writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value);

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -28,6 +28,8 @@ Name | Type | Description | Notes
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [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)

View File

@ -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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01..</param>
/// <param name="patternWithBackslash">None.</param>
public FormatTest(int integer = default(int), int int32 = default(int), 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;
// 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");
}
this.Password = password;
this.StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
this.Integer = integer;
this.Int32 = int32;
this.Int32Range = int32Range;
@ -104,6 +107,7 @@ namespace Org.OpenAPITools.Model
this.PatternWithDigits = patternWithDigits;
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
this.PatternWithBackslash = patternWithBackslash;
this.StringFormattedAsDecimal = stringFormattedAsDecimal;
this.AdditionalProperties = new Dictionary<string, object>();
}
@ -263,6 +267,18 @@ namespace Org.OpenAPITools.Model
[DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)]
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>
/// Gets or Sets additional properties
/// </summary>
@ -301,6 +317,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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("}\n");
return sb.ToString();
@ -398,6 +416,8 @@ namespace Org.OpenAPITools.Model
{
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
}
hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -28,6 +28,8 @@ Name | Type | Description | Notes
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [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)

View File

@ -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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01..</param>
/// <param name="patternWithBackslash">None.</param>
public FormatTest(int integer = default(int), int int32 = default(int), 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;
// 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");
}
this.Password = password;
this.StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
this.Integer = integer;
this.Int32 = int32;
this.Int32Range = int32Range;
@ -104,6 +107,7 @@ namespace Org.OpenAPITools.Model
this.PatternWithDigits = patternWithDigits;
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
this.PatternWithBackslash = patternWithBackslash;
this.StringFormattedAsDecimal = stringFormattedAsDecimal;
this.AdditionalProperties = new Dictionary<string, object>();
}
@ -264,6 +268,18 @@ namespace Org.OpenAPITools.Model
[DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)]
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>
/// Gets or Sets additional properties
/// </summary>
@ -302,6 +318,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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("}\n");
return sb.ToString();
@ -399,6 +417,8 @@ namespace Org.OpenAPITools.Model
{
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
}
hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -28,6 +28,8 @@ Name | Type | Description | Notes
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [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)

View File

@ -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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01..</param>
/// <param name="patternWithBackslash">None.</param>
public FormatTest(int integer = default(int), int int32 = default(int), 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;
// 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");
}
this.Password = password;
this.StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
this.Integer = integer;
this.Int32 = int32;
this.Int32Range = int32Range;
@ -100,6 +103,7 @@ namespace Org.OpenAPITools.Model
this.PatternWithDigits = patternWithDigits;
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
this.PatternWithBackslash = patternWithBackslash;
this.StringFormattedAsDecimal = stringFormattedAsDecimal;
}
/// <summary>
@ -258,6 +262,18 @@ namespace Org.OpenAPITools.Model
[DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)]
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>
/// Returns the string presentation of the object
/// </summary>
@ -290,6 +306,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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");
return sb.ToString();
}
@ -386,6 +404,8 @@ namespace Org.OpenAPITools.Model
{
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
}
hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
return hashCode;
}
}

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -28,6 +28,8 @@ Name | Type | Description | Notes
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [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)

View File

@ -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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01..</param>
/// <param name="patternWithBackslash">None.</param>
public FormatTest(int integer = default(int), int int32 = default(int), 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;
// 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");
}
this._Password = password;
this._StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
this._Integer = integer;
if (this.Integer != null)
{
@ -183,6 +186,11 @@ namespace Org.OpenAPITools.Model
{
this._flagPatternWithBackslash = true;
}
this._StringFormattedAsDecimal = stringFormattedAsDecimal;
if (this.StringFormattedAsDecimal != null)
{
this._flagStringFormattedAsDecimal = true;
}
this.AdditionalProperties = new Dictionary<string, object>();
}
@ -776,6 +784,54 @@ namespace Org.OpenAPITools.Model
return _flagPatternWithBackslash;
}
/// <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
/// </summary>
[JsonExtensionData]
@ -813,6 +869,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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("}\n");
return sb.ToString();
@ -910,6 +968,8 @@ namespace Org.OpenAPITools.Model
{
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
}
hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -28,6 +28,8 @@ Name | Type | Description | Notes
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [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)

View File

@ -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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01..</param>
/// <param name="patternWithBackslash">None.</param>
public FormatTest(int integer = default(int), int int32 = default(int), 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;
// 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");
}
this.Password = password;
this.StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
this.Integer = integer;
this.Int32 = int32;
this.Int32Range = int32Range;
@ -98,6 +101,7 @@ namespace Org.OpenAPITools.Model
this.PatternWithDigits = patternWithDigits;
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
this.PatternWithBackslash = patternWithBackslash;
this.StringFormattedAsDecimal = stringFormattedAsDecimal;
}
/// <summary>
@ -256,6 +260,18 @@ namespace Org.OpenAPITools.Model
[DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)]
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>
/// Returns the string presentation of the object
/// </summary>
@ -288,6 +304,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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");
return sb.ToString();
}
@ -428,6 +446,14 @@ namespace Org.OpenAPITools.Model
this.PatternWithBackslash == input.PatternWithBackslash ||
(this.PatternWithBackslash != null &&
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.StringFormattedAsDecimal.GetHashCode();
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
return hashCode;
}
}

View File

@ -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])(\\\
/([0-9]|[1-2][0-9]|3[0-2]))$"
type: string
string_formatted_as_decimal:
format: decimal
type: string
string_formatted_as_decimal_required:
format: decimal
type: string
required:
- byte
- date
- number
- password
- string_formatted_as_decimal_required
type: object
EnumClass:
default: -efg

View File

@ -28,6 +28,8 @@ Name | Type | Description | Notes
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01. | [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)

View File

@ -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="patternWithDigitsAndDelimiter">A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01..</param>
/// <param name="patternWithBackslash">None.</param>
public FormatTest(int integer = default(int), int int32 = default(int), 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;
// 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");
}
this.Password = password;
this.StringFormattedAsDecimalRequired = stringFormattedAsDecimalRequired;
this.Integer = integer;
this.Int32 = int32;
this.Int32Range = int32Range;
@ -98,6 +101,7 @@ namespace Org.OpenAPITools.Model
this.PatternWithDigits = patternWithDigits;
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
this.PatternWithBackslash = patternWithBackslash;
this.StringFormattedAsDecimal = stringFormattedAsDecimal;
}
/// <summary>
@ -257,6 +261,18 @@ namespace Org.OpenAPITools.Model
[DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)]
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>
/// Returns the string presentation of the object
/// </summary>
@ -289,6 +305,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).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");
return sb.ToString();
}
@ -429,6 +447,14 @@ namespace Org.OpenAPITools.Model
this.PatternWithBackslash == input.PatternWithBackslash ||
(this.PatternWithBackslash != null &&
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.StringFormattedAsDecimal.GetHashCode();
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
return hashCode;
}
}