[csharp] Ensure unique property names (#21649)

* started fixing multiple issues

* weather api builds

* added docstring

* ensure property names are unique

* force pr gates to restart

* force pr gates to restart

* force pr gates to restart

* force pr gates to restart
This commit is contained in:
devhl-labs 2025-08-03 13:31:55 -04:00 committed by GitHub
parent 302590a215
commit df1d562f24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
72 changed files with 1407 additions and 37 deletions

View File

@ -629,7 +629,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen {
List<CodegenProperty> allOf = composedSchemas.getAllOf(); List<CodegenProperty> allOf = composedSchemas.getAllOf();
if (allOf != null) { if (allOf != null) {
for (CodegenProperty property : allOf) { for (CodegenProperty property : allOf) {
property.name = patchPropertyName(model, camelize(property.baseType), composedPropertyNames); property.name = patchPropertyName(model, property, camelize(property.baseType), composedPropertyNames);
patchPropertyVendorExtensions(property); patchPropertyVendorExtensions(property);
} }
} }
@ -638,7 +638,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen {
if (anyOf != null) { if (anyOf != null) {
removePropertiesDeclaredInComposedTypes(objs, model, anyOf); removePropertiesDeclaredInComposedTypes(objs, model, anyOf);
for (CodegenProperty property : anyOf) { for (CodegenProperty property : anyOf) {
property.name = patchPropertyName(model, camelize(property.baseType), composedPropertyNames); property.name = patchPropertyName(model, property, camelize(property.baseType), composedPropertyNames);
property.isNullable = true; property.isNullable = true;
patchPropertyVendorExtensions(property); patchPropertyVendorExtensions(property);
property.vendorExtensions.put("x-base-name", model.name.substring(model.name.lastIndexOf('_') + 1)); property.vendorExtensions.put("x-base-name", model.name.substring(model.name.lastIndexOf('_') + 1));
@ -649,7 +649,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen {
if (oneOf != null) { if (oneOf != null) {
removePropertiesDeclaredInComposedTypes(objs, model, oneOf); removePropertiesDeclaredInComposedTypes(objs, model, oneOf);
for (CodegenProperty property : oneOf) { for (CodegenProperty property : oneOf) {
property.name = patchPropertyName(model, camelize(property.baseType), composedPropertyNames); property.name = patchPropertyName(model, property, camelize(property.baseType), composedPropertyNames);
property.isNullable = true; property.isNullable = true;
patchPropertyVendorExtensions(property); patchPropertyVendorExtensions(property);
property.vendorExtensions.put("x-base-name", model.name.substring(model.name.lastIndexOf('_') + 1)); property.vendorExtensions.put("x-base-name", model.name.substring(model.name.lastIndexOf('_') + 1));
@ -716,7 +716,51 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen {
protected void removePropertiesDeclaredInComposedTypes(Map<String, ModelsMap> objs, CodegenModel model, List<CodegenProperty> composedProperties) { protected void removePropertiesDeclaredInComposedTypes(Map<String, ModelsMap> objs, CodegenModel model, List<CodegenProperty> composedProperties) {
} }
private String patchPropertyName(CodegenModel model, String value, Set<String> composedPropertyNames) { /**
* If the model has duplicate proprety names, just make it unique
* This can happen for base names like "id" and "@id"
* @param model
* @param property
* @param value
* @return
*/
private String setUniquePropertyName(CodegenModel model, CodegenProperty property, String value) {
if (property.name.equalsIgnoreCase(property.baseName)) {
return value;
}
Optional<CodegenProperty> alreadyUpdatedProperty = model.allVars.stream()
.filter(p -> !p.name.equals(property.name) && p.baseName.equals(property.baseName))
.collect(Collectors.toList())
.stream()
.findFirst();
if (alreadyUpdatedProperty.isPresent()) {
// above iterates allVars, which may have already been corrected
return alreadyUpdatedProperty.get().name;
}
final String tmp = value;
long count = model.allVars.stream()
.filter(v -> v.name.equalsIgnoreCase(tmp))
.count();
if (count > 1) {
value = value + count;
value = setUniquePropertyName(model, property, value);
}
return value;
}
/**
* Fixes nested maps so the generic type is defined
* Convertes List<List>> to List<List<T>>
*/
private String patchPropertyName(CodegenModel model, CodegenProperty property, String value, Set<String> composedPropertyNames) {
value = setUniquePropertyName(model, property, value);
String name = escapeReservedWord(model, value); String name = escapeReservedWord(model, value);
if (name.startsWith(AbstractCSharpCodegen.invalidParameterNamePrefix)) { if (name.startsWith(AbstractCSharpCodegen.invalidParameterNamePrefix)) {
@ -799,7 +843,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen {
patchPropertyVendorExtensions(property); patchPropertyVendorExtensions(property);
property.name = patchPropertyName(model, property.name, null); property.name = patchPropertyName(model, property, property.name, null);
patchNestedMaps(property); patchNestedMaps(property);

View File

@ -1793,6 +1793,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
EnumClass: EnumClass:
type: string type: string
default: '-efg' default: '-efg'

View File

@ -1685,6 +1685,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -13,6 +13,8 @@ Name | Type | Description | Notes
**DateTime** | **DateTime** | | [optional] **DateTime** | **DateTime** | | [optional]
**Decimal** | **decimal** | | [optional] **Decimal** | **decimal** | | [optional]
**Double** | **double** | | [optional] **Double** | **double** | | [optional]
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
**Float** | **float** | | [optional] **Float** | **float** | | [optional]
**Int32** | **int** | | [optional] **Int32** | **int** | | [optional]
**Int32Range** | **int** | | [optional] **Int32Range** | **int** | | [optional]

View File

@ -134,6 +134,24 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'Double' // TODO unit test for the property 'Double'
} }
/// <summary>
/// Test the property 'DuplicatePropertyName2'
/// </summary>
[Fact]
public void DuplicatePropertyName2Test()
{
// TODO unit test for the property 'DuplicatePropertyName2'
}
/// <summary>
/// Test the property 'DuplicatePropertyName'
/// </summary>
[Fact]
public void DuplicatePropertyNameTest()
{
// TODO unit test for the property 'DuplicatePropertyName'
}
/// <summary> /// <summary>
/// Test the property 'Float' /// Test the property 'Float'
/// </summary> /// </summary>

View File

@ -41,6 +41,8 @@ namespace Org.OpenAPITools.Model
/// <param name="dateTime">dateTime</param> /// <param name="dateTime">dateTime</param>
/// <param name="decimal">decimal</param> /// <param name="decimal">decimal</param>
/// <param name="double">double</param> /// <param name="double">double</param>
/// <param name="duplicatePropertyName2">duplicatePropertyName2</param>
/// <param name="duplicatePropertyName">duplicatePropertyName</param>
/// <param name="float">float</param> /// <param name="float">float</param>
/// <param name="int32">int32</param> /// <param name="int32">int32</param>
/// <param name="int32Range">int32Range</param> /// <param name="int32Range">int32Range</param>
@ -59,7 +61,7 @@ namespace Org.OpenAPITools.Model
/// <param name="unsignedLong">unsignedLong</param> /// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param> /// <param name="uuid">uuid</param>
[JsonConstructor] [JsonConstructor]
public FormatTest(byte[] @byte, DateTime date, decimal number, string password, 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) 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<string> duplicatePropertyName2 = default, Option<string> duplicatePropertyName = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
{ {
Byte = @byte; Byte = @byte;
Date = date; Date = date;
@ -70,6 +72,8 @@ namespace Org.OpenAPITools.Model
DateTimeOption = dateTime; DateTimeOption = dateTime;
DecimalOption = @decimal; DecimalOption = @decimal;
DoubleOption = @double; DoubleOption = @double;
DuplicatePropertyName2Option = duplicatePropertyName2;
DuplicatePropertyNameOption = duplicatePropertyName;
FloatOption = @float; FloatOption = @float;
Int32Option = int32; Int32Option = int32;
Int32RangeOption = int32Range; Int32RangeOption = int32Range;
@ -176,6 +180,32 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("double")] [JsonPropertyName("double")]
public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new Option<double?>(value); } } public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new Option<double?>(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName2
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyName2Option { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[JsonPropertyName("duplicate_property_name")]
public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new Option<string>(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyNameOption { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[JsonPropertyName("@duplicate_property_name")]
public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new Option<string>(value); } }
/// <summary> /// <summary>
/// Used to track the state of Float /// Used to track the state of Float
/// </summary> /// </summary>
@ -424,6 +454,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" DateTime: ").Append(DateTime).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n");
sb.Append(" Decimal: ").Append(Decimal).Append("\n"); sb.Append(" Decimal: ").Append(Decimal).Append("\n");
sb.Append(" Double: ").Append(Double).Append("\n"); sb.Append(" Double: ").Append(Double).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append(" Float: ").Append(Float).Append("\n"); sb.Append(" Float: ").Append(Float).Append("\n");
sb.Append(" Int32: ").Append(Int32).Append("\n"); sb.Append(" Int32: ").Append(Int32).Append("\n");
sb.Append(" Int32Range: ").Append(Int32Range).Append("\n"); sb.Append(" Int32Range: ").Append(Int32Range).Append("\n");
@ -658,6 +690,8 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> dateTime = default; Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default; Option<decimal?> varDecimal = default;
Option<double?> varDouble = default; Option<double?> varDouble = default;
Option<string> duplicatePropertyName2 = default;
Option<string> duplicatePropertyName = default;
Option<float?> varFloat = default; Option<float?> varFloat = default;
Option<int?> int32 = default; Option<int?> int32 = default;
Option<int?> int32Range = default; Option<int?> int32Range = default;
@ -718,6 +752,12 @@ namespace Org.OpenAPITools.Model
case "double": case "double":
varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble()); varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble());
break; break;
case "duplicate_property_name":
duplicatePropertyName2 = new Option<string>(utf8JsonReader.GetString());
break;
case "@duplicate_property_name":
duplicatePropertyName = new Option<string>(utf8JsonReader.GetString());
break;
case "float": case "float":
varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble()); varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble());
break; break;
@ -817,6 +857,12 @@ namespace Org.OpenAPITools.Model
if (varDouble.IsSet && varDouble.Value == null) if (varDouble.IsSet && varDouble.Value == null)
throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest.");
if (varFloat.IsSet && varFloat.Value == null) if (varFloat.IsSet && varFloat.Value == null)
throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest.");
@ -868,7 +914,7 @@ namespace Org.OpenAPITools.Model
if (uuid.IsSet && uuid.Value == null) if (uuid.IsSet && uuid.Value == null)
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
} }
/// <summary> /// <summary>
@ -904,6 +950,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.BinaryOption.IsSet && formatTest.Binary == null) if (formatTest.BinaryOption.IsSet && formatTest.Binary == null)
throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyName2Option.IsSet && formatTest.DuplicatePropertyName2 == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName2), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyNameOption.IsSet && formatTest.DuplicatePropertyName == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName), "Property is required for class FormatTest.");
if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null) if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null)
throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest.");
@ -942,6 +994,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.DoubleOption.IsSet) if (formatTest.DoubleOption.IsSet)
writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); writer.WriteNumber("double", formatTest.DoubleOption.Value.Value);
if (formatTest.DuplicatePropertyName2Option.IsSet)
writer.WriteString("duplicate_property_name", formatTest.DuplicatePropertyName2);
if (formatTest.DuplicatePropertyNameOption.IsSet)
writer.WriteString("@duplicate_property_name", formatTest.DuplicatePropertyName);
if (formatTest.FloatOption.IsSet) if (formatTest.FloatOption.IsSet)
writer.WriteNumber("float", formatTest.FloatOption.Value.Value); writer.WriteNumber("float", formatTest.FloatOption.Value.Value);

View File

@ -1726,6 +1726,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -13,6 +13,8 @@ Name | Type | Description | Notes
**DateTime** | **DateTime** | | [optional] **DateTime** | **DateTime** | | [optional]
**Decimal** | **decimal** | | [optional] **Decimal** | **decimal** | | [optional]
**Double** | **double** | | [optional] **Double** | **double** | | [optional]
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
**Float** | **float** | | [optional] **Float** | **float** | | [optional]
**Int32** | **int** | | [optional] **Int32** | **int** | | [optional]
**Int32Range** | **int** | | [optional] **Int32Range** | **int** | | [optional]

View File

@ -134,6 +134,24 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'Double' // TODO unit test for the property 'Double'
} }
/// <summary>
/// Test the property 'DuplicatePropertyName2'
/// </summary>
[Fact]
public void DuplicatePropertyName2Test()
{
// TODO unit test for the property 'DuplicatePropertyName2'
}
/// <summary>
/// Test the property 'DuplicatePropertyName'
/// </summary>
[Fact]
public void DuplicatePropertyNameTest()
{
// TODO unit test for the property 'DuplicatePropertyName'
}
/// <summary> /// <summary>
/// Test the property 'Float' /// Test the property 'Float'
/// </summary> /// </summary>

View File

@ -41,6 +41,8 @@ namespace Org.OpenAPITools.Model
/// <param name="dateTime">dateTime</param> /// <param name="dateTime">dateTime</param>
/// <param name="decimal">decimal</param> /// <param name="decimal">decimal</param>
/// <param name="double">double</param> /// <param name="double">double</param>
/// <param name="duplicatePropertyName2">duplicatePropertyName2</param>
/// <param name="duplicatePropertyName">duplicatePropertyName</param>
/// <param name="float">float</param> /// <param name="float">float</param>
/// <param name="int32">int32</param> /// <param name="int32">int32</param>
/// <param name="int32Range">int32Range</param> /// <param name="int32Range">int32Range</param>
@ -59,7 +61,7 @@ namespace Org.OpenAPITools.Model
/// <param name="unsignedLong">unsignedLong</param> /// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param> /// <param name="uuid">uuid</param>
[JsonConstructor] [JsonConstructor]
public FormatTest(byte[] @byte, DateTime date, decimal number, string password, 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) 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<string> duplicatePropertyName2 = default, Option<string> duplicatePropertyName = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
{ {
Byte = @byte; Byte = @byte;
Date = date; Date = date;
@ -70,6 +72,8 @@ namespace Org.OpenAPITools.Model
DateTimeOption = dateTime; DateTimeOption = dateTime;
DecimalOption = @decimal; DecimalOption = @decimal;
DoubleOption = @double; DoubleOption = @double;
DuplicatePropertyName2Option = duplicatePropertyName2;
DuplicatePropertyNameOption = duplicatePropertyName;
FloatOption = @float; FloatOption = @float;
Int32Option = int32; Int32Option = int32;
Int32RangeOption = int32Range; Int32RangeOption = int32Range;
@ -176,6 +180,32 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("double")] [JsonPropertyName("double")]
public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new Option<double?>(value); } } public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new Option<double?>(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName2
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyName2Option { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[JsonPropertyName("duplicate_property_name")]
public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new Option<string>(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyNameOption { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[JsonPropertyName("@duplicate_property_name")]
public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new Option<string>(value); } }
/// <summary> /// <summary>
/// Used to track the state of Float /// Used to track the state of Float
/// </summary> /// </summary>
@ -424,6 +454,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" DateTime: ").Append(DateTime).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n");
sb.Append(" Decimal: ").Append(Decimal).Append("\n"); sb.Append(" Decimal: ").Append(Decimal).Append("\n");
sb.Append(" Double: ").Append(Double).Append("\n"); sb.Append(" Double: ").Append(Double).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append(" Float: ").Append(Float).Append("\n"); sb.Append(" Float: ").Append(Float).Append("\n");
sb.Append(" Int32: ").Append(Int32).Append("\n"); sb.Append(" Int32: ").Append(Int32).Append("\n");
sb.Append(" Int32Range: ").Append(Int32Range).Append("\n"); sb.Append(" Int32Range: ").Append(Int32Range).Append("\n");
@ -658,6 +690,8 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> dateTime = default; Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default; Option<decimal?> varDecimal = default;
Option<double?> varDouble = default; Option<double?> varDouble = default;
Option<string> duplicatePropertyName2 = default;
Option<string> duplicatePropertyName = default;
Option<float?> varFloat = default; Option<float?> varFloat = default;
Option<int?> int32 = default; Option<int?> int32 = default;
Option<int?> int32Range = default; Option<int?> int32Range = default;
@ -718,6 +752,12 @@ namespace Org.OpenAPITools.Model
case "double": case "double":
varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble()); varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble());
break; break;
case "duplicate_property_name":
duplicatePropertyName2 = new Option<string>(utf8JsonReader.GetString());
break;
case "@duplicate_property_name":
duplicatePropertyName = new Option<string>(utf8JsonReader.GetString());
break;
case "float": case "float":
varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble()); varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble());
break; break;
@ -817,6 +857,12 @@ namespace Org.OpenAPITools.Model
if (varDouble.IsSet && varDouble.Value == null) if (varDouble.IsSet && varDouble.Value == null)
throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest.");
if (varFloat.IsSet && varFloat.Value == null) if (varFloat.IsSet && varFloat.Value == null)
throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest.");
@ -868,7 +914,7 @@ namespace Org.OpenAPITools.Model
if (uuid.IsSet && uuid.Value == null) if (uuid.IsSet && uuid.Value == null)
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
} }
/// <summary> /// <summary>
@ -904,6 +950,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.BinaryOption.IsSet && formatTest.Binary == null) if (formatTest.BinaryOption.IsSet && formatTest.Binary == null)
throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyName2Option.IsSet && formatTest.DuplicatePropertyName2 == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName2), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyNameOption.IsSet && formatTest.DuplicatePropertyName == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName), "Property is required for class FormatTest.");
if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null) if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null)
throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest.");
@ -942,6 +994,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.DoubleOption.IsSet) if (formatTest.DoubleOption.IsSet)
writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); writer.WriteNumber("double", formatTest.DoubleOption.Value.Value);
if (formatTest.DuplicatePropertyName2Option.IsSet)
writer.WriteString("duplicate_property_name", formatTest.DuplicatePropertyName2);
if (formatTest.DuplicatePropertyNameOption.IsSet)
writer.WriteString("@duplicate_property_name", formatTest.DuplicatePropertyName);
if (formatTest.FloatOption.IsSet) if (formatTest.FloatOption.IsSet)
writer.WriteNumber("float", formatTest.FloatOption.Value.Value); writer.WriteNumber("float", formatTest.FloatOption.Value.Value);

View File

@ -1685,6 +1685,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -13,6 +13,8 @@ Name | Type | Description | Notes
**DateTime** | **DateTime** | | [optional] **DateTime** | **DateTime** | | [optional]
**Decimal** | **decimal** | | [optional] **Decimal** | **decimal** | | [optional]
**Double** | **double** | | [optional] **Double** | **double** | | [optional]
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
**Float** | **float** | | [optional] **Float** | **float** | | [optional]
**Int32** | **int** | | [optional] **Int32** | **int** | | [optional]
**Int32Range** | **int** | | [optional] **Int32Range** | **int** | | [optional]

View File

@ -134,6 +134,24 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'Double' // TODO unit test for the property 'Double'
} }
/// <summary>
/// Test the property 'DuplicatePropertyName2'
/// </summary>
[Fact]
public void DuplicatePropertyName2Test()
{
// TODO unit test for the property 'DuplicatePropertyName2'
}
/// <summary>
/// Test the property 'DuplicatePropertyName'
/// </summary>
[Fact]
public void DuplicatePropertyNameTest()
{
// TODO unit test for the property 'DuplicatePropertyName'
}
/// <summary> /// <summary>
/// Test the property 'Float' /// Test the property 'Float'
/// </summary> /// </summary>

View File

@ -41,6 +41,8 @@ namespace Org.OpenAPITools.Model
/// <param name="dateTime">dateTime</param> /// <param name="dateTime">dateTime</param>
/// <param name="decimal">decimal</param> /// <param name="decimal">decimal</param>
/// <param name="double">double</param> /// <param name="double">double</param>
/// <param name="duplicatePropertyName2">duplicatePropertyName2</param>
/// <param name="duplicatePropertyName">duplicatePropertyName</param>
/// <param name="float">float</param> /// <param name="float">float</param>
/// <param name="int32">int32</param> /// <param name="int32">int32</param>
/// <param name="int32Range">int32Range</param> /// <param name="int32Range">int32Range</param>
@ -59,7 +61,7 @@ namespace Org.OpenAPITools.Model
/// <param name="unsignedLong">unsignedLong</param> /// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param> /// <param name="uuid">uuid</param>
[JsonConstructor] [JsonConstructor]
public FormatTest(byte[] @byte, DateTime date, decimal number, string password, 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) 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<string> duplicatePropertyName2 = default, Option<string> duplicatePropertyName = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
{ {
Byte = @byte; Byte = @byte;
Date = date; Date = date;
@ -70,6 +72,8 @@ namespace Org.OpenAPITools.Model
DateTimeOption = dateTime; DateTimeOption = dateTime;
DecimalOption = @decimal; DecimalOption = @decimal;
DoubleOption = @double; DoubleOption = @double;
DuplicatePropertyName2Option = duplicatePropertyName2;
DuplicatePropertyNameOption = duplicatePropertyName;
FloatOption = @float; FloatOption = @float;
Int32Option = int32; Int32Option = int32;
Int32RangeOption = int32Range; Int32RangeOption = int32Range;
@ -176,6 +180,32 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("double")] [JsonPropertyName("double")]
public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new Option<double?>(value); } } public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new Option<double?>(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName2
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyName2Option { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[JsonPropertyName("duplicate_property_name")]
public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new Option<string>(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyNameOption { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[JsonPropertyName("@duplicate_property_name")]
public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new Option<string>(value); } }
/// <summary> /// <summary>
/// Used to track the state of Float /// Used to track the state of Float
/// </summary> /// </summary>
@ -424,6 +454,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" DateTime: ").Append(DateTime).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n");
sb.Append(" Decimal: ").Append(Decimal).Append("\n"); sb.Append(" Decimal: ").Append(Decimal).Append("\n");
sb.Append(" Double: ").Append(Double).Append("\n"); sb.Append(" Double: ").Append(Double).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append(" Float: ").Append(Float).Append("\n"); sb.Append(" Float: ").Append(Float).Append("\n");
sb.Append(" Int32: ").Append(Int32).Append("\n"); sb.Append(" Int32: ").Append(Int32).Append("\n");
sb.Append(" Int32Range: ").Append(Int32Range).Append("\n"); sb.Append(" Int32Range: ").Append(Int32Range).Append("\n");
@ -658,6 +690,8 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> dateTime = default; Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default; Option<decimal?> varDecimal = default;
Option<double?> varDouble = default; Option<double?> varDouble = default;
Option<string> duplicatePropertyName2 = default;
Option<string> duplicatePropertyName = default;
Option<float?> varFloat = default; Option<float?> varFloat = default;
Option<int?> int32 = default; Option<int?> int32 = default;
Option<int?> int32Range = default; Option<int?> int32Range = default;
@ -718,6 +752,12 @@ namespace Org.OpenAPITools.Model
case "double": case "double":
varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble()); varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble());
break; break;
case "duplicate_property_name":
duplicatePropertyName2 = new Option<string>(utf8JsonReader.GetString());
break;
case "@duplicate_property_name":
duplicatePropertyName = new Option<string>(utf8JsonReader.GetString());
break;
case "float": case "float":
varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble()); varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble());
break; break;
@ -817,6 +857,12 @@ namespace Org.OpenAPITools.Model
if (varDouble.IsSet && varDouble.Value == null) if (varDouble.IsSet && varDouble.Value == null)
throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest.");
if (varFloat.IsSet && varFloat.Value == null) if (varFloat.IsSet && varFloat.Value == null)
throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest.");
@ -868,7 +914,7 @@ namespace Org.OpenAPITools.Model
if (uuid.IsSet && uuid.Value == null) if (uuid.IsSet && uuid.Value == null)
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
} }
/// <summary> /// <summary>
@ -904,6 +950,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.BinaryOption.IsSet && formatTest.Binary == null) if (formatTest.BinaryOption.IsSet && formatTest.Binary == null)
throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyName2Option.IsSet && formatTest.DuplicatePropertyName2 == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName2), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyNameOption.IsSet && formatTest.DuplicatePropertyName == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName), "Property is required for class FormatTest.");
if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null) if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null)
throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest.");
@ -942,6 +994,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.DoubleOption.IsSet) if (formatTest.DoubleOption.IsSet)
writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); writer.WriteNumber("double", formatTest.DoubleOption.Value.Value);
if (formatTest.DuplicatePropertyName2Option.IsSet)
writer.WriteString("duplicate_property_name", formatTest.DuplicatePropertyName2);
if (formatTest.DuplicatePropertyNameOption.IsSet)
writer.WriteString("@duplicate_property_name", formatTest.DuplicatePropertyName);
if (formatTest.FloatOption.IsSet) if (formatTest.FloatOption.IsSet)
writer.WriteNumber("float", formatTest.FloatOption.Value.Value); writer.WriteNumber("float", formatTest.FloatOption.Value.Value);

View File

@ -1726,6 +1726,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -13,6 +13,8 @@ Name | Type | Description | Notes
**DateTime** | **DateTime** | | [optional] **DateTime** | **DateTime** | | [optional]
**Decimal** | **decimal** | | [optional] **Decimal** | **decimal** | | [optional]
**Double** | **double** | | [optional] **Double** | **double** | | [optional]
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
**Float** | **float** | | [optional] **Float** | **float** | | [optional]
**Int32** | **int** | | [optional] **Int32** | **int** | | [optional]
**Int32Range** | **int** | | [optional] **Int32Range** | **int** | | [optional]

View File

@ -134,6 +134,24 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'Double' // TODO unit test for the property 'Double'
} }
/// <summary>
/// Test the property 'DuplicatePropertyName2'
/// </summary>
[Fact]
public void DuplicatePropertyName2Test()
{
// TODO unit test for the property 'DuplicatePropertyName2'
}
/// <summary>
/// Test the property 'DuplicatePropertyName'
/// </summary>
[Fact]
public void DuplicatePropertyNameTest()
{
// TODO unit test for the property 'DuplicatePropertyName'
}
/// <summary> /// <summary>
/// Test the property 'Float' /// Test the property 'Float'
/// </summary> /// </summary>

View File

@ -41,6 +41,8 @@ namespace Org.OpenAPITools.Model
/// <param name="dateTime">dateTime</param> /// <param name="dateTime">dateTime</param>
/// <param name="decimal">decimal</param> /// <param name="decimal">decimal</param>
/// <param name="double">double</param> /// <param name="double">double</param>
/// <param name="duplicatePropertyName2">duplicatePropertyName2</param>
/// <param name="duplicatePropertyName">duplicatePropertyName</param>
/// <param name="float">float</param> /// <param name="float">float</param>
/// <param name="int32">int32</param> /// <param name="int32">int32</param>
/// <param name="int32Range">int32Range</param> /// <param name="int32Range">int32Range</param>
@ -59,7 +61,7 @@ namespace Org.OpenAPITools.Model
/// <param name="unsignedLong">unsignedLong</param> /// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param> /// <param name="uuid">uuid</param>
[JsonConstructor] [JsonConstructor]
public FormatTest(byte[] @byte, DateTime date, decimal number, string password, 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) 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<string> duplicatePropertyName2 = default, Option<string> duplicatePropertyName = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
{ {
Byte = @byte; Byte = @byte;
Date = date; Date = date;
@ -70,6 +72,8 @@ namespace Org.OpenAPITools.Model
DateTimeOption = dateTime; DateTimeOption = dateTime;
DecimalOption = @decimal; DecimalOption = @decimal;
DoubleOption = @double; DoubleOption = @double;
DuplicatePropertyName2Option = duplicatePropertyName2;
DuplicatePropertyNameOption = duplicatePropertyName;
FloatOption = @float; FloatOption = @float;
Int32Option = int32; Int32Option = int32;
Int32RangeOption = int32Range; Int32RangeOption = int32Range;
@ -176,6 +180,32 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("double")] [JsonPropertyName("double")]
public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new Option<double?>(value); } } public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new Option<double?>(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName2
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyName2Option { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[JsonPropertyName("duplicate_property_name")]
public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new Option<string>(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyNameOption { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[JsonPropertyName("@duplicate_property_name")]
public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new Option<string>(value); } }
/// <summary> /// <summary>
/// Used to track the state of Float /// Used to track the state of Float
/// </summary> /// </summary>
@ -424,6 +454,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" DateTime: ").Append(DateTime).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n");
sb.Append(" Decimal: ").Append(Decimal).Append("\n"); sb.Append(" Decimal: ").Append(Decimal).Append("\n");
sb.Append(" Double: ").Append(Double).Append("\n"); sb.Append(" Double: ").Append(Double).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append(" Float: ").Append(Float).Append("\n"); sb.Append(" Float: ").Append(Float).Append("\n");
sb.Append(" Int32: ").Append(Int32).Append("\n"); sb.Append(" Int32: ").Append(Int32).Append("\n");
sb.Append(" Int32Range: ").Append(Int32Range).Append("\n"); sb.Append(" Int32Range: ").Append(Int32Range).Append("\n");
@ -658,6 +690,8 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> dateTime = default; Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default; Option<decimal?> varDecimal = default;
Option<double?> varDouble = default; Option<double?> varDouble = default;
Option<string> duplicatePropertyName2 = default;
Option<string> duplicatePropertyName = default;
Option<float?> varFloat = default; Option<float?> varFloat = default;
Option<int?> int32 = default; Option<int?> int32 = default;
Option<int?> int32Range = default; Option<int?> int32Range = default;
@ -718,6 +752,12 @@ namespace Org.OpenAPITools.Model
case "double": case "double":
varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble()); varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble());
break; break;
case "duplicate_property_name":
duplicatePropertyName2 = new Option<string>(utf8JsonReader.GetString());
break;
case "@duplicate_property_name":
duplicatePropertyName = new Option<string>(utf8JsonReader.GetString());
break;
case "float": case "float":
varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble()); varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble());
break; break;
@ -817,6 +857,12 @@ namespace Org.OpenAPITools.Model
if (varDouble.IsSet && varDouble.Value == null) if (varDouble.IsSet && varDouble.Value == null)
throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest.");
if (varFloat.IsSet && varFloat.Value == null) if (varFloat.IsSet && varFloat.Value == null)
throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest.");
@ -868,7 +914,7 @@ namespace Org.OpenAPITools.Model
if (uuid.IsSet && uuid.Value == null) if (uuid.IsSet && uuid.Value == null)
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
} }
/// <summary> /// <summary>
@ -904,6 +950,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.BinaryOption.IsSet && formatTest.Binary == null) if (formatTest.BinaryOption.IsSet && formatTest.Binary == null)
throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyName2Option.IsSet && formatTest.DuplicatePropertyName2 == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName2), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyNameOption.IsSet && formatTest.DuplicatePropertyName == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName), "Property is required for class FormatTest.");
if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null) if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null)
throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest.");
@ -942,6 +994,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.DoubleOption.IsSet) if (formatTest.DoubleOption.IsSet)
writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); writer.WriteNumber("double", formatTest.DoubleOption.Value.Value);
if (formatTest.DuplicatePropertyName2Option.IsSet)
writer.WriteString("duplicate_property_name", formatTest.DuplicatePropertyName2);
if (formatTest.DuplicatePropertyNameOption.IsSet)
writer.WriteString("@duplicate_property_name", formatTest.DuplicatePropertyName);
if (formatTest.FloatOption.IsSet) if (formatTest.FloatOption.IsSet)
writer.WriteNumber("float", formatTest.FloatOption.Value.Value); writer.WriteNumber("float", formatTest.FloatOption.Value.Value);

View File

@ -1685,6 +1685,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -13,6 +13,8 @@ Name | Type | Description | Notes
**DateTime** | **DateTime** | | [optional] **DateTime** | **DateTime** | | [optional]
**Decimal** | **decimal** | | [optional] **Decimal** | **decimal** | | [optional]
**Double** | **double** | | [optional] **Double** | **double** | | [optional]
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
**Float** | **float** | | [optional] **Float** | **float** | | [optional]
**Int32** | **int** | | [optional] **Int32** | **int** | | [optional]
**Int32Range** | **int** | | [optional] **Int32Range** | **int** | | [optional]

View File

@ -134,6 +134,24 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'Double' // TODO unit test for the property 'Double'
} }
/// <summary>
/// Test the property 'DuplicatePropertyName2'
/// </summary>
[Fact]
public void DuplicatePropertyName2Test()
{
// TODO unit test for the property 'DuplicatePropertyName2'
}
/// <summary>
/// Test the property 'DuplicatePropertyName'
/// </summary>
[Fact]
public void DuplicatePropertyNameTest()
{
// TODO unit test for the property 'DuplicatePropertyName'
}
/// <summary> /// <summary>
/// Test the property 'Float' /// Test the property 'Float'
/// </summary> /// </summary>

View File

@ -41,6 +41,8 @@ namespace Org.OpenAPITools.Model
/// <param name="dateTime">dateTime</param> /// <param name="dateTime">dateTime</param>
/// <param name="decimal">decimal</param> /// <param name="decimal">decimal</param>
/// <param name="double">double</param> /// <param name="double">double</param>
/// <param name="duplicatePropertyName2">duplicatePropertyName2</param>
/// <param name="duplicatePropertyName">duplicatePropertyName</param>
/// <param name="float">float</param> /// <param name="float">float</param>
/// <param name="int32">int32</param> /// <param name="int32">int32</param>
/// <param name="int32Range">int32Range</param> /// <param name="int32Range">int32Range</param>
@ -59,7 +61,7 @@ namespace Org.OpenAPITools.Model
/// <param name="unsignedLong">unsignedLong</param> /// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param> /// <param name="uuid">uuid</param>
[JsonConstructor] [JsonConstructor]
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, 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) 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<string> duplicatePropertyName2 = default, Option<string> duplicatePropertyName = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
{ {
Byte = @byte; Byte = @byte;
Date = date; Date = date;
@ -70,6 +72,8 @@ namespace Org.OpenAPITools.Model
DateTimeOption = dateTime; DateTimeOption = dateTime;
DecimalOption = @decimal; DecimalOption = @decimal;
DoubleOption = @double; DoubleOption = @double;
DuplicatePropertyName2Option = duplicatePropertyName2;
DuplicatePropertyNameOption = duplicatePropertyName;
FloatOption = @float; FloatOption = @float;
Int32Option = int32; Int32Option = int32;
Int32RangeOption = int32Range; Int32RangeOption = int32Range;
@ -176,6 +180,32 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("double")] [JsonPropertyName("double")]
public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName2
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyName2Option { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[JsonPropertyName("duplicate_property_name")]
public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyNameOption { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[JsonPropertyName("@duplicate_property_name")]
public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } }
/// <summary> /// <summary>
/// Used to track the state of Float /// Used to track the state of Float
/// </summary> /// </summary>
@ -424,6 +454,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" DateTime: ").Append(DateTime).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n");
sb.Append(" Decimal: ").Append(Decimal).Append("\n"); sb.Append(" Decimal: ").Append(Decimal).Append("\n");
sb.Append(" Double: ").Append(Double).Append("\n"); sb.Append(" Double: ").Append(Double).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append(" Float: ").Append(Float).Append("\n"); sb.Append(" Float: ").Append(Float).Append("\n");
sb.Append(" Int32: ").Append(Int32).Append("\n"); sb.Append(" Int32: ").Append(Int32).Append("\n");
sb.Append(" Int32Range: ").Append(Int32Range).Append("\n"); sb.Append(" Int32Range: ").Append(Int32Range).Append("\n");
@ -658,6 +690,8 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> dateTime = default; Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default; Option<decimal?> varDecimal = default;
Option<double?> varDouble = default; Option<double?> varDouble = default;
Option<string> duplicatePropertyName2 = default;
Option<string> duplicatePropertyName = default;
Option<float?> varFloat = default; Option<float?> varFloat = default;
Option<int?> int32 = default; Option<int?> int32 = default;
Option<int?> int32Range = default; Option<int?> int32Range = default;
@ -718,6 +752,12 @@ namespace Org.OpenAPITools.Model
case "double": case "double":
varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble()); varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble());
break; break;
case "duplicate_property_name":
duplicatePropertyName2 = new Option<string>(utf8JsonReader.GetString());
break;
case "@duplicate_property_name":
duplicatePropertyName = new Option<string>(utf8JsonReader.GetString());
break;
case "float": case "float":
varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble()); varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble());
break; break;
@ -817,6 +857,12 @@ namespace Org.OpenAPITools.Model
if (varDouble.IsSet && varDouble.Value == null) if (varDouble.IsSet && varDouble.Value == null)
throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest.");
if (varFloat.IsSet && varFloat.Value == null) if (varFloat.IsSet && varFloat.Value == null)
throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest.");
@ -868,7 +914,7 @@ namespace Org.OpenAPITools.Model
if (uuid.IsSet && uuid.Value == null) if (uuid.IsSet && uuid.Value == null)
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
} }
/// <summary> /// <summary>
@ -904,6 +950,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.BinaryOption.IsSet && formatTest.Binary == null) if (formatTest.BinaryOption.IsSet && formatTest.Binary == null)
throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyName2Option.IsSet && formatTest.DuplicatePropertyName2 == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName2), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyNameOption.IsSet && formatTest.DuplicatePropertyName == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName), "Property is required for class FormatTest.");
if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null) if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null)
throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest.");
@ -942,6 +994,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.DoubleOption.IsSet) if (formatTest.DoubleOption.IsSet)
writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); writer.WriteNumber("double", formatTest.DoubleOption.Value.Value);
if (formatTest.DuplicatePropertyName2Option.IsSet)
writer.WriteString("duplicate_property_name", formatTest.DuplicatePropertyName2);
if (formatTest.DuplicatePropertyNameOption.IsSet)
writer.WriteString("@duplicate_property_name", formatTest.DuplicatePropertyName);
if (formatTest.FloatOption.IsSet) if (formatTest.FloatOption.IsSet)
writer.WriteNumber("float", formatTest.FloatOption.Value.Value); writer.WriteNumber("float", formatTest.FloatOption.Value.Value);

View File

@ -1726,6 +1726,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -13,6 +13,8 @@ Name | Type | Description | Notes
**DateTime** | **DateTime** | | [optional] **DateTime** | **DateTime** | | [optional]
**Decimal** | **decimal** | | [optional] **Decimal** | **decimal** | | [optional]
**Double** | **double** | | [optional] **Double** | **double** | | [optional]
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
**Float** | **float** | | [optional] **Float** | **float** | | [optional]
**Int32** | **int** | | [optional] **Int32** | **int** | | [optional]
**Int32Range** | **int** | | [optional] **Int32Range** | **int** | | [optional]

View File

@ -134,6 +134,24 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'Double' // TODO unit test for the property 'Double'
} }
/// <summary>
/// Test the property 'DuplicatePropertyName2'
/// </summary>
[Fact]
public void DuplicatePropertyName2Test()
{
// TODO unit test for the property 'DuplicatePropertyName2'
}
/// <summary>
/// Test the property 'DuplicatePropertyName'
/// </summary>
[Fact]
public void DuplicatePropertyNameTest()
{
// TODO unit test for the property 'DuplicatePropertyName'
}
/// <summary> /// <summary>
/// Test the property 'Float' /// Test the property 'Float'
/// </summary> /// </summary>

View File

@ -43,6 +43,8 @@ namespace Org.OpenAPITools.Model
/// <param name="dateTime">dateTime</param> /// <param name="dateTime">dateTime</param>
/// <param name="decimal">decimal</param> /// <param name="decimal">decimal</param>
/// <param name="double">double</param> /// <param name="double">double</param>
/// <param name="duplicatePropertyName2">duplicatePropertyName2</param>
/// <param name="duplicatePropertyName">duplicatePropertyName</param>
/// <param name="float">float</param> /// <param name="float">float</param>
/// <param name="int32">int32</param> /// <param name="int32">int32</param>
/// <param name="int32Range">int32Range</param> /// <param name="int32Range">int32Range</param>
@ -61,7 +63,7 @@ namespace Org.OpenAPITools.Model
/// <param name="unsignedLong">unsignedLong</param> /// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param> /// <param name="uuid">uuid</param>
[JsonConstructor] [JsonConstructor]
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, 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) 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<string?> duplicatePropertyName2 = default, Option<string?> duplicatePropertyName = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string?> patternWithBackslash = default, Option<string?> patternWithDigits = default, Option<string?> patternWithDigitsAndDelimiter = default, Option<string?> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
{ {
Byte = @byte; Byte = @byte;
Date = date; Date = date;
@ -72,6 +74,8 @@ namespace Org.OpenAPITools.Model
DateTimeOption = dateTime; DateTimeOption = dateTime;
DecimalOption = @decimal; DecimalOption = @decimal;
DoubleOption = @double; DoubleOption = @double;
DuplicatePropertyName2Option = duplicatePropertyName2;
DuplicatePropertyNameOption = duplicatePropertyName;
FloatOption = @float; FloatOption = @float;
Int32Option = int32; Int32Option = int32;
Int32RangeOption = int32Range; Int32RangeOption = int32Range;
@ -178,6 +182,32 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("double")] [JsonPropertyName("double")]
public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName2
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string?> DuplicatePropertyName2Option { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[JsonPropertyName("duplicate_property_name")]
public string? DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string?> DuplicatePropertyNameOption { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[JsonPropertyName("@duplicate_property_name")]
public string? DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } }
/// <summary> /// <summary>
/// Used to track the state of Float /// Used to track the state of Float
/// </summary> /// </summary>
@ -426,6 +456,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" DateTime: ").Append(DateTime).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n");
sb.Append(" Decimal: ").Append(Decimal).Append("\n"); sb.Append(" Decimal: ").Append(Decimal).Append("\n");
sb.Append(" Double: ").Append(Double).Append("\n"); sb.Append(" Double: ").Append(Double).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append(" Float: ").Append(Float).Append("\n"); sb.Append(" Float: ").Append(Float).Append("\n");
sb.Append(" Int32: ").Append(Int32).Append("\n"); sb.Append(" Int32: ").Append(Int32).Append("\n");
sb.Append(" Int32Range: ").Append(Int32Range).Append("\n"); sb.Append(" Int32Range: ").Append(Int32Range).Append("\n");
@ -660,6 +692,8 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> dateTime = default; Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default; Option<decimal?> varDecimal = default;
Option<double?> varDouble = default; Option<double?> varDouble = default;
Option<string?> duplicatePropertyName2 = default;
Option<string?> duplicatePropertyName = default;
Option<float?> varFloat = default; Option<float?> varFloat = default;
Option<int?> int32 = default; Option<int?> int32 = default;
Option<int?> int32Range = default; Option<int?> int32Range = default;
@ -720,6 +754,12 @@ namespace Org.OpenAPITools.Model
case "double": case "double":
varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble()); varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble());
break; break;
case "duplicate_property_name":
duplicatePropertyName2 = new Option<string?>(utf8JsonReader.GetString()!);
break;
case "@duplicate_property_name":
duplicatePropertyName = new Option<string?>(utf8JsonReader.GetString()!);
break;
case "float": case "float":
varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble()); varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble());
break; break;
@ -819,6 +859,12 @@ namespace Org.OpenAPITools.Model
if (varDouble.IsSet && varDouble.Value == null) if (varDouble.IsSet && varDouble.Value == null)
throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest.");
if (varFloat.IsSet && varFloat.Value == null) if (varFloat.IsSet && varFloat.Value == null)
throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest.");
@ -870,7 +916,7 @@ namespace Org.OpenAPITools.Model
if (uuid.IsSet && uuid.Value == null) if (uuid.IsSet && uuid.Value == null)
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
} }
/// <summary> /// <summary>
@ -906,6 +952,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.BinaryOption.IsSet && formatTest.Binary == null) if (formatTest.BinaryOption.IsSet && formatTest.Binary == null)
throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyName2Option.IsSet && formatTest.DuplicatePropertyName2 == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName2), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyNameOption.IsSet && formatTest.DuplicatePropertyName == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName), "Property is required for class FormatTest.");
if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null) if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null)
throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest.");
@ -944,6 +996,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.DoubleOption.IsSet) if (formatTest.DoubleOption.IsSet)
writer.WriteNumber("double", formatTest.DoubleOption.Value!.Value); writer.WriteNumber("double", formatTest.DoubleOption.Value!.Value);
if (formatTest.DuplicatePropertyName2Option.IsSet)
writer.WriteString("duplicate_property_name", formatTest.DuplicatePropertyName2);
if (formatTest.DuplicatePropertyNameOption.IsSet)
writer.WriteString("@duplicate_property_name", formatTest.DuplicatePropertyName);
if (formatTest.FloatOption.IsSet) if (formatTest.FloatOption.IsSet)
writer.WriteNumber("float", formatTest.FloatOption.Value!.Value); writer.WriteNumber("float", formatTest.FloatOption.Value!.Value);

View File

@ -1726,6 +1726,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -13,6 +13,8 @@ Name | Type | Description | Notes
**DateTime** | **DateTime** | | [optional] **DateTime** | **DateTime** | | [optional]
**Decimal** | **decimal** | | [optional] **Decimal** | **decimal** | | [optional]
**Double** | **double** | | [optional] **Double** | **double** | | [optional]
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
**Float** | **float** | | [optional] **Float** | **float** | | [optional]
**Int32** | **int** | | [optional] **Int32** | **int** | | [optional]
**Int32Range** | **int** | | [optional] **Int32Range** | **int** | | [optional]

View File

@ -134,6 +134,24 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'Double' // TODO unit test for the property 'Double'
} }
/// <summary>
/// Test the property 'DuplicatePropertyName2'
/// </summary>
[Fact]
public void DuplicatePropertyName2Test()
{
// TODO unit test for the property 'DuplicatePropertyName2'
}
/// <summary>
/// Test the property 'DuplicatePropertyName'
/// </summary>
[Fact]
public void DuplicatePropertyNameTest()
{
// TODO unit test for the property 'DuplicatePropertyName'
}
/// <summary> /// <summary>
/// Test the property 'Float' /// Test the property 'Float'
/// </summary> /// </summary>

View File

@ -41,6 +41,8 @@ namespace Org.OpenAPITools.Model
/// <param name="dateTime">dateTime</param> /// <param name="dateTime">dateTime</param>
/// <param name="decimal">decimal</param> /// <param name="decimal">decimal</param>
/// <param name="double">double</param> /// <param name="double">double</param>
/// <param name="duplicatePropertyName2">duplicatePropertyName2</param>
/// <param name="duplicatePropertyName">duplicatePropertyName</param>
/// <param name="float">float</param> /// <param name="float">float</param>
/// <param name="int32">int32</param> /// <param name="int32">int32</param>
/// <param name="int32Range">int32Range</param> /// <param name="int32Range">int32Range</param>
@ -59,7 +61,7 @@ namespace Org.OpenAPITools.Model
/// <param name="unsignedLong">unsignedLong</param> /// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param> /// <param name="uuid">uuid</param>
[JsonConstructor] [JsonConstructor]
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, 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) 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<string> duplicatePropertyName2 = default, Option<string> duplicatePropertyName = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
{ {
Byte = @byte; Byte = @byte;
Date = date; Date = date;
@ -70,6 +72,8 @@ namespace Org.OpenAPITools.Model
DateTimeOption = dateTime; DateTimeOption = dateTime;
DecimalOption = @decimal; DecimalOption = @decimal;
DoubleOption = @double; DoubleOption = @double;
DuplicatePropertyName2Option = duplicatePropertyName2;
DuplicatePropertyNameOption = duplicatePropertyName;
FloatOption = @float; FloatOption = @float;
Int32Option = int32; Int32Option = int32;
Int32RangeOption = int32Range; Int32RangeOption = int32Range;
@ -176,6 +180,32 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("double")] [JsonPropertyName("double")]
public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName2
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyName2Option { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[JsonPropertyName("duplicate_property_name")]
public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyNameOption { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[JsonPropertyName("@duplicate_property_name")]
public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } }
/// <summary> /// <summary>
/// Used to track the state of Float /// Used to track the state of Float
/// </summary> /// </summary>
@ -424,6 +454,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" DateTime: ").Append(DateTime).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n");
sb.Append(" Decimal: ").Append(Decimal).Append("\n"); sb.Append(" Decimal: ").Append(Decimal).Append("\n");
sb.Append(" Double: ").Append(Double).Append("\n"); sb.Append(" Double: ").Append(Double).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append(" Float: ").Append(Float).Append("\n"); sb.Append(" Float: ").Append(Float).Append("\n");
sb.Append(" Int32: ").Append(Int32).Append("\n"); sb.Append(" Int32: ").Append(Int32).Append("\n");
sb.Append(" Int32Range: ").Append(Int32Range).Append("\n"); sb.Append(" Int32Range: ").Append(Int32Range).Append("\n");
@ -658,6 +690,8 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> dateTime = default; Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default; Option<decimal?> varDecimal = default;
Option<double?> varDouble = default; Option<double?> varDouble = default;
Option<string> duplicatePropertyName2 = default;
Option<string> duplicatePropertyName = default;
Option<float?> varFloat = default; Option<float?> varFloat = default;
Option<int?> int32 = default; Option<int?> int32 = default;
Option<int?> int32Range = default; Option<int?> int32Range = default;
@ -718,6 +752,12 @@ namespace Org.OpenAPITools.Model
case "double": case "double":
varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble()); varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble());
break; break;
case "duplicate_property_name":
duplicatePropertyName2 = new Option<string>(utf8JsonReader.GetString());
break;
case "@duplicate_property_name":
duplicatePropertyName = new Option<string>(utf8JsonReader.GetString());
break;
case "float": case "float":
varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble()); varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble());
break; break;
@ -817,6 +857,12 @@ namespace Org.OpenAPITools.Model
if (varDouble.IsSet && varDouble.Value == null) if (varDouble.IsSet && varDouble.Value == null)
throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest.");
if (varFloat.IsSet && varFloat.Value == null) if (varFloat.IsSet && varFloat.Value == null)
throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest.");
@ -868,7 +914,7 @@ namespace Org.OpenAPITools.Model
if (uuid.IsSet && uuid.Value == null) if (uuid.IsSet && uuid.Value == null)
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
} }
/// <summary> /// <summary>
@ -904,6 +950,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.BinaryOption.IsSet && formatTest.Binary == null) if (formatTest.BinaryOption.IsSet && formatTest.Binary == null)
throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyName2Option.IsSet && formatTest.DuplicatePropertyName2 == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName2), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyNameOption.IsSet && formatTest.DuplicatePropertyName == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName), "Property is required for class FormatTest.");
if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null) if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null)
throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest.");
@ -942,6 +994,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.DoubleOption.IsSet) if (formatTest.DoubleOption.IsSet)
writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); writer.WriteNumber("double", formatTest.DoubleOption.Value.Value);
if (formatTest.DuplicatePropertyName2Option.IsSet)
writer.WriteString("duplicate_property_name", formatTest.DuplicatePropertyName2);
if (formatTest.DuplicatePropertyNameOption.IsSet)
writer.WriteString("@duplicate_property_name", formatTest.DuplicatePropertyName);
if (formatTest.FloatOption.IsSet) if (formatTest.FloatOption.IsSet)
writer.WriteNumber("float", formatTest.FloatOption.Value.Value); writer.WriteNumber("float", formatTest.FloatOption.Value.Value);

View File

@ -1726,6 +1726,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -13,6 +13,8 @@ Name | Type | Description | Notes
**DateTime** | **DateTime** | | [optional] **DateTime** | **DateTime** | | [optional]
**Decimal** | **decimal** | | [optional] **Decimal** | **decimal** | | [optional]
**Double** | **double** | | [optional] **Double** | **double** | | [optional]
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
**Float** | **float** | | [optional] **Float** | **float** | | [optional]
**Int32** | **int** | | [optional] **Int32** | **int** | | [optional]
**Int32Range** | **int** | | [optional] **Int32Range** | **int** | | [optional]

View File

@ -134,6 +134,24 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'Double' // TODO unit test for the property 'Double'
} }
/// <summary>
/// Test the property 'DuplicatePropertyName2'
/// </summary>
[Fact]
public void DuplicatePropertyName2Test()
{
// TODO unit test for the property 'DuplicatePropertyName2'
}
/// <summary>
/// Test the property 'DuplicatePropertyName'
/// </summary>
[Fact]
public void DuplicatePropertyNameTest()
{
// TODO unit test for the property 'DuplicatePropertyName'
}
/// <summary> /// <summary>
/// Test the property 'Float' /// Test the property 'Float'
/// </summary> /// </summary>

View File

@ -44,6 +44,8 @@ namespace Org.OpenAPITools.Model
/// <param name="dateTime">dateTime</param> /// <param name="dateTime">dateTime</param>
/// <param name="decimal">decimal</param> /// <param name="decimal">decimal</param>
/// <param name="double">double</param> /// <param name="double">double</param>
/// <param name="duplicatePropertyName2">duplicatePropertyName2</param>
/// <param name="duplicatePropertyName">duplicatePropertyName</param>
/// <param name="float">float</param> /// <param name="float">float</param>
/// <param name="int32">int32</param> /// <param name="int32">int32</param>
/// <param name="int32Range">int32Range</param> /// <param name="int32Range">int32Range</param>
@ -62,7 +64,7 @@ namespace Org.OpenAPITools.Model
/// <param name="unsignedLong">unsignedLong</param> /// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param> /// <param name="uuid">uuid</param>
[JsonConstructor] [JsonConstructor]
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, 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) 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<string?> duplicatePropertyName2 = default, Option<string?> duplicatePropertyName = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string?> patternWithBackslash = default, Option<string?> patternWithDigits = default, Option<string?> patternWithDigitsAndDelimiter = default, Option<string?> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
{ {
Byte = @byte; Byte = @byte;
Date = date; Date = date;
@ -73,6 +75,8 @@ namespace Org.OpenAPITools.Model
DateTimeOption = dateTime; DateTimeOption = dateTime;
DecimalOption = @decimal; DecimalOption = @decimal;
DoubleOption = @double; DoubleOption = @double;
DuplicatePropertyName2Option = duplicatePropertyName2;
DuplicatePropertyNameOption = duplicatePropertyName;
FloatOption = @float; FloatOption = @float;
Int32Option = int32; Int32Option = int32;
Int32RangeOption = int32Range; Int32RangeOption = int32Range;
@ -179,6 +183,32 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("double")] [JsonPropertyName("double")]
public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName2
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string?> DuplicatePropertyName2Option { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[JsonPropertyName("duplicate_property_name")]
public string? DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string?> DuplicatePropertyNameOption { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[JsonPropertyName("@duplicate_property_name")]
public string? DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } }
/// <summary> /// <summary>
/// Used to track the state of Float /// Used to track the state of Float
/// </summary> /// </summary>
@ -427,6 +457,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" DateTime: ").Append(DateTime).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n");
sb.Append(" Decimal: ").Append(Decimal).Append("\n"); sb.Append(" Decimal: ").Append(Decimal).Append("\n");
sb.Append(" Double: ").Append(Double).Append("\n"); sb.Append(" Double: ").Append(Double).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append(" Float: ").Append(Float).Append("\n"); sb.Append(" Float: ").Append(Float).Append("\n");
sb.Append(" Int32: ").Append(Int32).Append("\n"); sb.Append(" Int32: ").Append(Int32).Append("\n");
sb.Append(" Int32Range: ").Append(Int32Range).Append("\n"); sb.Append(" Int32Range: ").Append(Int32Range).Append("\n");
@ -661,6 +693,8 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> dateTime = default; Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default; Option<decimal?> varDecimal = default;
Option<double?> varDouble = default; Option<double?> varDouble = default;
Option<string?> duplicatePropertyName2 = default;
Option<string?> duplicatePropertyName = default;
Option<float?> varFloat = default; Option<float?> varFloat = default;
Option<int?> int32 = default; Option<int?> int32 = default;
Option<int?> int32Range = default; Option<int?> int32Range = default;
@ -721,6 +755,12 @@ namespace Org.OpenAPITools.Model
case "double": case "double":
varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble()); varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble());
break; break;
case "duplicate_property_name":
duplicatePropertyName2 = new Option<string?>(utf8JsonReader.GetString()!);
break;
case "@duplicate_property_name":
duplicatePropertyName = new Option<string?>(utf8JsonReader.GetString()!);
break;
case "float": case "float":
varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble()); varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble());
break; break;
@ -820,6 +860,12 @@ namespace Org.OpenAPITools.Model
if (varDouble.IsSet && varDouble.Value == null) if (varDouble.IsSet && varDouble.Value == null)
throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest.");
if (varFloat.IsSet && varFloat.Value == null) if (varFloat.IsSet && varFloat.Value == null)
throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest.");
@ -871,7 +917,7 @@ namespace Org.OpenAPITools.Model
if (uuid.IsSet && uuid.Value == null) if (uuid.IsSet && uuid.Value == null)
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
} }
/// <summary> /// <summary>
@ -907,6 +953,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.BinaryOption.IsSet && formatTest.Binary == null) if (formatTest.BinaryOption.IsSet && formatTest.Binary == null)
throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyName2Option.IsSet && formatTest.DuplicatePropertyName2 == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName2), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyNameOption.IsSet && formatTest.DuplicatePropertyName == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName), "Property is required for class FormatTest.");
if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null) if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null)
throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest.");
@ -945,6 +997,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.DoubleOption.IsSet) if (formatTest.DoubleOption.IsSet)
writer.WriteNumber("double", formatTest.DoubleOption.Value!.Value); writer.WriteNumber("double", formatTest.DoubleOption.Value!.Value);
if (formatTest.DuplicatePropertyName2Option.IsSet)
writer.WriteString("duplicate_property_name", formatTest.DuplicatePropertyName2);
if (formatTest.DuplicatePropertyNameOption.IsSet)
writer.WriteString("@duplicate_property_name", formatTest.DuplicatePropertyName);
if (formatTest.FloatOption.IsSet) if (formatTest.FloatOption.IsSet)
writer.WriteNumber("float", formatTest.FloatOption.Value!.Value); writer.WriteNumber("float", formatTest.FloatOption.Value!.Value);

View File

@ -1685,6 +1685,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -13,6 +13,8 @@ Name | Type | Description | Notes
**DateTime** | **DateTime** | | [optional] **DateTime** | **DateTime** | | [optional]
**Decimal** | **decimal** | | [optional] **Decimal** | **decimal** | | [optional]
**Double** | **double** | | [optional] **Double** | **double** | | [optional]
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
**Float** | **float** | | [optional] **Float** | **float** | | [optional]
**Int32** | **int** | | [optional] **Int32** | **int** | | [optional]
**Int32Range** | **int** | | [optional] **Int32Range** | **int** | | [optional]

View File

@ -134,6 +134,24 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'Double' // TODO unit test for the property 'Double'
} }
/// <summary>
/// Test the property 'DuplicatePropertyName2'
/// </summary>
[Fact]
public void DuplicatePropertyName2Test()
{
// TODO unit test for the property 'DuplicatePropertyName2'
}
/// <summary>
/// Test the property 'DuplicatePropertyName'
/// </summary>
[Fact]
public void DuplicatePropertyNameTest()
{
// TODO unit test for the property 'DuplicatePropertyName'
}
/// <summary> /// <summary>
/// Test the property 'Float' /// Test the property 'Float'
/// </summary> /// </summary>

View File

@ -41,6 +41,8 @@ namespace Org.OpenAPITools.Model
/// <param name="dateTime">dateTime</param> /// <param name="dateTime">dateTime</param>
/// <param name="decimal">decimal</param> /// <param name="decimal">decimal</param>
/// <param name="double">double</param> /// <param name="double">double</param>
/// <param name="duplicatePropertyName2">duplicatePropertyName2</param>
/// <param name="duplicatePropertyName">duplicatePropertyName</param>
/// <param name="float">float</param> /// <param name="float">float</param>
/// <param name="int32">int32</param> /// <param name="int32">int32</param>
/// <param name="int32Range">int32Range</param> /// <param name="int32Range">int32Range</param>
@ -59,7 +61,7 @@ namespace Org.OpenAPITools.Model
/// <param name="unsignedLong">unsignedLong</param> /// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param> /// <param name="uuid">uuid</param>
[JsonConstructor] [JsonConstructor]
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, 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) 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<string> duplicatePropertyName2 = default, Option<string> duplicatePropertyName = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
{ {
Byte = @byte; Byte = @byte;
Date = date; Date = date;
@ -70,6 +72,8 @@ namespace Org.OpenAPITools.Model
DateTimeOption = dateTime; DateTimeOption = dateTime;
DecimalOption = @decimal; DecimalOption = @decimal;
DoubleOption = @double; DoubleOption = @double;
DuplicatePropertyName2Option = duplicatePropertyName2;
DuplicatePropertyNameOption = duplicatePropertyName;
FloatOption = @float; FloatOption = @float;
Int32Option = int32; Int32Option = int32;
Int32RangeOption = int32Range; Int32RangeOption = int32Range;
@ -176,6 +180,32 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("double")] [JsonPropertyName("double")]
public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName2
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyName2Option { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[JsonPropertyName("duplicate_property_name")]
public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyNameOption { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[JsonPropertyName("@duplicate_property_name")]
public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } }
/// <summary> /// <summary>
/// Used to track the state of Float /// Used to track the state of Float
/// </summary> /// </summary>
@ -424,6 +454,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" DateTime: ").Append(DateTime).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n");
sb.Append(" Decimal: ").Append(Decimal).Append("\n"); sb.Append(" Decimal: ").Append(Decimal).Append("\n");
sb.Append(" Double: ").Append(Double).Append("\n"); sb.Append(" Double: ").Append(Double).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append(" Float: ").Append(Float).Append("\n"); sb.Append(" Float: ").Append(Float).Append("\n");
sb.Append(" Int32: ").Append(Int32).Append("\n"); sb.Append(" Int32: ").Append(Int32).Append("\n");
sb.Append(" Int32Range: ").Append(Int32Range).Append("\n"); sb.Append(" Int32Range: ").Append(Int32Range).Append("\n");
@ -658,6 +690,8 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> dateTime = default; Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default; Option<decimal?> varDecimal = default;
Option<double?> varDouble = default; Option<double?> varDouble = default;
Option<string> duplicatePropertyName2 = default;
Option<string> duplicatePropertyName = default;
Option<float?> varFloat = default; Option<float?> varFloat = default;
Option<int?> int32 = default; Option<int?> int32 = default;
Option<int?> int32Range = default; Option<int?> int32Range = default;
@ -718,6 +752,12 @@ namespace Org.OpenAPITools.Model
case "double": case "double":
varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble()); varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble());
break; break;
case "duplicate_property_name":
duplicatePropertyName2 = new Option<string>(utf8JsonReader.GetString());
break;
case "@duplicate_property_name":
duplicatePropertyName = new Option<string>(utf8JsonReader.GetString());
break;
case "float": case "float":
varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble()); varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble());
break; break;
@ -817,6 +857,12 @@ namespace Org.OpenAPITools.Model
if (varDouble.IsSet && varDouble.Value == null) if (varDouble.IsSet && varDouble.Value == null)
throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest.");
if (varFloat.IsSet && varFloat.Value == null) if (varFloat.IsSet && varFloat.Value == null)
throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest.");
@ -868,7 +914,7 @@ namespace Org.OpenAPITools.Model
if (uuid.IsSet && uuid.Value == null) if (uuid.IsSet && uuid.Value == null)
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
} }
/// <summary> /// <summary>
@ -904,6 +950,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.BinaryOption.IsSet && formatTest.Binary == null) if (formatTest.BinaryOption.IsSet && formatTest.Binary == null)
throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyName2Option.IsSet && formatTest.DuplicatePropertyName2 == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName2), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyNameOption.IsSet && formatTest.DuplicatePropertyName == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName), "Property is required for class FormatTest.");
if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null) if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null)
throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest.");
@ -942,6 +994,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.DoubleOption.IsSet) if (formatTest.DoubleOption.IsSet)
writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); writer.WriteNumber("double", formatTest.DoubleOption.Value.Value);
if (formatTest.DuplicatePropertyName2Option.IsSet)
writer.WriteString("duplicate_property_name", formatTest.DuplicatePropertyName2);
if (formatTest.DuplicatePropertyNameOption.IsSet)
writer.WriteString("@duplicate_property_name", formatTest.DuplicatePropertyName);
if (formatTest.FloatOption.IsSet) if (formatTest.FloatOption.IsSet)
writer.WriteNumber("float", formatTest.FloatOption.Value.Value); writer.WriteNumber("float", formatTest.FloatOption.Value.Value);

View File

@ -1726,6 +1726,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -13,6 +13,8 @@ Name | Type | Description | Notes
**DateTime** | **DateTime** | | [optional] **DateTime** | **DateTime** | | [optional]
**Decimal** | **decimal** | | [optional] **Decimal** | **decimal** | | [optional]
**Double** | **double** | | [optional] **Double** | **double** | | [optional]
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
**Float** | **float** | | [optional] **Float** | **float** | | [optional]
**Int32** | **int** | | [optional] **Int32** | **int** | | [optional]
**Int32Range** | **int** | | [optional] **Int32Range** | **int** | | [optional]

View File

@ -134,6 +134,24 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'Double' // TODO unit test for the property 'Double'
} }
/// <summary>
/// Test the property 'DuplicatePropertyName2'
/// </summary>
[Fact]
public void DuplicatePropertyName2Test()
{
// TODO unit test for the property 'DuplicatePropertyName2'
}
/// <summary>
/// Test the property 'DuplicatePropertyName'
/// </summary>
[Fact]
public void DuplicatePropertyNameTest()
{
// TODO unit test for the property 'DuplicatePropertyName'
}
/// <summary> /// <summary>
/// Test the property 'Float' /// Test the property 'Float'
/// </summary> /// </summary>

View File

@ -43,6 +43,8 @@ namespace Org.OpenAPITools.Model
/// <param name="dateTime">dateTime</param> /// <param name="dateTime">dateTime</param>
/// <param name="decimal">decimal</param> /// <param name="decimal">decimal</param>
/// <param name="double">double</param> /// <param name="double">double</param>
/// <param name="duplicatePropertyName2">duplicatePropertyName2</param>
/// <param name="duplicatePropertyName">duplicatePropertyName</param>
/// <param name="float">float</param> /// <param name="float">float</param>
/// <param name="int32">int32</param> /// <param name="int32">int32</param>
/// <param name="int32Range">int32Range</param> /// <param name="int32Range">int32Range</param>
@ -61,7 +63,7 @@ namespace Org.OpenAPITools.Model
/// <param name="unsignedLong">unsignedLong</param> /// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param> /// <param name="uuid">uuid</param>
[JsonConstructor] [JsonConstructor]
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, 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) 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<string?> duplicatePropertyName2 = default, Option<string?> duplicatePropertyName = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string?> patternWithBackslash = default, Option<string?> patternWithDigits = default, Option<string?> patternWithDigitsAndDelimiter = default, Option<string?> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
{ {
Byte = @byte; Byte = @byte;
Date = date; Date = date;
@ -72,6 +74,8 @@ namespace Org.OpenAPITools.Model
DateTimeOption = dateTime; DateTimeOption = dateTime;
DecimalOption = @decimal; DecimalOption = @decimal;
DoubleOption = @double; DoubleOption = @double;
DuplicatePropertyName2Option = duplicatePropertyName2;
DuplicatePropertyNameOption = duplicatePropertyName;
FloatOption = @float; FloatOption = @float;
Int32Option = int32; Int32Option = int32;
Int32RangeOption = int32Range; Int32RangeOption = int32Range;
@ -178,6 +182,32 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("double")] [JsonPropertyName("double")]
public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName2
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string?> DuplicatePropertyName2Option { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[JsonPropertyName("duplicate_property_name")]
public string? DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string?> DuplicatePropertyNameOption { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[JsonPropertyName("@duplicate_property_name")]
public string? DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } }
/// <summary> /// <summary>
/// Used to track the state of Float /// Used to track the state of Float
/// </summary> /// </summary>
@ -426,6 +456,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" DateTime: ").Append(DateTime).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n");
sb.Append(" Decimal: ").Append(Decimal).Append("\n"); sb.Append(" Decimal: ").Append(Decimal).Append("\n");
sb.Append(" Double: ").Append(Double).Append("\n"); sb.Append(" Double: ").Append(Double).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append(" Float: ").Append(Float).Append("\n"); sb.Append(" Float: ").Append(Float).Append("\n");
sb.Append(" Int32: ").Append(Int32).Append("\n"); sb.Append(" Int32: ").Append(Int32).Append("\n");
sb.Append(" Int32Range: ").Append(Int32Range).Append("\n"); sb.Append(" Int32Range: ").Append(Int32Range).Append("\n");
@ -660,6 +692,8 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> dateTime = default; Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default; Option<decimal?> varDecimal = default;
Option<double?> varDouble = default; Option<double?> varDouble = default;
Option<string?> duplicatePropertyName2 = default;
Option<string?> duplicatePropertyName = default;
Option<float?> varFloat = default; Option<float?> varFloat = default;
Option<int?> int32 = default; Option<int?> int32 = default;
Option<int?> int32Range = default; Option<int?> int32Range = default;
@ -720,6 +754,12 @@ namespace Org.OpenAPITools.Model
case "double": case "double":
varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble()); varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble());
break; break;
case "duplicate_property_name":
duplicatePropertyName2 = new Option<string?>(utf8JsonReader.GetString()!);
break;
case "@duplicate_property_name":
duplicatePropertyName = new Option<string?>(utf8JsonReader.GetString()!);
break;
case "float": case "float":
varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble()); varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble());
break; break;
@ -819,6 +859,12 @@ namespace Org.OpenAPITools.Model
if (varDouble.IsSet && varDouble.Value == null) if (varDouble.IsSet && varDouble.Value == null)
throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest.");
if (varFloat.IsSet && varFloat.Value == null) if (varFloat.IsSet && varFloat.Value == null)
throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest.");
@ -870,7 +916,7 @@ namespace Org.OpenAPITools.Model
if (uuid.IsSet && uuid.Value == null) if (uuid.IsSet && uuid.Value == null)
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
} }
/// <summary> /// <summary>
@ -906,6 +952,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.BinaryOption.IsSet && formatTest.Binary == null) if (formatTest.BinaryOption.IsSet && formatTest.Binary == null)
throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyName2Option.IsSet && formatTest.DuplicatePropertyName2 == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName2), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyNameOption.IsSet && formatTest.DuplicatePropertyName == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName), "Property is required for class FormatTest.");
if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null) if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null)
throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest.");
@ -944,6 +996,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.DoubleOption.IsSet) if (formatTest.DoubleOption.IsSet)
writer.WriteNumber("double", formatTest.DoubleOption.Value!.Value); writer.WriteNumber("double", formatTest.DoubleOption.Value!.Value);
if (formatTest.DuplicatePropertyName2Option.IsSet)
writer.WriteString("duplicate_property_name", formatTest.DuplicatePropertyName2);
if (formatTest.DuplicatePropertyNameOption.IsSet)
writer.WriteString("@duplicate_property_name", formatTest.DuplicatePropertyName);
if (formatTest.FloatOption.IsSet) if (formatTest.FloatOption.IsSet)
writer.WriteNumber("float", formatTest.FloatOption.Value!.Value); writer.WriteNumber("float", formatTest.FloatOption.Value!.Value);

View File

@ -1726,6 +1726,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -13,6 +13,8 @@ Name | Type | Description | Notes
**DateTime** | **DateTime** | | [optional] **DateTime** | **DateTime** | | [optional]
**Decimal** | **decimal** | | [optional] **Decimal** | **decimal** | | [optional]
**Double** | **double** | | [optional] **Double** | **double** | | [optional]
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
**Float** | **float** | | [optional] **Float** | **float** | | [optional]
**Int32** | **int** | | [optional] **Int32** | **int** | | [optional]
**Int32Range** | **int** | | [optional] **Int32Range** | **int** | | [optional]

View File

@ -134,6 +134,24 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'Double' // TODO unit test for the property 'Double'
} }
/// <summary>
/// Test the property 'DuplicatePropertyName2'
/// </summary>
[Fact]
public void DuplicatePropertyName2Test()
{
// TODO unit test for the property 'DuplicatePropertyName2'
}
/// <summary>
/// Test the property 'DuplicatePropertyName'
/// </summary>
[Fact]
public void DuplicatePropertyNameTest()
{
// TODO unit test for the property 'DuplicatePropertyName'
}
/// <summary> /// <summary>
/// Test the property 'Float' /// Test the property 'Float'
/// </summary> /// </summary>

View File

@ -41,6 +41,8 @@ namespace Org.OpenAPITools.Model
/// <param name="dateTime">dateTime</param> /// <param name="dateTime">dateTime</param>
/// <param name="decimal">decimal</param> /// <param name="decimal">decimal</param>
/// <param name="double">double</param> /// <param name="double">double</param>
/// <param name="duplicatePropertyName2">duplicatePropertyName2</param>
/// <param name="duplicatePropertyName">duplicatePropertyName</param>
/// <param name="float">float</param> /// <param name="float">float</param>
/// <param name="int32">int32</param> /// <param name="int32">int32</param>
/// <param name="int32Range">int32Range</param> /// <param name="int32Range">int32Range</param>
@ -59,7 +61,7 @@ namespace Org.OpenAPITools.Model
/// <param name="unsignedLong">unsignedLong</param> /// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param> /// <param name="uuid">uuid</param>
[JsonConstructor] [JsonConstructor]
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, 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) 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<string> duplicatePropertyName2 = default, Option<string> duplicatePropertyName = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
{ {
Byte = @byte; Byte = @byte;
Date = date; Date = date;
@ -70,6 +72,8 @@ namespace Org.OpenAPITools.Model
DateTimeOption = dateTime; DateTimeOption = dateTime;
DecimalOption = @decimal; DecimalOption = @decimal;
DoubleOption = @double; DoubleOption = @double;
DuplicatePropertyName2Option = duplicatePropertyName2;
DuplicatePropertyNameOption = duplicatePropertyName;
FloatOption = @float; FloatOption = @float;
Int32Option = int32; Int32Option = int32;
Int32RangeOption = int32Range; Int32RangeOption = int32Range;
@ -176,6 +180,32 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("double")] [JsonPropertyName("double")]
public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName2
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyName2Option { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[JsonPropertyName("duplicate_property_name")]
public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyNameOption { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[JsonPropertyName("@duplicate_property_name")]
public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } }
/// <summary> /// <summary>
/// Used to track the state of Float /// Used to track the state of Float
/// </summary> /// </summary>
@ -424,6 +454,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" DateTime: ").Append(DateTime).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n");
sb.Append(" Decimal: ").Append(Decimal).Append("\n"); sb.Append(" Decimal: ").Append(Decimal).Append("\n");
sb.Append(" Double: ").Append(Double).Append("\n"); sb.Append(" Double: ").Append(Double).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append(" Float: ").Append(Float).Append("\n"); sb.Append(" Float: ").Append(Float).Append("\n");
sb.Append(" Int32: ").Append(Int32).Append("\n"); sb.Append(" Int32: ").Append(Int32).Append("\n");
sb.Append(" Int32Range: ").Append(Int32Range).Append("\n"); sb.Append(" Int32Range: ").Append(Int32Range).Append("\n");
@ -658,6 +690,8 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> dateTime = default; Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default; Option<decimal?> varDecimal = default;
Option<double?> varDouble = default; Option<double?> varDouble = default;
Option<string> duplicatePropertyName2 = default;
Option<string> duplicatePropertyName = default;
Option<float?> varFloat = default; Option<float?> varFloat = default;
Option<int?> int32 = default; Option<int?> int32 = default;
Option<int?> int32Range = default; Option<int?> int32Range = default;
@ -718,6 +752,12 @@ namespace Org.OpenAPITools.Model
case "double": case "double":
varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble()); varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble());
break; break;
case "duplicate_property_name":
duplicatePropertyName2 = new Option<string>(utf8JsonReader.GetString());
break;
case "@duplicate_property_name":
duplicatePropertyName = new Option<string>(utf8JsonReader.GetString());
break;
case "float": case "float":
varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble()); varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble());
break; break;
@ -817,6 +857,12 @@ namespace Org.OpenAPITools.Model
if (varDouble.IsSet && varDouble.Value == null) if (varDouble.IsSet && varDouble.Value == null)
throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest.");
if (varFloat.IsSet && varFloat.Value == null) if (varFloat.IsSet && varFloat.Value == null)
throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest.");
@ -868,7 +914,7 @@ namespace Org.OpenAPITools.Model
if (uuid.IsSet && uuid.Value == null) if (uuid.IsSet && uuid.Value == null)
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
} }
/// <summary> /// <summary>
@ -904,6 +950,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.BinaryOption.IsSet && formatTest.Binary == null) if (formatTest.BinaryOption.IsSet && formatTest.Binary == null)
throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyName2Option.IsSet && formatTest.DuplicatePropertyName2 == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName2), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyNameOption.IsSet && formatTest.DuplicatePropertyName == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName), "Property is required for class FormatTest.");
if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null) if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null)
throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest.");
@ -942,6 +994,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.DoubleOption.IsSet) if (formatTest.DoubleOption.IsSet)
writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); writer.WriteNumber("double", formatTest.DoubleOption.Value.Value);
if (formatTest.DuplicatePropertyName2Option.IsSet)
writer.WriteString("duplicate_property_name", formatTest.DuplicatePropertyName2);
if (formatTest.DuplicatePropertyNameOption.IsSet)
writer.WriteString("@duplicate_property_name", formatTest.DuplicatePropertyName);
if (formatTest.FloatOption.IsSet) if (formatTest.FloatOption.IsSet)
writer.WriteNumber("float", formatTest.FloatOption.Value.Value); writer.WriteNumber("float", formatTest.FloatOption.Value.Value);

View File

@ -1726,6 +1726,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -13,6 +13,8 @@ Name | Type | Description | Notes
**DateTime** | **DateTime** | | [optional] **DateTime** | **DateTime** | | [optional]
**Decimal** | **decimal** | | [optional] **Decimal** | **decimal** | | [optional]
**Double** | **double** | | [optional] **Double** | **double** | | [optional]
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
**Float** | **float** | | [optional] **Float** | **float** | | [optional]
**Int32** | **int** | | [optional] **Int32** | **int** | | [optional]
**Int32Range** | **int** | | [optional] **Int32Range** | **int** | | [optional]

View File

@ -134,6 +134,24 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'Double' // TODO unit test for the property 'Double'
} }
/// <summary>
/// Test the property 'DuplicatePropertyName2'
/// </summary>
[Fact]
public void DuplicatePropertyName2Test()
{
// TODO unit test for the property 'DuplicatePropertyName2'
}
/// <summary>
/// Test the property 'DuplicatePropertyName'
/// </summary>
[Fact]
public void DuplicatePropertyNameTest()
{
// TODO unit test for the property 'DuplicatePropertyName'
}
/// <summary> /// <summary>
/// Test the property 'Float' /// Test the property 'Float'
/// </summary> /// </summary>

View File

@ -44,6 +44,8 @@ namespace Org.OpenAPITools.Model
/// <param name="dateTime">dateTime</param> /// <param name="dateTime">dateTime</param>
/// <param name="decimal">decimal</param> /// <param name="decimal">decimal</param>
/// <param name="double">double</param> /// <param name="double">double</param>
/// <param name="duplicatePropertyName2">duplicatePropertyName2</param>
/// <param name="duplicatePropertyName">duplicatePropertyName</param>
/// <param name="float">float</param> /// <param name="float">float</param>
/// <param name="int32">int32</param> /// <param name="int32">int32</param>
/// <param name="int32Range">int32Range</param> /// <param name="int32Range">int32Range</param>
@ -62,7 +64,7 @@ namespace Org.OpenAPITools.Model
/// <param name="unsignedLong">unsignedLong</param> /// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param> /// <param name="uuid">uuid</param>
[JsonConstructor] [JsonConstructor]
public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, 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) 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<string?> duplicatePropertyName2 = default, Option<string?> duplicatePropertyName = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string?> patternWithBackslash = default, Option<string?> patternWithDigits = default, Option<string?> patternWithDigitsAndDelimiter = default, Option<string?> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
{ {
Byte = @byte; Byte = @byte;
Date = date; Date = date;
@ -73,6 +75,8 @@ namespace Org.OpenAPITools.Model
DateTimeOption = dateTime; DateTimeOption = dateTime;
DecimalOption = @decimal; DecimalOption = @decimal;
DoubleOption = @double; DoubleOption = @double;
DuplicatePropertyName2Option = duplicatePropertyName2;
DuplicatePropertyNameOption = duplicatePropertyName;
FloatOption = @float; FloatOption = @float;
Int32Option = int32; Int32Option = int32;
Int32RangeOption = int32Range; Int32RangeOption = int32Range;
@ -179,6 +183,32 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("double")] [JsonPropertyName("double")]
public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName2
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string?> DuplicatePropertyName2Option { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[JsonPropertyName("duplicate_property_name")]
public string? DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string?> DuplicatePropertyNameOption { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[JsonPropertyName("@duplicate_property_name")]
public string? DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } }
/// <summary> /// <summary>
/// Used to track the state of Float /// Used to track the state of Float
/// </summary> /// </summary>
@ -427,6 +457,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" DateTime: ").Append(DateTime).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n");
sb.Append(" Decimal: ").Append(Decimal).Append("\n"); sb.Append(" Decimal: ").Append(Decimal).Append("\n");
sb.Append(" Double: ").Append(Double).Append("\n"); sb.Append(" Double: ").Append(Double).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append(" Float: ").Append(Float).Append("\n"); sb.Append(" Float: ").Append(Float).Append("\n");
sb.Append(" Int32: ").Append(Int32).Append("\n"); sb.Append(" Int32: ").Append(Int32).Append("\n");
sb.Append(" Int32Range: ").Append(Int32Range).Append("\n"); sb.Append(" Int32Range: ").Append(Int32Range).Append("\n");
@ -661,6 +693,8 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> dateTime = default; Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default; Option<decimal?> varDecimal = default;
Option<double?> varDouble = default; Option<double?> varDouble = default;
Option<string?> duplicatePropertyName2 = default;
Option<string?> duplicatePropertyName = default;
Option<float?> varFloat = default; Option<float?> varFloat = default;
Option<int?> int32 = default; Option<int?> int32 = default;
Option<int?> int32Range = default; Option<int?> int32Range = default;
@ -721,6 +755,12 @@ namespace Org.OpenAPITools.Model
case "double": case "double":
varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble()); varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble());
break; break;
case "duplicate_property_name":
duplicatePropertyName2 = new Option<string?>(utf8JsonReader.GetString()!);
break;
case "@duplicate_property_name":
duplicatePropertyName = new Option<string?>(utf8JsonReader.GetString()!);
break;
case "float": case "float":
varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble()); varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble());
break; break;
@ -820,6 +860,12 @@ namespace Org.OpenAPITools.Model
if (varDouble.IsSet && varDouble.Value == null) if (varDouble.IsSet && varDouble.Value == null)
throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest.");
if (varFloat.IsSet && varFloat.Value == null) if (varFloat.IsSet && varFloat.Value == null)
throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest.");
@ -871,7 +917,7 @@ namespace Org.OpenAPITools.Model
if (uuid.IsSet && uuid.Value == null) if (uuid.IsSet && uuid.Value == null)
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
} }
/// <summary> /// <summary>
@ -907,6 +953,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.BinaryOption.IsSet && formatTest.Binary == null) if (formatTest.BinaryOption.IsSet && formatTest.Binary == null)
throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyName2Option.IsSet && formatTest.DuplicatePropertyName2 == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName2), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyNameOption.IsSet && formatTest.DuplicatePropertyName == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName), "Property is required for class FormatTest.");
if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null) if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null)
throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest.");
@ -945,6 +997,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.DoubleOption.IsSet) if (formatTest.DoubleOption.IsSet)
writer.WriteNumber("double", formatTest.DoubleOption.Value!.Value); writer.WriteNumber("double", formatTest.DoubleOption.Value!.Value);
if (formatTest.DuplicatePropertyName2Option.IsSet)
writer.WriteString("duplicate_property_name", formatTest.DuplicatePropertyName2);
if (formatTest.DuplicatePropertyNameOption.IsSet)
writer.WriteString("@duplicate_property_name", formatTest.DuplicatePropertyName);
if (formatTest.FloatOption.IsSet) if (formatTest.FloatOption.IsSet)
writer.WriteNumber("float", formatTest.FloatOption.Value!.Value); writer.WriteNumber("float", formatTest.FloatOption.Value!.Value);

View File

@ -1726,6 +1726,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -13,6 +13,8 @@ Name | Type | Description | Notes
**DateTime** | **DateTime** | | [optional] **DateTime** | **DateTime** | | [optional]
**Decimal** | **decimal** | | [optional] **Decimal** | **decimal** | | [optional]
**Double** | **double** | | [optional] **Double** | **double** | | [optional]
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
**Float** | **float** | | [optional] **Float** | **float** | | [optional]
**Int32** | **int** | | [optional] **Int32** | **int** | | [optional]
**Int32Range** | **int** | | [optional] **Int32Range** | **int** | | [optional]

View File

@ -134,6 +134,24 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'Double' // TODO unit test for the property 'Double'
} }
/// <summary>
/// Test the property 'DuplicatePropertyName2'
/// </summary>
[Fact]
public void DuplicatePropertyName2Test()
{
// TODO unit test for the property 'DuplicatePropertyName2'
}
/// <summary>
/// Test the property 'DuplicatePropertyName'
/// </summary>
[Fact]
public void DuplicatePropertyNameTest()
{
// TODO unit test for the property 'DuplicatePropertyName'
}
/// <summary> /// <summary>
/// Test the property 'Float' /// Test the property 'Float'
/// </summary> /// </summary>

View File

@ -41,6 +41,8 @@ namespace Org.OpenAPITools.Model
/// <param name="dateTime">dateTime</param> /// <param name="dateTime">dateTime</param>
/// <param name="decimal">decimal</param> /// <param name="decimal">decimal</param>
/// <param name="double">double</param> /// <param name="double">double</param>
/// <param name="duplicatePropertyName2">duplicatePropertyName2</param>
/// <param name="duplicatePropertyName">duplicatePropertyName</param>
/// <param name="float">float</param> /// <param name="float">float</param>
/// <param name="int32">int32</param> /// <param name="int32">int32</param>
/// <param name="int32Range">int32Range</param> /// <param name="int32Range">int32Range</param>
@ -59,7 +61,7 @@ namespace Org.OpenAPITools.Model
/// <param name="unsignedLong">unsignedLong</param> /// <param name="unsignedLong">unsignedLong</param>
/// <param name="uuid">uuid</param> /// <param name="uuid">uuid</param>
[JsonConstructor] [JsonConstructor]
public FormatTest(byte[] @byte, DateTime date, decimal number, string password, 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) 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<string> duplicatePropertyName2 = default, Option<string> duplicatePropertyName = default, Option<float?> @float = default, Option<int?> int32 = default, Option<int?> int32Range = default, Option<long?> int64 = default, Option<long?> int64Negative = default, Option<long?> int64NegativeExclusive = default, Option<long?> int64Positive = default, Option<long?> int64PositiveExclusive = default, Option<int?> integer = default, Option<string> patternWithBackslash = default, Option<string> patternWithDigits = default, Option<string> patternWithDigitsAndDelimiter = default, Option<string> @string = default, Option<decimal?> stringFormattedAsDecimal = default, Option<uint?> unsignedInteger = default, Option<ulong?> unsignedLong = default, Option<Guid?> uuid = default)
{ {
Byte = @byte; Byte = @byte;
Date = date; Date = date;
@ -70,6 +72,8 @@ namespace Org.OpenAPITools.Model
DateTimeOption = dateTime; DateTimeOption = dateTime;
DecimalOption = @decimal; DecimalOption = @decimal;
DoubleOption = @double; DoubleOption = @double;
DuplicatePropertyName2Option = duplicatePropertyName2;
DuplicatePropertyNameOption = duplicatePropertyName;
FloatOption = @float; FloatOption = @float;
Int32Option = int32; Int32Option = int32;
Int32RangeOption = int32Range; Int32RangeOption = int32Range;
@ -176,6 +180,32 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("double")] [JsonPropertyName("double")]
public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new Option<double?>(value); } } public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new Option<double?>(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName2
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyName2Option { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[JsonPropertyName("duplicate_property_name")]
public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new Option<string>(value); } }
/// <summary>
/// Used to track the state of DuplicatePropertyName
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> DuplicatePropertyNameOption { get; private set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[JsonPropertyName("@duplicate_property_name")]
public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new Option<string>(value); } }
/// <summary> /// <summary>
/// Used to track the state of Float /// Used to track the state of Float
/// </summary> /// </summary>
@ -424,6 +454,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" DateTime: ").Append(DateTime).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n");
sb.Append(" Decimal: ").Append(Decimal).Append("\n"); sb.Append(" Decimal: ").Append(Decimal).Append("\n");
sb.Append(" Double: ").Append(Double).Append("\n"); sb.Append(" Double: ").Append(Double).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append(" Float: ").Append(Float).Append("\n"); sb.Append(" Float: ").Append(Float).Append("\n");
sb.Append(" Int32: ").Append(Int32).Append("\n"); sb.Append(" Int32: ").Append(Int32).Append("\n");
sb.Append(" Int32Range: ").Append(Int32Range).Append("\n"); sb.Append(" Int32Range: ").Append(Int32Range).Append("\n");
@ -658,6 +690,8 @@ namespace Org.OpenAPITools.Model
Option<DateTime?> dateTime = default; Option<DateTime?> dateTime = default;
Option<decimal?> varDecimal = default; Option<decimal?> varDecimal = default;
Option<double?> varDouble = default; Option<double?> varDouble = default;
Option<string> duplicatePropertyName2 = default;
Option<string> duplicatePropertyName = default;
Option<float?> varFloat = default; Option<float?> varFloat = default;
Option<int?> int32 = default; Option<int?> int32 = default;
Option<int?> int32Range = default; Option<int?> int32Range = default;
@ -718,6 +752,12 @@ namespace Org.OpenAPITools.Model
case "double": case "double":
varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble()); varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble());
break; break;
case "duplicate_property_name":
duplicatePropertyName2 = new Option<string>(utf8JsonReader.GetString());
break;
case "@duplicate_property_name":
duplicatePropertyName = new Option<string>(utf8JsonReader.GetString());
break;
case "float": case "float":
varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble()); varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble());
break; break;
@ -817,6 +857,12 @@ namespace Org.OpenAPITools.Model
if (varDouble.IsSet && varDouble.Value == null) if (varDouble.IsSet && varDouble.Value == null)
throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest.");
if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null)
throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest.");
if (varFloat.IsSet && varFloat.Value == null) if (varFloat.IsSet && varFloat.Value == null)
throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest.");
@ -868,7 +914,7 @@ namespace Org.OpenAPITools.Model
if (uuid.IsSet && uuid.Value == null) if (uuid.IsSet && uuid.Value == null)
throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest.");
return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid);
} }
/// <summary> /// <summary>
@ -904,6 +950,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.BinaryOption.IsSet && formatTest.Binary == null) if (formatTest.BinaryOption.IsSet && formatTest.Binary == null)
throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.Binary), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyName2Option.IsSet && formatTest.DuplicatePropertyName2 == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName2), "Property is required for class FormatTest.");
if (formatTest.DuplicatePropertyNameOption.IsSet && formatTest.DuplicatePropertyName == null)
throw new ArgumentNullException(nameof(formatTest.DuplicatePropertyName), "Property is required for class FormatTest.");
if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null) if (formatTest.PatternWithBackslashOption.IsSet && formatTest.PatternWithBackslash == null)
throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest."); throw new ArgumentNullException(nameof(formatTest.PatternWithBackslash), "Property is required for class FormatTest.");
@ -942,6 +994,12 @@ namespace Org.OpenAPITools.Model
if (formatTest.DoubleOption.IsSet) if (formatTest.DoubleOption.IsSet)
writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); writer.WriteNumber("double", formatTest.DoubleOption.Value.Value);
if (formatTest.DuplicatePropertyName2Option.IsSet)
writer.WriteString("duplicate_property_name", formatTest.DuplicatePropertyName2);
if (formatTest.DuplicatePropertyNameOption.IsSet)
writer.WriteString("@duplicate_property_name", formatTest.DuplicatePropertyName);
if (formatTest.FloatOption.IsSet) if (formatTest.FloatOption.IsSet)
writer.WriteNumber("float", formatTest.FloatOption.Value.Value); writer.WriteNumber("float", formatTest.FloatOption.Value.Value);

View File

@ -1726,6 +1726,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -30,6 +30,8 @@ Name | Type | Description | Notes
**PatternWithBackslash** | **string** | None | [optional] **PatternWithBackslash** | **string** | None | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional] **StringFormattedAsDecimal** | **decimal** | | [optional]
**StringFormattedAsDecimalRequired** | **decimal** | | **StringFormattedAsDecimalRequired** | **decimal** | |
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[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

@ -70,7 +70,9 @@ namespace Org.OpenAPITools.Model
/// <param name="patternWithBackslash">None.</param> /// <param name="patternWithBackslash">None.</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param> /// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param> /// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param>
public FormatTest(int integer = default, int int32 = default, int int32Range = default, int int64Positive = default, int int64Negative = default, int int64PositiveExclusive = default, int int64NegativeExclusive = default, uint unsignedInteger = default, long int64 = default, ulong unsignedLong = default, decimal number = default, float varFloat = default, double varDouble = default, decimal varDecimal = default, string varString = default, byte[] varByte = default, FileParameter binary = default, DateOnly date = default, DateTime dateTime = default, Guid uuid = default, string password = default, string patternWithDigits = default, string patternWithDigitsAndDelimiter = default, string patternWithBackslash = default, decimal stringFormattedAsDecimal = default, decimal stringFormattedAsDecimalRequired = default) /// <param name="duplicatePropertyName2">duplicatePropertyName2.</param>
/// <param name="duplicatePropertyName">duplicatePropertyName.</param>
public FormatTest(int integer = default, int int32 = default, int int32Range = default, int int64Positive = default, int int64Negative = default, int int64PositiveExclusive = default, int int64NegativeExclusive = default, uint unsignedInteger = default, long int64 = default, ulong unsignedLong = default, decimal number = default, float varFloat = default, double varDouble = default, decimal varDecimal = default, string varString = default, byte[] varByte = default, FileParameter binary = default, DateOnly date = default, DateTime dateTime = default, Guid uuid = default, string password = default, string patternWithDigits = default, string patternWithDigitsAndDelimiter = default, string patternWithBackslash = default, decimal stringFormattedAsDecimal = default, decimal stringFormattedAsDecimalRequired = default, string duplicatePropertyName2 = default, string duplicatePropertyName = default)
{ {
this.Number = number; this.Number = number;
// to ensure "varByte" is required (not null) // to ensure "varByte" is required (not null)
@ -108,6 +110,8 @@ namespace Org.OpenAPITools.Model
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
this.PatternWithBackslash = patternWithBackslash; this.PatternWithBackslash = patternWithBackslash;
this.StringFormattedAsDecimal = stringFormattedAsDecimal; this.StringFormattedAsDecimal = stringFormattedAsDecimal;
this.DuplicatePropertyName2 = duplicatePropertyName2;
this.DuplicatePropertyName = duplicatePropertyName;
this.AdditionalProperties = new Dictionary<string, object>(); this.AdditionalProperties = new Dictionary<string, object>();
} }
@ -279,6 +283,18 @@ namespace Org.OpenAPITools.Model
[DataMember(Name = "string_formatted_as_decimal_required", IsRequired = true, EmitDefaultValue = true)] [DataMember(Name = "string_formatted_as_decimal_required", IsRequired = true, EmitDefaultValue = true)]
public decimal StringFormattedAsDecimalRequired { get; set; } public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[DataMember(Name = "duplicate_property_name", EmitDefaultValue = false)]
public string DuplicatePropertyName2 { get; set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[DataMember(Name = "@duplicate_property_name", EmitDefaultValue = false)]
public string DuplicatePropertyName { get; set; }
/// <summary> /// <summary>
/// Gets or Sets additional properties /// Gets or Sets additional properties
/// </summary> /// </summary>
@ -319,6 +335,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n"); sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n"); sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n"); sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
sb.Append("}\n"); sb.Append("}\n");
return sb.ToString(); return sb.ToString();
@ -418,6 +436,14 @@ namespace Org.OpenAPITools.Model
} }
hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode(); hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode(); hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
if (this.DuplicatePropertyName2 != null)
{
hashCode = (hashCode * 59) + this.DuplicatePropertyName2.GetHashCode();
}
if (this.DuplicatePropertyName != null)
{
hashCode = (hashCode * 59) + this.DuplicatePropertyName.GetHashCode();
}
if (this.AdditionalProperties != null) if (this.AdditionalProperties != null)
{ {
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();

View File

@ -1726,6 +1726,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -30,6 +30,8 @@ Name | Type | Description | Notes
**PatternWithBackslash** | **string** | None | [optional] **PatternWithBackslash** | **string** | None | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional] **StringFormattedAsDecimal** | **decimal** | | [optional]
**StringFormattedAsDecimalRequired** | **decimal** | | **StringFormattedAsDecimalRequired** | **decimal** | |
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[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

@ -70,7 +70,9 @@ namespace Org.OpenAPITools.Model
/// <param name="patternWithBackslash">None.</param> /// <param name="patternWithBackslash">None.</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param> /// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param> /// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param>
public FormatTest(int integer = default, int int32 = default, int int32Range = default, int int64Positive = default, int int64Negative = default, int int64PositiveExclusive = default, int int64NegativeExclusive = default, uint unsignedInteger = default, long int64 = default, ulong unsignedLong = default, decimal number = default, float varFloat = default, double varDouble = default, decimal varDecimal = default, string varString = default, byte[] varByte = default, FileParameter binary = default, DateTime date = default, DateTime dateTime = default, Guid uuid = default, string password = default, string patternWithDigits = default, string patternWithDigitsAndDelimiter = default, string patternWithBackslash = default, decimal stringFormattedAsDecimal = default, decimal stringFormattedAsDecimalRequired = default) /// <param name="duplicatePropertyName2">duplicatePropertyName2.</param>
/// <param name="duplicatePropertyName">duplicatePropertyName.</param>
public FormatTest(int integer = default, int int32 = default, int int32Range = default, int int64Positive = default, int int64Negative = default, int int64PositiveExclusive = default, int int64NegativeExclusive = default, uint unsignedInteger = default, long int64 = default, ulong unsignedLong = default, decimal number = default, float varFloat = default, double varDouble = default, decimal varDecimal = default, string varString = default, byte[] varByte = default, FileParameter binary = default, DateTime date = default, DateTime dateTime = default, Guid uuid = default, string password = default, string patternWithDigits = default, string patternWithDigitsAndDelimiter = default, string patternWithBackslash = default, decimal stringFormattedAsDecimal = default, decimal stringFormattedAsDecimalRequired = default, string duplicatePropertyName2 = default, string duplicatePropertyName = default)
{ {
this.Number = number; this.Number = number;
// to ensure "varByte" is required (not null) // to ensure "varByte" is required (not null)
@ -108,6 +110,8 @@ namespace Org.OpenAPITools.Model
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
this.PatternWithBackslash = patternWithBackslash; this.PatternWithBackslash = patternWithBackslash;
this.StringFormattedAsDecimal = stringFormattedAsDecimal; this.StringFormattedAsDecimal = stringFormattedAsDecimal;
this.DuplicatePropertyName2 = duplicatePropertyName2;
this.DuplicatePropertyName = duplicatePropertyName;
this.AdditionalProperties = new Dictionary<string, object>(); this.AdditionalProperties = new Dictionary<string, object>();
} }
@ -280,6 +284,18 @@ namespace Org.OpenAPITools.Model
[DataMember(Name = "string_formatted_as_decimal_required", IsRequired = true, EmitDefaultValue = true)] [DataMember(Name = "string_formatted_as_decimal_required", IsRequired = true, EmitDefaultValue = true)]
public decimal StringFormattedAsDecimalRequired { get; set; } public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[DataMember(Name = "duplicate_property_name", EmitDefaultValue = false)]
public string DuplicatePropertyName2 { get; set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[DataMember(Name = "@duplicate_property_name", EmitDefaultValue = false)]
public string DuplicatePropertyName { get; set; }
/// <summary> /// <summary>
/// Gets or Sets additional properties /// Gets or Sets additional properties
/// </summary> /// </summary>
@ -320,6 +336,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n"); sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n"); sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n"); sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
sb.Append("}\n"); sb.Append("}\n");
return sb.ToString(); return sb.ToString();
@ -419,6 +437,14 @@ namespace Org.OpenAPITools.Model
} }
hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode(); hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode(); hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
if (this.DuplicatePropertyName2 != null)
{
hashCode = (hashCode * 59) + this.DuplicatePropertyName2.GetHashCode();
}
if (this.DuplicatePropertyName != null)
{
hashCode = (hashCode * 59) + this.DuplicatePropertyName.GetHashCode();
}
if (this.AdditionalProperties != null) if (this.AdditionalProperties != null)
{ {
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();

View File

@ -1726,6 +1726,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -30,6 +30,8 @@ Name | Type | Description | Notes
**PatternWithBackslash** | **string** | None | [optional] **PatternWithBackslash** | **string** | None | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional] **StringFormattedAsDecimal** | **decimal** | | [optional]
**StringFormattedAsDecimalRequired** | **decimal** | | **StringFormattedAsDecimalRequired** | **decimal** | |
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[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

@ -66,7 +66,9 @@ namespace Org.OpenAPITools.Model
/// <param name="patternWithBackslash">None.</param> /// <param name="patternWithBackslash">None.</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param> /// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param> /// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param>
public FormatTest(int integer = default, int int32 = default, int int32Range = default, int int64Positive = default, int int64Negative = default, int int64PositiveExclusive = default, int int64NegativeExclusive = default, uint unsignedInteger = default, long int64 = default, ulong unsignedLong = default, decimal number = default, float varFloat = default, double varDouble = default, decimal varDecimal = default, string varString = default, byte[] varByte = default, System.IO.Stream binary = default, DateOnly date = default, DateTime dateTime = default, Guid uuid = default, string password = default, string patternWithDigits = default, string patternWithDigitsAndDelimiter = default, string patternWithBackslash = default, decimal stringFormattedAsDecimal = default, decimal stringFormattedAsDecimalRequired = default) /// <param name="duplicatePropertyName2">duplicatePropertyName2.</param>
/// <param name="duplicatePropertyName">duplicatePropertyName.</param>
public FormatTest(int integer = default, int int32 = default, int int32Range = default, int int64Positive = default, int int64Negative = default, int int64PositiveExclusive = default, int int64NegativeExclusive = default, uint unsignedInteger = default, long int64 = default, ulong unsignedLong = default, decimal number = default, float varFloat = default, double varDouble = default, decimal varDecimal = default, string varString = default, byte[] varByte = default, System.IO.Stream binary = default, DateOnly date = default, DateTime dateTime = default, Guid uuid = default, string password = default, string patternWithDigits = default, string patternWithDigitsAndDelimiter = default, string patternWithBackslash = default, decimal stringFormattedAsDecimal = default, decimal stringFormattedAsDecimalRequired = default, string duplicatePropertyName2 = default, string duplicatePropertyName = default)
{ {
this.Number = number; this.Number = number;
// to ensure "varByte" is required (not null) // to ensure "varByte" is required (not null)
@ -104,6 +106,8 @@ namespace Org.OpenAPITools.Model
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
this.PatternWithBackslash = patternWithBackslash; this.PatternWithBackslash = patternWithBackslash;
this.StringFormattedAsDecimal = stringFormattedAsDecimal; this.StringFormattedAsDecimal = stringFormattedAsDecimal;
this.DuplicatePropertyName2 = duplicatePropertyName2;
this.DuplicatePropertyName = duplicatePropertyName;
} }
/// <summary> /// <summary>
@ -274,6 +278,18 @@ namespace Org.OpenAPITools.Model
[DataMember(Name = "string_formatted_as_decimal_required", IsRequired = true, EmitDefaultValue = true)] [DataMember(Name = "string_formatted_as_decimal_required", IsRequired = true, EmitDefaultValue = true)]
public decimal StringFormattedAsDecimalRequired { get; set; } public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[DataMember(Name = "duplicate_property_name", EmitDefaultValue = false)]
public string DuplicatePropertyName2 { get; set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[DataMember(Name = "@duplicate_property_name", EmitDefaultValue = false)]
public string DuplicatePropertyName { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object
/// </summary> /// </summary>
@ -308,6 +324,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n"); sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n"); sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n"); sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append("}\n"); sb.Append("}\n");
return sb.ToString(); return sb.ToString();
} }
@ -406,6 +424,14 @@ namespace Org.OpenAPITools.Model
} }
hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode(); hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode(); hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
if (this.DuplicatePropertyName2 != null)
{
hashCode = (hashCode * 59) + this.DuplicatePropertyName2.GetHashCode();
}
if (this.DuplicatePropertyName != null)
{
hashCode = (hashCode * 59) + this.DuplicatePropertyName.GetHashCode();
}
return hashCode; return hashCode;
} }
} }

View File

@ -1726,6 +1726,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -30,6 +30,8 @@ Name | Type | Description | Notes
**PatternWithBackslash** | **string** | None | [optional] **PatternWithBackslash** | **string** | None | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional] **StringFormattedAsDecimal** | **decimal** | | [optional]
**StringFormattedAsDecimalRequired** | **decimal** | | **StringFormattedAsDecimalRequired** | **decimal** | |
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[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

@ -69,7 +69,9 @@ namespace Org.OpenAPITools.Model
/// <param name="patternWithBackslash">None.</param> /// <param name="patternWithBackslash">None.</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param> /// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param> /// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param>
public FormatTest(int integer = default, int int32 = default, int int32Range = default, int int64Positive = default, int int64Negative = default, int int64PositiveExclusive = default, int int64NegativeExclusive = default, uint unsignedInteger = default, long int64 = default, ulong unsignedLong = default, decimal number = default, float varFloat = default, double varDouble = default, decimal varDecimal = default, string varString = default, byte[] varByte = default, System.IO.Stream binary = default, DateTime date = default, DateTime dateTime = default, Guid uuid = default, string password = default, string patternWithDigits = default, string patternWithDigitsAndDelimiter = default, string patternWithBackslash = default, decimal stringFormattedAsDecimal = default, decimal stringFormattedAsDecimalRequired = default) /// <param name="duplicatePropertyName2">duplicatePropertyName2.</param>
/// <param name="duplicatePropertyName">duplicatePropertyName.</param>
public FormatTest(int integer = default, int int32 = default, int int32Range = default, int int64Positive = default, int int64Negative = default, int int64PositiveExclusive = default, int int64NegativeExclusive = default, uint unsignedInteger = default, long int64 = default, ulong unsignedLong = default, decimal number = default, float varFloat = default, double varDouble = default, decimal varDecimal = default, string varString = default, byte[] varByte = default, System.IO.Stream binary = default, DateTime date = default, DateTime dateTime = default, Guid uuid = default, string password = default, string patternWithDigits = default, string patternWithDigitsAndDelimiter = default, string patternWithBackslash = default, decimal stringFormattedAsDecimal = default, decimal stringFormattedAsDecimalRequired = default, string duplicatePropertyName2 = default, string duplicatePropertyName = default)
{ {
this._Number = number; this._Number = number;
// to ensure "varByte" is required (not null) // to ensure "varByte" is required (not null)
@ -191,6 +193,16 @@ namespace Org.OpenAPITools.Model
{ {
this._flagStringFormattedAsDecimal = true; this._flagStringFormattedAsDecimal = true;
} }
this._DuplicatePropertyName2 = duplicatePropertyName2;
if (this.DuplicatePropertyName2 != null)
{
this._flagDuplicatePropertyName2 = true;
}
this._DuplicatePropertyName = duplicatePropertyName;
if (this.DuplicatePropertyName != null)
{
this._flagDuplicatePropertyName = true;
}
this.AdditionalProperties = new Dictionary<string, object>(); this.AdditionalProperties = new Dictionary<string, object>();
} }
@ -832,6 +844,54 @@ namespace Org.OpenAPITools.Model
return _flagStringFormattedAsDecimalRequired; return _flagStringFormattedAsDecimalRequired;
} }
/// <summary> /// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[DataMember(Name = "duplicate_property_name", EmitDefaultValue = false)]
public string DuplicatePropertyName2
{
get{ return _DuplicatePropertyName2;}
set
{
_DuplicatePropertyName2 = value;
_flagDuplicatePropertyName2 = true;
}
}
private string _DuplicatePropertyName2;
private bool _flagDuplicatePropertyName2;
/// <summary>
/// Returns false as DuplicatePropertyName2 should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeDuplicatePropertyName2()
{
return _flagDuplicatePropertyName2;
}
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[DataMember(Name = "@duplicate_property_name", EmitDefaultValue = false)]
public string DuplicatePropertyName
{
get{ return _DuplicatePropertyName;}
set
{
_DuplicatePropertyName = value;
_flagDuplicatePropertyName = true;
}
}
private string _DuplicatePropertyName;
private bool _flagDuplicatePropertyName;
/// <summary>
/// Returns false as DuplicatePropertyName should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeDuplicatePropertyName()
{
return _flagDuplicatePropertyName;
}
/// <summary>
/// Gets or Sets additional properties /// Gets or Sets additional properties
/// </summary> /// </summary>
[JsonExtensionData] [JsonExtensionData]
@ -871,6 +931,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n"); sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n"); sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n"); sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
sb.Append("}\n"); sb.Append("}\n");
return sb.ToString(); return sb.ToString();
@ -970,6 +1032,14 @@ namespace Org.OpenAPITools.Model
} }
hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode(); hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode(); hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
if (this.DuplicatePropertyName2 != null)
{
hashCode = (hashCode * 59) + this.DuplicatePropertyName2.GetHashCode();
}
if (this.DuplicatePropertyName != null)
{
hashCode = (hashCode * 59) + this.DuplicatePropertyName.GetHashCode();
}
if (this.AdditionalProperties != null) if (this.AdditionalProperties != null)
{ {
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();

View File

@ -1726,6 +1726,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -30,6 +30,8 @@ Name | Type | Description | Notes
**PatternWithBackslash** | **string** | None | [optional] **PatternWithBackslash** | **string** | None | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional] **StringFormattedAsDecimal** | **decimal** | | [optional]
**StringFormattedAsDecimalRequired** | **decimal** | | **StringFormattedAsDecimalRequired** | **decimal** | |
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[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="patternWithBackslash">None.</param> /// <param name="patternWithBackslash">None.</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param> /// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param> /// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param>
public FormatTest(int integer = default, int int32 = default, int int32Range = default, int int64Positive = default, int int64Negative = default, int int64PositiveExclusive = default, int int64NegativeExclusive = default, uint unsignedInteger = default, long int64 = default, ulong unsignedLong = default, decimal number = default, float varFloat = default, double varDouble = default, decimal varDecimal = default, string varString = default, byte[] varByte = default, System.IO.Stream binary = default, DateOnly date = default, DateTime dateTime = default, Guid uuid = default, string password = default, string patternWithDigits = default, string patternWithDigitsAndDelimiter = default, string patternWithBackslash = default, decimal stringFormattedAsDecimal = default, decimal stringFormattedAsDecimalRequired = default) /// <param name="duplicatePropertyName2">duplicatePropertyName2.</param>
/// <param name="duplicatePropertyName">duplicatePropertyName.</param>
public FormatTest(int integer = default, int int32 = default, int int32Range = default, int int64Positive = default, int int64Negative = default, int int64PositiveExclusive = default, int int64NegativeExclusive = default, uint unsignedInteger = default, long int64 = default, ulong unsignedLong = default, decimal number = default, float varFloat = default, double varDouble = default, decimal varDecimal = default, string varString = default, byte[] varByte = default, System.IO.Stream binary = default, DateOnly date = default, DateTime dateTime = default, Guid uuid = default, string password = default, string patternWithDigits = default, string patternWithDigitsAndDelimiter = default, string patternWithBackslash = default, decimal stringFormattedAsDecimal = default, decimal stringFormattedAsDecimalRequired = default, string duplicatePropertyName2 = default, string duplicatePropertyName = default)
{ {
this.Number = number; this.Number = number;
// to ensure "varByte" is required (not null) // to ensure "varByte" is required (not null)
@ -102,6 +104,8 @@ namespace Org.OpenAPITools.Model
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
this.PatternWithBackslash = patternWithBackslash; this.PatternWithBackslash = patternWithBackslash;
this.StringFormattedAsDecimal = stringFormattedAsDecimal; this.StringFormattedAsDecimal = stringFormattedAsDecimal;
this.DuplicatePropertyName2 = duplicatePropertyName2;
this.DuplicatePropertyName = duplicatePropertyName;
} }
/// <summary> /// <summary>
@ -272,6 +276,18 @@ namespace Org.OpenAPITools.Model
[DataMember(Name = "string_formatted_as_decimal_required", IsRequired = true, EmitDefaultValue = true)] [DataMember(Name = "string_formatted_as_decimal_required", IsRequired = true, EmitDefaultValue = true)]
public decimal StringFormattedAsDecimalRequired { get; set; } public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[DataMember(Name = "duplicate_property_name", EmitDefaultValue = false)]
public string DuplicatePropertyName2 { get; set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[DataMember(Name = "@duplicate_property_name", EmitDefaultValue = false)]
public string DuplicatePropertyName { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object
/// </summary> /// </summary>
@ -306,6 +322,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n"); sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n"); sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n"); sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append("}\n"); sb.Append("}\n");
return sb.ToString(); return sb.ToString();
} }
@ -454,6 +472,16 @@ namespace Org.OpenAPITools.Model
( (
this.StringFormattedAsDecimalRequired == input.StringFormattedAsDecimalRequired || this.StringFormattedAsDecimalRequired == input.StringFormattedAsDecimalRequired ||
this.StringFormattedAsDecimalRequired.Equals(input.StringFormattedAsDecimalRequired) this.StringFormattedAsDecimalRequired.Equals(input.StringFormattedAsDecimalRequired)
) &&
(
this.DuplicatePropertyName2 == input.DuplicatePropertyName2 ||
(this.DuplicatePropertyName2 != null &&
this.DuplicatePropertyName2.Equals(input.DuplicatePropertyName2))
) &&
(
this.DuplicatePropertyName == input.DuplicatePropertyName ||
(this.DuplicatePropertyName != null &&
this.DuplicatePropertyName.Equals(input.DuplicatePropertyName))
); );
} }
@ -522,6 +550,14 @@ namespace Org.OpenAPITools.Model
} }
hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode(); hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode(); hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
if (this.DuplicatePropertyName2 != null)
{
hashCode = (hashCode * 59) + this.DuplicatePropertyName2.GetHashCode();
}
if (this.DuplicatePropertyName != null)
{
hashCode = (hashCode * 59) + this.DuplicatePropertyName.GetHashCode();
}
return hashCode; return hashCode;
} }
} }

View File

@ -1726,6 +1726,10 @@ components:
string_formatted_as_decimal_required: string_formatted_as_decimal_required:
format: decimal format: decimal
type: string type: string
duplicate_property_name:
type: string
'@duplicate_property_name':
type: string
required: required:
- byte - byte
- date - date

View File

@ -30,6 +30,8 @@ Name | Type | Description | Notes
**PatternWithBackslash** | **string** | None | [optional] **PatternWithBackslash** | **string** | None | [optional]
**StringFormattedAsDecimal** | **decimal** | | [optional] **StringFormattedAsDecimal** | **decimal** | | [optional]
**StringFormattedAsDecimalRequired** | **decimal** | | **StringFormattedAsDecimalRequired** | **decimal** | |
**DuplicatePropertyName2** | **string** | | [optional]
**DuplicatePropertyName** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[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="patternWithBackslash">None.</param> /// <param name="patternWithBackslash">None.</param>
/// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param> /// <param name="stringFormattedAsDecimal">stringFormattedAsDecimal.</param>
/// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param> /// <param name="stringFormattedAsDecimalRequired">stringFormattedAsDecimalRequired (required).</param>
public FormatTest(int integer = default, int int32 = default, int int32Range = default, int int64Positive = default, int int64Negative = default, int int64PositiveExclusive = default, int int64NegativeExclusive = default, uint unsignedInteger = default, long int64 = default, ulong unsignedLong = default, decimal number = default, float varFloat = default, double varDouble = default, decimal varDecimal = default, string varString = default, byte[] varByte = default, System.IO.Stream binary = default, DateTime date = default, DateTime dateTime = default, Guid uuid = default, string password = default, string patternWithDigits = default, string patternWithDigitsAndDelimiter = default, string patternWithBackslash = default, decimal stringFormattedAsDecimal = default, decimal stringFormattedAsDecimalRequired = default) /// <param name="duplicatePropertyName2">duplicatePropertyName2.</param>
/// <param name="duplicatePropertyName">duplicatePropertyName.</param>
public FormatTest(int integer = default, int int32 = default, int int32Range = default, int int64Positive = default, int int64Negative = default, int int64PositiveExclusive = default, int int64NegativeExclusive = default, uint unsignedInteger = default, long int64 = default, ulong unsignedLong = default, decimal number = default, float varFloat = default, double varDouble = default, decimal varDecimal = default, string varString = default, byte[] varByte = default, System.IO.Stream binary = default, DateTime date = default, DateTime dateTime = default, Guid uuid = default, string password = default, string patternWithDigits = default, string patternWithDigitsAndDelimiter = default, string patternWithBackslash = default, decimal stringFormattedAsDecimal = default, decimal stringFormattedAsDecimalRequired = default, string duplicatePropertyName2 = default, string duplicatePropertyName = default)
{ {
this.Number = number; this.Number = number;
// to ensure "varByte" is required (not null) // to ensure "varByte" is required (not null)
@ -102,6 +104,8 @@ namespace Org.OpenAPITools.Model
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
this.PatternWithBackslash = patternWithBackslash; this.PatternWithBackslash = patternWithBackslash;
this.StringFormattedAsDecimal = stringFormattedAsDecimal; this.StringFormattedAsDecimal = stringFormattedAsDecimal;
this.DuplicatePropertyName2 = duplicatePropertyName2;
this.DuplicatePropertyName = duplicatePropertyName;
} }
/// <summary> /// <summary>
@ -273,6 +277,18 @@ namespace Org.OpenAPITools.Model
[DataMember(Name = "string_formatted_as_decimal_required", IsRequired = true, EmitDefaultValue = true)] [DataMember(Name = "string_formatted_as_decimal_required", IsRequired = true, EmitDefaultValue = true)]
public decimal StringFormattedAsDecimalRequired { get; set; } public decimal StringFormattedAsDecimalRequired { get; set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName2
/// </summary>
[DataMember(Name = "duplicate_property_name", EmitDefaultValue = false)]
public string DuplicatePropertyName2 { get; set; }
/// <summary>
/// Gets or Sets DuplicatePropertyName
/// </summary>
[DataMember(Name = "@duplicate_property_name", EmitDefaultValue = false)]
public string DuplicatePropertyName { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object
/// </summary> /// </summary>
@ -307,6 +323,8 @@ namespace Org.OpenAPITools.Model
sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n"); sb.Append(" PatternWithBackslash: ").Append(PatternWithBackslash).Append("\n");
sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n"); sb.Append(" StringFormattedAsDecimal: ").Append(StringFormattedAsDecimal).Append("\n");
sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n"); sb.Append(" StringFormattedAsDecimalRequired: ").Append(StringFormattedAsDecimalRequired).Append("\n");
sb.Append(" DuplicatePropertyName2: ").Append(DuplicatePropertyName2).Append("\n");
sb.Append(" DuplicatePropertyName: ").Append(DuplicatePropertyName).Append("\n");
sb.Append("}\n"); sb.Append("}\n");
return sb.ToString(); return sb.ToString();
} }
@ -455,6 +473,16 @@ namespace Org.OpenAPITools.Model
( (
this.StringFormattedAsDecimalRequired == input.StringFormattedAsDecimalRequired || this.StringFormattedAsDecimalRequired == input.StringFormattedAsDecimalRequired ||
this.StringFormattedAsDecimalRequired.Equals(input.StringFormattedAsDecimalRequired) this.StringFormattedAsDecimalRequired.Equals(input.StringFormattedAsDecimalRequired)
) &&
(
this.DuplicatePropertyName2 == input.DuplicatePropertyName2 ||
(this.DuplicatePropertyName2 != null &&
this.DuplicatePropertyName2.Equals(input.DuplicatePropertyName2))
) &&
(
this.DuplicatePropertyName == input.DuplicatePropertyName ||
(this.DuplicatePropertyName != null &&
this.DuplicatePropertyName.Equals(input.DuplicatePropertyName))
); );
} }
@ -523,6 +551,14 @@ namespace Org.OpenAPITools.Model
} }
hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode(); hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode(); hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
if (this.DuplicatePropertyName2 != null)
{
hashCode = (hashCode * 59) + this.DuplicatePropertyName2.GetHashCode();
}
if (this.DuplicatePropertyName != null)
{
hashCode = (hashCode * 59) + this.DuplicatePropertyName.GetHashCode();
}
return hashCode; return hashCode;
} }
} }