forked from loafle/openapi-generator-original
added samples for unsigned (#14938)
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = (float)utf8JsonReader.GetDouble();
|
||||
{{/isFloat}}
|
||||
{{#isLong}}
|
||||
{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = utf8JsonReader.GetInt64();
|
||||
{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = utf8JsonReader.Get{{#vendorExtensions.x-unsigned}}U{{/vendorExtensions.x-unsigned}}Int64();
|
||||
{{/isLong}}
|
||||
{{^isLong}}
|
||||
{{^isFloat}}
|
||||
@@ -106,10 +106,10 @@
|
||||
{{^isDouble}}
|
||||
{{#isNullable}}
|
||||
if (utf8JsonReader.TokenType != JsonTokenType.Null)
|
||||
{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = utf8JsonReader.GetInt32();
|
||||
{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = utf8JsonReader.Get{{#vendorExtensions.x-unsigned}}U{{/vendorExtensions.x-unsigned}}Int32();
|
||||
{{/isNullable}}
|
||||
{{^isNullable}}
|
||||
{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = utf8JsonReader.GetInt32();
|
||||
{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = utf8JsonReader.Get{{#vendorExtensions.x-unsigned}}U{{/vendorExtensions.x-unsigned}}Int32();
|
||||
{{/isNullable}}
|
||||
{{/isDouble}}
|
||||
{{/isDecimal}}
|
||||
@@ -126,7 +126,7 @@
|
||||
{{#isEnum}}
|
||||
{{^isMap}}
|
||||
{{#isNumeric}}
|
||||
{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = ({{#isInnerEnum}}{{classname}}.{{/isInnerEnum}}{{{datatypeWithEnum}}}) utf8JsonReader.GetInt32();
|
||||
{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = ({{#isInnerEnum}}{{classname}}.{{/isInnerEnum}}{{{datatypeWithEnum}}}) utf8JsonReader.Get{{#vendorExtensions.x-unsigned}}U{{/vendorExtensions.x-unsigned}}Int32();
|
||||
{{/isNumeric}}
|
||||
{{^isNumeric}}
|
||||
string {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}RawValue = utf8JsonReader.GetString();
|
||||
|
||||
@@ -1491,9 +1491,19 @@ components:
|
||||
format: int32
|
||||
maximum: 200
|
||||
minimum: 20
|
||||
unsigned_integer:
|
||||
type: integer
|
||||
format: int32
|
||||
maximum: 200
|
||||
minimum: 20
|
||||
x-unsigned: true
|
||||
int64:
|
||||
type: integer
|
||||
format: int64
|
||||
unsigned_long:
|
||||
type: integer
|
||||
format: int64
|
||||
x-unsigned: true
|
||||
number:
|
||||
maximum: 543.2
|
||||
minimum: 32.1
|
||||
|
||||
@@ -6,7 +6,9 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Integer** | **int** | | [optional]
|
||||
**Int32** | **int** | | [optional]
|
||||
**UnsignedInteger** | **uint** | | [optional]
|
||||
**Int64** | **long** | | [optional]
|
||||
**UnsignedLong** | **ulong** | | [optional]
|
||||
**Number** | **decimal** | |
|
||||
**Float** | **float** | | [optional]
|
||||
**Double** | **double** | | [optional]
|
||||
|
||||
@@ -45,7 +45,9 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="integer">integer.</param>
|
||||
/// <param name="int32">int32.</param>
|
||||
/// <param name="unsignedInteger">unsignedInteger.</param>
|
||||
/// <param name="int64">int64.</param>
|
||||
/// <param name="unsignedLong">unsignedLong.</param>
|
||||
/// <param name="number">number (required).</param>
|
||||
/// <param name="_float">_float.</param>
|
||||
/// <param name="_double">_double.</param>
|
||||
@@ -59,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="password">password (required).</param>
|
||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros..</param>
|
||||
/// <param name="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01..</param>
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string))
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string))
|
||||
{
|
||||
this._Number = number;
|
||||
// to ensure "_byte" is required (not null)
|
||||
@@ -85,11 +87,21 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
this._flagInt32 = true;
|
||||
}
|
||||
this._UnsignedInteger = unsignedInteger;
|
||||
if (this.UnsignedInteger != null)
|
||||
{
|
||||
this._flagUnsignedInteger = true;
|
||||
}
|
||||
this._Int64 = int64;
|
||||
if (this.Int64 != null)
|
||||
{
|
||||
this._flagInt64 = true;
|
||||
}
|
||||
this._UnsignedLong = unsignedLong;
|
||||
if (this.UnsignedLong != null)
|
||||
{
|
||||
this._flagUnsignedLong = true;
|
||||
}
|
||||
this._Float = _float;
|
||||
if (this.Float != null)
|
||||
{
|
||||
@@ -187,6 +199,30 @@ namespace Org.OpenAPITools.Model
|
||||
return _flagInt32;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedInteger
|
||||
/// </summary>
|
||||
[DataMember(Name = "unsigned_integer", EmitDefaultValue = false)]
|
||||
public uint UnsignedInteger
|
||||
{
|
||||
get{ return _UnsignedInteger;}
|
||||
set
|
||||
{
|
||||
_UnsignedInteger = value;
|
||||
_flagUnsignedInteger = true;
|
||||
}
|
||||
}
|
||||
private uint _UnsignedInteger;
|
||||
private bool _flagUnsignedInteger;
|
||||
|
||||
/// <summary>
|
||||
/// Returns false as UnsignedInteger should not be serialized given that it's read-only.
|
||||
/// </summary>
|
||||
/// <returns>false (boolean)</returns>
|
||||
public bool ShouldSerializeUnsignedInteger()
|
||||
{
|
||||
return _flagUnsignedInteger;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or Sets Int64
|
||||
/// </summary>
|
||||
[DataMember(Name = "int64", EmitDefaultValue = false)]
|
||||
@@ -211,6 +247,30 @@ namespace Org.OpenAPITools.Model
|
||||
return _flagInt64;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedLong
|
||||
/// </summary>
|
||||
[DataMember(Name = "unsigned_long", EmitDefaultValue = false)]
|
||||
public ulong UnsignedLong
|
||||
{
|
||||
get{ return _UnsignedLong;}
|
||||
set
|
||||
{
|
||||
_UnsignedLong = value;
|
||||
_flagUnsignedLong = true;
|
||||
}
|
||||
}
|
||||
private ulong _UnsignedLong;
|
||||
private bool _flagUnsignedLong;
|
||||
|
||||
/// <summary>
|
||||
/// Returns false as UnsignedLong should not be serialized given that it's read-only.
|
||||
/// </summary>
|
||||
/// <returns>false (boolean)</returns>
|
||||
public bool ShouldSerializeUnsignedLong()
|
||||
{
|
||||
return _flagUnsignedLong;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or Sets Number
|
||||
/// </summary>
|
||||
[DataMember(Name = "number", IsRequired = true, EmitDefaultValue = true)]
|
||||
@@ -544,7 +604,9 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append("class FormatTest {\n");
|
||||
sb.Append(" Integer: ").Append(Integer).Append("\n");
|
||||
sb.Append(" Int32: ").Append(Int32).Append("\n");
|
||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||
sb.Append(" Int64: ").Append(Int64).Append("\n");
|
||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||
sb.Append(" Float: ").Append(Float).Append("\n");
|
||||
sb.Append(" Double: ").Append(Double).Append("\n");
|
||||
@@ -603,7 +665,9 @@ namespace Org.OpenAPITools.Model
|
||||
int hashCode = 41;
|
||||
hashCode = (hashCode * 59) + this.Integer.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int32.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int64.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Number.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Float.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Double.GetHashCode();
|
||||
@@ -683,6 +747,18 @@ namespace Org.OpenAPITools.Model
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) maximum
|
||||
if (this.UnsignedInteger > (uint)200)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) minimum
|
||||
if (this.UnsignedInteger < (uint)20)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
// Number (decimal) maximum
|
||||
if (this.Number > (decimal)543.2)
|
||||
{
|
||||
|
||||
@@ -19,6 +19,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 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||
**StringProperty** | **string** | | [optional]
|
||||
**UnsignedInteger** | **uint** | | [optional]
|
||||
**UnsignedLong** | **ulong** | | [optional]
|
||||
**Uuid** | **Guid** | | [optional]
|
||||
|
||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||
|
||||
@@ -48,9 +48,11 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</param>
|
||||
/// <param name="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||
/// <param name="stringProperty">stringProperty</param>
|
||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||
/// <param name="unsignedLong">unsignedLong</param>
|
||||
/// <param name="uuid">uuid</param>
|
||||
[JsonConstructor]
|
||||
public FormatTest(System.IO.Stream binary, byte[] byteProperty, DateTime date, DateTime dateTime, decimal decimalProperty, double doubleProperty, float floatProperty, int int32, long int64, int integer, decimal number, string password, string patternWithDigits, string patternWithDigitsAndDelimiter, string stringProperty, Guid uuid)
|
||||
public FormatTest(System.IO.Stream binary, byte[] byteProperty, DateTime date, DateTime dateTime, decimal decimalProperty, double doubleProperty, float floatProperty, int int32, long int64, int integer, decimal number, string password, string patternWithDigits, string patternWithDigitsAndDelimiter, string stringProperty, uint unsignedInteger, ulong unsignedLong, Guid uuid)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
@@ -61,9 +63,15 @@ namespace Org.OpenAPITools.Model
|
||||
if (int32 == null)
|
||||
throw new ArgumentNullException("int32 is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (unsignedInteger == null)
|
||||
throw new ArgumentNullException("unsignedInteger is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (int64 == null)
|
||||
throw new ArgumentNullException("int64 is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (unsignedLong == null)
|
||||
throw new ArgumentNullException("unsignedLong is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (number == null)
|
||||
throw new ArgumentNullException("number is a required property for FormatTest and cannot be null.");
|
||||
|
||||
@@ -121,6 +129,8 @@ namespace Org.OpenAPITools.Model
|
||||
PatternWithDigits = patternWithDigits;
|
||||
PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
||||
StringProperty = stringProperty;
|
||||
UnsignedInteger = unsignedInteger;
|
||||
UnsignedLong = unsignedLong;
|
||||
Uuid = uuid;
|
||||
}
|
||||
|
||||
@@ -218,6 +228,18 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonPropertyName("string")]
|
||||
public string StringProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedInteger
|
||||
/// </summary>
|
||||
[JsonPropertyName("unsigned_integer")]
|
||||
public uint UnsignedInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedLong
|
||||
/// </summary>
|
||||
[JsonPropertyName("unsigned_long")]
|
||||
public ulong UnsignedLong { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Uuid
|
||||
/// </summary>
|
||||
@@ -254,6 +276,8 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||
sb.Append(" StringProperty: ").Append(StringProperty).Append("\n");
|
||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@@ -359,6 +383,18 @@ namespace Org.OpenAPITools.Model
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StringProperty, must match a pattern of " + regexStringProperty, new [] { "StringProperty" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) maximum
|
||||
if (this.UnsignedInteger > (uint)200)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) minimum
|
||||
if (this.UnsignedInteger < (uint)20)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
@@ -410,6 +446,8 @@ namespace Org.OpenAPITools.Model
|
||||
string patternWithDigits = default;
|
||||
string patternWithDigitsAndDelimiter = default;
|
||||
string stringProperty = default;
|
||||
uint unsignedInteger = default;
|
||||
ulong unsignedLong = default;
|
||||
Guid uuid = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
@@ -472,6 +510,12 @@ namespace Org.OpenAPITools.Model
|
||||
case "string":
|
||||
stringProperty = utf8JsonReader.GetString();
|
||||
break;
|
||||
case "unsigned_integer":
|
||||
unsignedInteger = utf8JsonReader.GetUInt32();
|
||||
break;
|
||||
case "unsigned_long":
|
||||
unsignedLong = utf8JsonReader.GetUInt64();
|
||||
break;
|
||||
case "uuid":
|
||||
uuid = utf8JsonReader.GetGuid();
|
||||
break;
|
||||
@@ -481,7 +525,7 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
return new FormatTest(binary, byteProperty, date, dateTime, decimalProperty, doubleProperty, floatProperty, int32, int64, integer, number, password, patternWithDigits, patternWithDigitsAndDelimiter, stringProperty, uuid);
|
||||
return new FormatTest(binary, byteProperty, date, dateTime, decimalProperty, doubleProperty, floatProperty, int32, int64, integer, number, password, patternWithDigits, patternWithDigitsAndDelimiter, stringProperty, unsignedInteger, unsignedLong, uuid);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -513,6 +557,8 @@ namespace Org.OpenAPITools.Model
|
||||
writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits);
|
||||
writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter);
|
||||
writer.WriteString("string", formatTest.StringProperty);
|
||||
writer.WriteNumber("unsigned_integer", formatTest.UnsignedInteger);
|
||||
writer.WriteNumber("unsigned_long", formatTest.UnsignedLong);
|
||||
writer.WriteString("uuid", formatTest.Uuid);
|
||||
|
||||
writer.WriteEndObject();
|
||||
|
||||
@@ -19,6 +19,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 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||
**StringProperty** | **string** | | [optional]
|
||||
**UnsignedInteger** | **uint** | | [optional]
|
||||
**UnsignedLong** | **ulong** | | [optional]
|
||||
**Uuid** | **Guid** | | [optional]
|
||||
|
||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||
|
||||
@@ -46,9 +46,11 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</param>
|
||||
/// <param name="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||
/// <param name="stringProperty">stringProperty</param>
|
||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||
/// <param name="unsignedLong">unsignedLong</param>
|
||||
/// <param name="uuid">uuid</param>
|
||||
[JsonConstructor]
|
||||
public FormatTest(System.IO.Stream binary, byte[] byteProperty, DateTime date, DateTime dateTime, decimal decimalProperty, double doubleProperty, float floatProperty, int int32, long int64, int integer, decimal number, string password, string patternWithDigits, string patternWithDigitsAndDelimiter, string stringProperty, Guid uuid)
|
||||
public FormatTest(System.IO.Stream binary, byte[] byteProperty, DateTime date, DateTime dateTime, decimal decimalProperty, double doubleProperty, float floatProperty, int int32, long int64, int integer, decimal number, string password, string patternWithDigits, string patternWithDigitsAndDelimiter, string stringProperty, uint unsignedInteger, ulong unsignedLong, Guid uuid)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
@@ -59,9 +61,15 @@ namespace Org.OpenAPITools.Model
|
||||
if (int32 == null)
|
||||
throw new ArgumentNullException("int32 is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (unsignedInteger == null)
|
||||
throw new ArgumentNullException("unsignedInteger is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (int64 == null)
|
||||
throw new ArgumentNullException("int64 is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (unsignedLong == null)
|
||||
throw new ArgumentNullException("unsignedLong is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (number == null)
|
||||
throw new ArgumentNullException("number is a required property for FormatTest and cannot be null.");
|
||||
|
||||
@@ -119,6 +127,8 @@ namespace Org.OpenAPITools.Model
|
||||
PatternWithDigits = patternWithDigits;
|
||||
PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
||||
StringProperty = stringProperty;
|
||||
UnsignedInteger = unsignedInteger;
|
||||
UnsignedLong = unsignedLong;
|
||||
Uuid = uuid;
|
||||
}
|
||||
|
||||
@@ -216,6 +226,18 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonPropertyName("string")]
|
||||
public string StringProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedInteger
|
||||
/// </summary>
|
||||
[JsonPropertyName("unsigned_integer")]
|
||||
public uint UnsignedInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedLong
|
||||
/// </summary>
|
||||
[JsonPropertyName("unsigned_long")]
|
||||
public ulong UnsignedLong { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Uuid
|
||||
/// </summary>
|
||||
@@ -252,6 +274,8 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||
sb.Append(" StringProperty: ").Append(StringProperty).Append("\n");
|
||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@@ -357,6 +381,18 @@ namespace Org.OpenAPITools.Model
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StringProperty, must match a pattern of " + regexStringProperty, new [] { "StringProperty" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) maximum
|
||||
if (this.UnsignedInteger > (uint)200)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) minimum
|
||||
if (this.UnsignedInteger < (uint)20)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
@@ -408,6 +444,8 @@ namespace Org.OpenAPITools.Model
|
||||
string patternWithDigits = default;
|
||||
string patternWithDigitsAndDelimiter = default;
|
||||
string stringProperty = default;
|
||||
uint unsignedInteger = default;
|
||||
ulong unsignedLong = default;
|
||||
Guid uuid = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
@@ -470,6 +508,12 @@ namespace Org.OpenAPITools.Model
|
||||
case "string":
|
||||
stringProperty = utf8JsonReader.GetString();
|
||||
break;
|
||||
case "unsigned_integer":
|
||||
unsignedInteger = utf8JsonReader.GetUInt32();
|
||||
break;
|
||||
case "unsigned_long":
|
||||
unsignedLong = utf8JsonReader.GetUInt64();
|
||||
break;
|
||||
case "uuid":
|
||||
uuid = utf8JsonReader.GetGuid();
|
||||
break;
|
||||
@@ -479,7 +523,7 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
return new FormatTest(binary, byteProperty, date, dateTime, decimalProperty, doubleProperty, floatProperty, int32, int64, integer, number, password, patternWithDigits, patternWithDigitsAndDelimiter, stringProperty, uuid);
|
||||
return new FormatTest(binary, byteProperty, date, dateTime, decimalProperty, doubleProperty, floatProperty, int32, int64, integer, number, password, patternWithDigits, patternWithDigitsAndDelimiter, stringProperty, unsignedInteger, unsignedLong, uuid);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -511,6 +555,8 @@ namespace Org.OpenAPITools.Model
|
||||
writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits);
|
||||
writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter);
|
||||
writer.WriteString("string", formatTest.StringProperty);
|
||||
writer.WriteNumber("unsigned_integer", formatTest.UnsignedInteger);
|
||||
writer.WriteNumber("unsigned_long", formatTest.UnsignedLong);
|
||||
writer.WriteString("uuid", formatTest.Uuid);
|
||||
|
||||
writer.WriteEndObject();
|
||||
|
||||
@@ -19,6 +19,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 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||
**StringProperty** | **string** | | [optional]
|
||||
**UnsignedInteger** | **uint** | | [optional]
|
||||
**UnsignedLong** | **ulong** | | [optional]
|
||||
**Uuid** | **Guid** | | [optional]
|
||||
|
||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||
|
||||
@@ -46,9 +46,11 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros.</param>
|
||||
/// <param name="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</param>
|
||||
/// <param name="stringProperty">stringProperty</param>
|
||||
/// <param name="unsignedInteger">unsignedInteger</param>
|
||||
/// <param name="unsignedLong">unsignedLong</param>
|
||||
/// <param name="uuid">uuid</param>
|
||||
[JsonConstructor]
|
||||
public FormatTest(System.IO.Stream binary, byte[] byteProperty, DateTime date, DateTime dateTime, decimal decimalProperty, double doubleProperty, float floatProperty, int int32, long int64, int integer, decimal number, string password, string patternWithDigits, string patternWithDigitsAndDelimiter, string stringProperty, Guid uuid)
|
||||
public FormatTest(System.IO.Stream binary, byte[] byteProperty, DateTime date, DateTime dateTime, decimal decimalProperty, double doubleProperty, float floatProperty, int int32, long int64, int integer, decimal number, string password, string patternWithDigits, string patternWithDigitsAndDelimiter, string stringProperty, uint unsignedInteger, ulong unsignedLong, Guid uuid)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
@@ -59,9 +61,15 @@ namespace Org.OpenAPITools.Model
|
||||
if (int32 == null)
|
||||
throw new ArgumentNullException("int32 is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (unsignedInteger == null)
|
||||
throw new ArgumentNullException("unsignedInteger is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (int64 == null)
|
||||
throw new ArgumentNullException("int64 is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (unsignedLong == null)
|
||||
throw new ArgumentNullException("unsignedLong is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (number == null)
|
||||
throw new ArgumentNullException("number is a required property for FormatTest and cannot be null.");
|
||||
|
||||
@@ -119,6 +127,8 @@ namespace Org.OpenAPITools.Model
|
||||
PatternWithDigits = patternWithDigits;
|
||||
PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
||||
StringProperty = stringProperty;
|
||||
UnsignedInteger = unsignedInteger;
|
||||
UnsignedLong = unsignedLong;
|
||||
Uuid = uuid;
|
||||
}
|
||||
|
||||
@@ -216,6 +226,18 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonPropertyName("string")]
|
||||
public string StringProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedInteger
|
||||
/// </summary>
|
||||
[JsonPropertyName("unsigned_integer")]
|
||||
public uint UnsignedInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedLong
|
||||
/// </summary>
|
||||
[JsonPropertyName("unsigned_long")]
|
||||
public ulong UnsignedLong { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Uuid
|
||||
/// </summary>
|
||||
@@ -252,6 +274,8 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||
sb.Append(" StringProperty: ").Append(StringProperty).Append("\n");
|
||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@@ -357,6 +381,18 @@ namespace Org.OpenAPITools.Model
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StringProperty, must match a pattern of " + regexStringProperty, new [] { "StringProperty" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) maximum
|
||||
if (this.UnsignedInteger > (uint)200)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) minimum
|
||||
if (this.UnsignedInteger < (uint)20)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
@@ -408,6 +444,8 @@ namespace Org.OpenAPITools.Model
|
||||
string patternWithDigits = default;
|
||||
string patternWithDigitsAndDelimiter = default;
|
||||
string stringProperty = default;
|
||||
uint unsignedInteger = default;
|
||||
ulong unsignedLong = default;
|
||||
Guid uuid = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
@@ -470,6 +508,12 @@ namespace Org.OpenAPITools.Model
|
||||
case "string":
|
||||
stringProperty = utf8JsonReader.GetString();
|
||||
break;
|
||||
case "unsigned_integer":
|
||||
unsignedInteger = utf8JsonReader.GetUInt32();
|
||||
break;
|
||||
case "unsigned_long":
|
||||
unsignedLong = utf8JsonReader.GetUInt64();
|
||||
break;
|
||||
case "uuid":
|
||||
uuid = utf8JsonReader.GetGuid();
|
||||
break;
|
||||
@@ -479,7 +523,7 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
return new FormatTest(binary, byteProperty, date, dateTime, decimalProperty, doubleProperty, floatProperty, int32, int64, integer, number, password, patternWithDigits, patternWithDigitsAndDelimiter, stringProperty, uuid);
|
||||
return new FormatTest(binary, byteProperty, date, dateTime, decimalProperty, doubleProperty, floatProperty, int32, int64, integer, number, password, patternWithDigits, patternWithDigitsAndDelimiter, stringProperty, unsignedInteger, unsignedLong, uuid);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -511,6 +555,8 @@ namespace Org.OpenAPITools.Model
|
||||
writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits);
|
||||
writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter);
|
||||
writer.WriteString("string", formatTest.StringProperty);
|
||||
writer.WriteNumber("unsigned_integer", formatTest.UnsignedInteger);
|
||||
writer.WriteNumber("unsigned_long", formatTest.UnsignedLong);
|
||||
writer.WriteString("uuid", formatTest.Uuid);
|
||||
|
||||
writer.WriteEndObject();
|
||||
|
||||
@@ -6,7 +6,9 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Integer** | **int** | | [optional]
|
||||
**Int32** | **int** | | [optional]
|
||||
**UnsignedInteger** | **uint** | | [optional]
|
||||
**Int64** | **long** | | [optional]
|
||||
**UnsignedLong** | **ulong** | | [optional]
|
||||
**Number** | **decimal** | |
|
||||
**Float** | **float** | | [optional]
|
||||
**Double** | **double** | | [optional]
|
||||
|
||||
@@ -46,7 +46,9 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="integer">integer.</param>
|
||||
/// <param name="int32">int32.</param>
|
||||
/// <param name="unsignedInteger">unsignedInteger.</param>
|
||||
/// <param name="int64">int64.</param>
|
||||
/// <param name="unsignedLong">unsignedLong.</param>
|
||||
/// <param name="number">number (required).</param>
|
||||
/// <param name="_float">_float.</param>
|
||||
/// <param name="_double">_double.</param>
|
||||
@@ -60,7 +62,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="password">password (required).</param>
|
||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros..</param>
|
||||
/// <param name="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01..</param>
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), 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))
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), FileParameter binary = default(FileParameter), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string))
|
||||
{
|
||||
this.Number = number;
|
||||
// to ensure "_byte" is required (not null)
|
||||
@@ -78,7 +80,9 @@ namespace Org.OpenAPITools.Model
|
||||
this.Password = password;
|
||||
this.Integer = integer;
|
||||
this.Int32 = int32;
|
||||
this.UnsignedInteger = unsignedInteger;
|
||||
this.Int64 = int64;
|
||||
this.UnsignedLong = unsignedLong;
|
||||
this.Float = _float;
|
||||
this.Double = _double;
|
||||
this.Decimal = _decimal;
|
||||
@@ -103,12 +107,24 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "int32", EmitDefaultValue = false)]
|
||||
public int Int32 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedInteger
|
||||
/// </summary>
|
||||
[DataMember(Name = "unsigned_integer", EmitDefaultValue = false)]
|
||||
public uint UnsignedInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Int64
|
||||
/// </summary>
|
||||
[DataMember(Name = "int64", EmitDefaultValue = false)]
|
||||
public long Int64 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedLong
|
||||
/// </summary>
|
||||
[DataMember(Name = "unsigned_long", EmitDefaultValue = false)]
|
||||
public ulong UnsignedLong { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Number
|
||||
/// </summary>
|
||||
@@ -209,7 +225,9 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append("class FormatTest {\n");
|
||||
sb.Append(" Integer: ").Append(Integer).Append("\n");
|
||||
sb.Append(" Int32: ").Append(Int32).Append("\n");
|
||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||
sb.Append(" Int64: ").Append(Int64).Append("\n");
|
||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||
sb.Append(" Float: ").Append(Float).Append("\n");
|
||||
sb.Append(" Double: ").Append(Double).Append("\n");
|
||||
@@ -268,7 +286,9 @@ namespace Org.OpenAPITools.Model
|
||||
int hashCode = 41;
|
||||
hashCode = (hashCode * 59) + this.Integer.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int32.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int64.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Number.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Float.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Double.GetHashCode();
|
||||
@@ -348,6 +368,18 @@ namespace Org.OpenAPITools.Model
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) maximum
|
||||
if (this.UnsignedInteger > (uint)200)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) minimum
|
||||
if (this.UnsignedInteger < (uint)20)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
// Number (decimal) maximum
|
||||
if (this.Number > (decimal)543.2)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,9 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Integer** | **int** | | [optional]
|
||||
**Int32** | **int** | | [optional]
|
||||
**UnsignedInteger** | **uint** | | [optional]
|
||||
**Int64** | **long** | | [optional]
|
||||
**UnsignedLong** | **ulong** | | [optional]
|
||||
**Number** | **decimal** | |
|
||||
**Float** | **float** | | [optional]
|
||||
**Double** | **double** | | [optional]
|
||||
|
||||
@@ -45,7 +45,9 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="integer">integer.</param>
|
||||
/// <param name="int32">int32.</param>
|
||||
/// <param name="unsignedInteger">unsignedInteger.</param>
|
||||
/// <param name="int64">int64.</param>
|
||||
/// <param name="unsignedLong">unsignedLong.</param>
|
||||
/// <param name="number">number (required).</param>
|
||||
/// <param name="_float">_float.</param>
|
||||
/// <param name="_double">_double.</param>
|
||||
@@ -59,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="password">password (required).</param>
|
||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros..</param>
|
||||
/// <param name="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01..</param>
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string))
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string))
|
||||
{
|
||||
this.Number = number;
|
||||
// to ensure "_byte" is required (not null)
|
||||
@@ -77,7 +79,9 @@ namespace Org.OpenAPITools.Model
|
||||
this.Password = password;
|
||||
this.Integer = integer;
|
||||
this.Int32 = int32;
|
||||
this.UnsignedInteger = unsignedInteger;
|
||||
this.Int64 = int64;
|
||||
this.UnsignedLong = unsignedLong;
|
||||
this.Float = _float;
|
||||
this.Double = _double;
|
||||
this.Decimal = _decimal;
|
||||
@@ -102,12 +106,24 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "int32", EmitDefaultValue = false)]
|
||||
public int Int32 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedInteger
|
||||
/// </summary>
|
||||
[DataMember(Name = "unsigned_integer", EmitDefaultValue = false)]
|
||||
public uint UnsignedInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Int64
|
||||
/// </summary>
|
||||
[DataMember(Name = "int64", EmitDefaultValue = false)]
|
||||
public long Int64 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedLong
|
||||
/// </summary>
|
||||
[DataMember(Name = "unsigned_long", EmitDefaultValue = false)]
|
||||
public ulong UnsignedLong { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Number
|
||||
/// </summary>
|
||||
@@ -208,7 +224,9 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append("class FormatTest {\n");
|
||||
sb.Append(" Integer: ").Append(Integer).Append("\n");
|
||||
sb.Append(" Int32: ").Append(Int32).Append("\n");
|
||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||
sb.Append(" Int64: ").Append(Int64).Append("\n");
|
||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||
sb.Append(" Float: ").Append(Float).Append("\n");
|
||||
sb.Append(" Double: ").Append(Double).Append("\n");
|
||||
@@ -267,7 +285,9 @@ namespace Org.OpenAPITools.Model
|
||||
int hashCode = 41;
|
||||
hashCode = (hashCode * 59) + this.Integer.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int32.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int64.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Number.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Float.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Double.GetHashCode();
|
||||
@@ -347,6 +367,18 @@ namespace Org.OpenAPITools.Model
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) maximum
|
||||
if (this.UnsignedInteger > (uint)200)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) minimum
|
||||
if (this.UnsignedInteger < (uint)20)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
// Number (decimal) maximum
|
||||
if (this.Number > (decimal)543.2)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,9 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Integer** | **int** | | [optional]
|
||||
**Int32** | **int** | | [optional]
|
||||
**UnsignedInteger** | **uint** | | [optional]
|
||||
**Int64** | **long** | | [optional]
|
||||
**UnsignedLong** | **ulong** | | [optional]
|
||||
**Number** | **decimal** | |
|
||||
**Float** | **float** | | [optional]
|
||||
**Double** | **double** | | [optional]
|
||||
|
||||
@@ -45,7 +45,9 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="integer">integer.</param>
|
||||
/// <param name="int32">int32.</param>
|
||||
/// <param name="unsignedInteger">unsignedInteger.</param>
|
||||
/// <param name="int64">int64.</param>
|
||||
/// <param name="unsignedLong">unsignedLong.</param>
|
||||
/// <param name="number">number (required).</param>
|
||||
/// <param name="_float">_float.</param>
|
||||
/// <param name="_double">_double.</param>
|
||||
@@ -59,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="password">password (required).</param>
|
||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros..</param>
|
||||
/// <param name="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01..</param>
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string))
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string))
|
||||
{
|
||||
this.Number = number;
|
||||
// to ensure "_byte" is required (not null)
|
||||
@@ -77,7 +79,9 @@ namespace Org.OpenAPITools.Model
|
||||
this.Password = password;
|
||||
this.Integer = integer;
|
||||
this.Int32 = int32;
|
||||
this.UnsignedInteger = unsignedInteger;
|
||||
this.Int64 = int64;
|
||||
this.UnsignedLong = unsignedLong;
|
||||
this.Float = _float;
|
||||
this.Double = _double;
|
||||
this.Decimal = _decimal;
|
||||
@@ -102,12 +106,24 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "int32", EmitDefaultValue = false)]
|
||||
public int Int32 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedInteger
|
||||
/// </summary>
|
||||
[DataMember(Name = "unsigned_integer", EmitDefaultValue = false)]
|
||||
public uint UnsignedInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Int64
|
||||
/// </summary>
|
||||
[DataMember(Name = "int64", EmitDefaultValue = false)]
|
||||
public long Int64 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedLong
|
||||
/// </summary>
|
||||
[DataMember(Name = "unsigned_long", EmitDefaultValue = false)]
|
||||
public ulong UnsignedLong { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Number
|
||||
/// </summary>
|
||||
@@ -208,7 +224,9 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append("class FormatTest {\n");
|
||||
sb.Append(" Integer: ").Append(Integer).Append("\n");
|
||||
sb.Append(" Int32: ").Append(Int32).Append("\n");
|
||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||
sb.Append(" Int64: ").Append(Int64).Append("\n");
|
||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||
sb.Append(" Float: ").Append(Float).Append("\n");
|
||||
sb.Append(" Double: ").Append(Double).Append("\n");
|
||||
@@ -267,7 +285,9 @@ namespace Org.OpenAPITools.Model
|
||||
int hashCode = 41;
|
||||
hashCode = (hashCode * 59) + this.Integer.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int32.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int64.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Number.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Float.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Double.GetHashCode();
|
||||
@@ -347,6 +367,18 @@ namespace Org.OpenAPITools.Model
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) maximum
|
||||
if (this.UnsignedInteger > (uint)200)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) minimum
|
||||
if (this.UnsignedInteger < (uint)20)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
// Number (decimal) maximum
|
||||
if (this.Number > (decimal)543.2)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,9 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Integer** | **int** | | [optional]
|
||||
**Int32** | **int** | | [optional]
|
||||
**UnsignedInteger** | **uint** | | [optional]
|
||||
**Int64** | **long** | | [optional]
|
||||
**UnsignedLong** | **ulong** | | [optional]
|
||||
**Number** | **decimal** | |
|
||||
**Float** | **float** | | [optional]
|
||||
**Double** | **double** | | [optional]
|
||||
|
||||
@@ -45,7 +45,9 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="integer">integer.</param>
|
||||
/// <param name="int32">int32.</param>
|
||||
/// <param name="unsignedInteger">unsignedInteger.</param>
|
||||
/// <param name="int64">int64.</param>
|
||||
/// <param name="unsignedLong">unsignedLong.</param>
|
||||
/// <param name="number">number (required).</param>
|
||||
/// <param name="_float">_float.</param>
|
||||
/// <param name="_double">_double.</param>
|
||||
@@ -59,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="password">password (required).</param>
|
||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros..</param>
|
||||
/// <param name="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01..</param>
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string))
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string))
|
||||
{
|
||||
this.Number = number;
|
||||
// to ensure "_byte" is required (not null)
|
||||
@@ -77,7 +79,9 @@ namespace Org.OpenAPITools.Model
|
||||
this.Password = password;
|
||||
this.Integer = integer;
|
||||
this.Int32 = int32;
|
||||
this.UnsignedInteger = unsignedInteger;
|
||||
this.Int64 = int64;
|
||||
this.UnsignedLong = unsignedLong;
|
||||
this.Float = _float;
|
||||
this.Double = _double;
|
||||
this.Decimal = _decimal;
|
||||
@@ -102,12 +106,24 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "int32", EmitDefaultValue = false)]
|
||||
public int Int32 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedInteger
|
||||
/// </summary>
|
||||
[DataMember(Name = "unsigned_integer", EmitDefaultValue = false)]
|
||||
public uint UnsignedInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Int64
|
||||
/// </summary>
|
||||
[DataMember(Name = "int64", EmitDefaultValue = false)]
|
||||
public long Int64 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedLong
|
||||
/// </summary>
|
||||
[DataMember(Name = "unsigned_long", EmitDefaultValue = false)]
|
||||
public ulong UnsignedLong { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Number
|
||||
/// </summary>
|
||||
@@ -208,7 +224,9 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append("class FormatTest {\n");
|
||||
sb.Append(" Integer: ").Append(Integer).Append("\n");
|
||||
sb.Append(" Int32: ").Append(Int32).Append("\n");
|
||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||
sb.Append(" Int64: ").Append(Int64).Append("\n");
|
||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||
sb.Append(" Float: ").Append(Float).Append("\n");
|
||||
sb.Append(" Double: ").Append(Double).Append("\n");
|
||||
@@ -267,7 +285,9 @@ namespace Org.OpenAPITools.Model
|
||||
int hashCode = 41;
|
||||
hashCode = (hashCode * 59) + this.Integer.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int32.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int64.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Number.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Float.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Double.GetHashCode();
|
||||
@@ -347,6 +367,18 @@ namespace Org.OpenAPITools.Model
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) maximum
|
||||
if (this.UnsignedInteger > (uint)200)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) minimum
|
||||
if (this.UnsignedInteger < (uint)20)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
// Number (decimal) maximum
|
||||
if (this.Number > (decimal)543.2)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,9 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Integer** | **int** | | [optional]
|
||||
**Int32** | **int** | | [optional]
|
||||
**UnsignedInteger** | **uint** | | [optional]
|
||||
**Int64** | **long** | | [optional]
|
||||
**UnsignedLong** | **ulong** | | [optional]
|
||||
**Number** | **decimal** | |
|
||||
**Float** | **float** | | [optional]
|
||||
**Double** | **double** | | [optional]
|
||||
|
||||
@@ -40,7 +40,9 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="integer">integer.</param>
|
||||
/// <param name="int32">int32.</param>
|
||||
/// <param name="unsignedInteger">unsignedInteger.</param>
|
||||
/// <param name="int64">int64.</param>
|
||||
/// <param name="unsignedLong">unsignedLong.</param>
|
||||
/// <param name="number">number (required).</param>
|
||||
/// <param name="_float">_float.</param>
|
||||
/// <param name="_double">_double.</param>
|
||||
@@ -54,7 +56,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="password">password (required).</param>
|
||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros..</param>
|
||||
/// <param name="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01..</param>
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string))
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string))
|
||||
{
|
||||
this.Number = number;
|
||||
// to ensure "_byte" is required (not null)
|
||||
@@ -72,7 +74,9 @@ namespace Org.OpenAPITools.Model
|
||||
this.Password = password;
|
||||
this.Integer = integer;
|
||||
this.Int32 = int32;
|
||||
this.UnsignedInteger = unsignedInteger;
|
||||
this.Int64 = int64;
|
||||
this.UnsignedLong = unsignedLong;
|
||||
this.Float = _float;
|
||||
this.Double = _double;
|
||||
this.Decimal = _decimal;
|
||||
@@ -96,12 +100,24 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "int32", EmitDefaultValue = false)]
|
||||
public int Int32 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedInteger
|
||||
/// </summary>
|
||||
[DataMember(Name = "unsigned_integer", EmitDefaultValue = false)]
|
||||
public uint UnsignedInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Int64
|
||||
/// </summary>
|
||||
[DataMember(Name = "int64", EmitDefaultValue = false)]
|
||||
public long Int64 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedLong
|
||||
/// </summary>
|
||||
[DataMember(Name = "unsigned_long", EmitDefaultValue = false)]
|
||||
public ulong UnsignedLong { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Number
|
||||
/// </summary>
|
||||
@@ -196,7 +212,9 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append("class FormatTest {\n");
|
||||
sb.Append(" Integer: ").Append(Integer).Append("\n");
|
||||
sb.Append(" Int32: ").Append(Int32).Append("\n");
|
||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||
sb.Append(" Int64: ").Append(Int64).Append("\n");
|
||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||
sb.Append(" Float: ").Append(Float).Append("\n");
|
||||
sb.Append(" Double: ").Append(Double).Append("\n");
|
||||
@@ -253,10 +271,18 @@ namespace Org.OpenAPITools.Model
|
||||
this.Int32 == input.Int32 ||
|
||||
this.Int32.Equals(input.Int32)
|
||||
) &&
|
||||
(
|
||||
this.UnsignedInteger == input.UnsignedInteger ||
|
||||
this.UnsignedInteger.Equals(input.UnsignedInteger)
|
||||
) &&
|
||||
(
|
||||
this.Int64 == input.Int64 ||
|
||||
this.Int64.Equals(input.Int64)
|
||||
) &&
|
||||
(
|
||||
this.UnsignedLong == input.UnsignedLong ||
|
||||
this.UnsignedLong.Equals(input.UnsignedLong)
|
||||
) &&
|
||||
(
|
||||
this.Number == input.Number ||
|
||||
this.Number.Equals(input.Number)
|
||||
@@ -331,7 +357,9 @@ namespace Org.OpenAPITools.Model
|
||||
int hashCode = 41;
|
||||
hashCode = (hashCode * 59) + this.Integer.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int32.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int64.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Number.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Float.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Double.GetHashCode();
|
||||
|
||||
@@ -6,7 +6,9 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Integer** | **int** | | [optional]
|
||||
**Int32** | **int** | | [optional]
|
||||
**UnsignedInteger** | **uint** | | [optional]
|
||||
**Int64** | **long** | | [optional]
|
||||
**UnsignedLong** | **ulong** | | [optional]
|
||||
**Number** | **decimal** | |
|
||||
**Float** | **float** | | [optional]
|
||||
**Double** | **double** | | [optional]
|
||||
|
||||
@@ -45,7 +45,9 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="integer">integer.</param>
|
||||
/// <param name="int32">int32.</param>
|
||||
/// <param name="unsignedInteger">unsignedInteger.</param>
|
||||
/// <param name="int64">int64.</param>
|
||||
/// <param name="unsignedLong">unsignedLong.</param>
|
||||
/// <param name="number">number (required).</param>
|
||||
/// <param name="_float">_float.</param>
|
||||
/// <param name="_double">_double.</param>
|
||||
@@ -59,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="password">password (required).</param>
|
||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros..</param>
|
||||
/// <param name="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01..</param>
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string))
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string))
|
||||
{
|
||||
this.Number = number;
|
||||
// to ensure "_byte" is required (not null)
|
||||
@@ -77,7 +79,9 @@ namespace Org.OpenAPITools.Model
|
||||
this.Password = password;
|
||||
this.Integer = integer;
|
||||
this.Int32 = int32;
|
||||
this.UnsignedInteger = unsignedInteger;
|
||||
this.Int64 = int64;
|
||||
this.UnsignedLong = unsignedLong;
|
||||
this.Float = _float;
|
||||
this.Double = _double;
|
||||
this.Decimal = _decimal;
|
||||
@@ -102,12 +106,24 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "int32", EmitDefaultValue = false)]
|
||||
public int Int32 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedInteger
|
||||
/// </summary>
|
||||
[DataMember(Name = "unsigned_integer", EmitDefaultValue = false)]
|
||||
public uint UnsignedInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Int64
|
||||
/// </summary>
|
||||
[DataMember(Name = "int64", EmitDefaultValue = false)]
|
||||
public long Int64 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedLong
|
||||
/// </summary>
|
||||
[DataMember(Name = "unsigned_long", EmitDefaultValue = false)]
|
||||
public ulong UnsignedLong { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Number
|
||||
/// </summary>
|
||||
@@ -208,7 +224,9 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append("class FormatTest {\n");
|
||||
sb.Append(" Integer: ").Append(Integer).Append("\n");
|
||||
sb.Append(" Int32: ").Append(Int32).Append("\n");
|
||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||
sb.Append(" Int64: ").Append(Int64).Append("\n");
|
||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||
sb.Append(" Float: ").Append(Float).Append("\n");
|
||||
sb.Append(" Double: ").Append(Double).Append("\n");
|
||||
@@ -267,7 +285,9 @@ namespace Org.OpenAPITools.Model
|
||||
int hashCode = 41;
|
||||
hashCode = (hashCode * 59) + this.Integer.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int32.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int64.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Number.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Float.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Double.GetHashCode();
|
||||
@@ -347,6 +367,18 @@ namespace Org.OpenAPITools.Model
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) maximum
|
||||
if (this.UnsignedInteger > (uint)200)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) minimum
|
||||
if (this.UnsignedInteger < (uint)20)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
// Number (decimal) maximum
|
||||
if (this.Number > (decimal)543.2)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,9 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Integer** | **int** | | [optional]
|
||||
**Int32** | **int** | | [optional]
|
||||
**UnsignedInteger** | **uint** | | [optional]
|
||||
**Int64** | **long** | | [optional]
|
||||
**UnsignedLong** | **ulong** | | [optional]
|
||||
**Number** | **decimal** | |
|
||||
**Float** | **float** | | [optional]
|
||||
**Double** | **double** | | [optional]
|
||||
|
||||
@@ -42,7 +42,9 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="integer">integer.</param>
|
||||
/// <param name="int32">int32.</param>
|
||||
/// <param name="unsignedInteger">unsignedInteger.</param>
|
||||
/// <param name="int64">int64.</param>
|
||||
/// <param name="unsignedLong">unsignedLong.</param>
|
||||
/// <param name="number">number (required).</param>
|
||||
/// <param name="_float">_float.</param>
|
||||
/// <param name="_double">_double.</param>
|
||||
@@ -56,7 +58,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="password">password (required).</param>
|
||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros..</param>
|
||||
/// <param name="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01..</param>
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string))
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float _float = default(float), double _double = default(double), decimal _decimal = default(decimal), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string))
|
||||
{
|
||||
this.Number = number;
|
||||
// to ensure "_byte" is required (not null)
|
||||
@@ -74,7 +76,9 @@ namespace Org.OpenAPITools.Model
|
||||
this.Password = password;
|
||||
this.Integer = integer;
|
||||
this.Int32 = int32;
|
||||
this.UnsignedInteger = unsignedInteger;
|
||||
this.Int64 = int64;
|
||||
this.UnsignedLong = unsignedLong;
|
||||
this.Float = _float;
|
||||
this.Double = _double;
|
||||
this.Decimal = _decimal;
|
||||
@@ -98,12 +102,24 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "int32", EmitDefaultValue = false)]
|
||||
public int Int32 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedInteger
|
||||
/// </summary>
|
||||
[DataMember(Name = "unsigned_integer", EmitDefaultValue = false)]
|
||||
public uint UnsignedInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Int64
|
||||
/// </summary>
|
||||
[DataMember(Name = "int64", EmitDefaultValue = false)]
|
||||
public long Int64 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnsignedLong
|
||||
/// </summary>
|
||||
[DataMember(Name = "unsigned_long", EmitDefaultValue = false)]
|
||||
public ulong UnsignedLong { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Number
|
||||
/// </summary>
|
||||
@@ -198,7 +214,9 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append("class FormatTest {\n");
|
||||
sb.Append(" Integer: ").Append(Integer).Append("\n");
|
||||
sb.Append(" Int32: ").Append(Int32).Append("\n");
|
||||
sb.Append(" UnsignedInteger: ").Append(UnsignedInteger).Append("\n");
|
||||
sb.Append(" Int64: ").Append(Int64).Append("\n");
|
||||
sb.Append(" UnsignedLong: ").Append(UnsignedLong).Append("\n");
|
||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||
sb.Append(" Float: ").Append(Float).Append("\n");
|
||||
sb.Append(" Double: ").Append(Double).Append("\n");
|
||||
@@ -256,7 +274,9 @@ namespace Org.OpenAPITools.Model
|
||||
int hashCode = 41;
|
||||
hashCode = (hashCode * 59) + this.Integer.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int32.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int64.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Number.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Float.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Double.GetHashCode();
|
||||
@@ -332,6 +352,18 @@ namespace Org.OpenAPITools.Model
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) maximum
|
||||
if (this.UnsignedInteger > (uint)200)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
// UnsignedInteger (uint) minimum
|
||||
if (this.UnsignedInteger < (uint)20)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" });
|
||||
}
|
||||
|
||||
// Number (decimal) maximum
|
||||
if (this.Number > (decimal)543.2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user