forked from loafle/openapi-generator-original
[Default] update isAdditionalPropertiesTrue tag to cover more types (#16227)
* enhance additional properties support * update samples * update tests * add more tests * update samples * fix samples
This commit is contained in:
@@ -61,6 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
this._flagShapes = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -159,6 +160,12 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
return _flagShapes;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -172,6 +179,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
sb.Append(" Shapes: ").Append(Shapes).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -230,6 +238,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Shapes.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,6 +109,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
this._flagObjectItemsNullable = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -400,6 +401,12 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
return _flagObjectItemsNullable;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -421,6 +428,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ObjectNullableProp: ").Append(ObjectNullableProp).Append("\n");
|
||||
sb.Append(" ObjectAndItemsNullableProp: ").Append(ObjectAndItemsNullableProp).Append("\n");
|
||||
sb.Append(" ObjectItemsNullable: ").Append(ObjectItemsNullable).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -511,6 +519,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectItemsNullable.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,6 +73,12 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonPropertyName("shapeOrNull")]
|
||||
public ShapeOrNull? ShapeOrNull { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public Dictionary<string, JsonElement> AdditionalProperties { get; } = new Dictionary<string, JsonElement>();
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -86,6 +92,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" Shapes: ").Append(Shapes).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
@@ -137,6 +137,12 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonPropertyName("string_prop")]
|
||||
public string? StringProp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public Dictionary<string, JsonElement> AdditionalProperties { get; } = new Dictionary<string, JsonElement>();
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -158,6 +164,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ObjectAndItemsNullableProp: ").Append(ObjectAndItemsNullableProp).Append("\n");
|
||||
sb.Append(" ObjectNullableProp: ").Append(ObjectNullableProp).Append("\n");
|
||||
sb.Append(" StringProp: ").Append(StringProp).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
@@ -71,6 +71,12 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonPropertyName("shapeOrNull")]
|
||||
public ShapeOrNull ShapeOrNull { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public Dictionary<string, JsonElement> AdditionalProperties { get; } = new Dictionary<string, JsonElement>();
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -84,6 +90,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" Shapes: ").Append(Shapes).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
@@ -135,6 +135,12 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonPropertyName("string_prop")]
|
||||
public string StringProp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public Dictionary<string, JsonElement> AdditionalProperties { get; } = new Dictionary<string, JsonElement>();
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -156,6 +162,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ObjectAndItemsNullableProp: ").Append(ObjectAndItemsNullableProp).Append("\n");
|
||||
sb.Append(" ObjectNullableProp: ").Append(ObjectNullableProp).Append("\n");
|
||||
sb.Append(" StringProp: ").Append(StringProp).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
@@ -71,6 +71,12 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonPropertyName("shapeOrNull")]
|
||||
public ShapeOrNull ShapeOrNull { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public Dictionary<string, JsonElement> AdditionalProperties { get; } = new Dictionary<string, JsonElement>();
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -84,6 +90,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" Shapes: ").Append(Shapes).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
@@ -135,6 +135,12 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonPropertyName("string_prop")]
|
||||
public string StringProp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public Dictionary<string, JsonElement> AdditionalProperties { get; } = new Dictionary<string, JsonElement>();
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -156,6 +162,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ObjectAndItemsNullableProp: ").Append(ObjectAndItemsNullableProp).Append("\n");
|
||||
sb.Append(" ObjectNullableProp: ").Append(ObjectNullableProp).Append("\n");
|
||||
sb.Append(" StringProp: ").Append(StringProp).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
@@ -46,6 +46,7 @@ namespace Org.OpenAPITools.Model
|
||||
this.ShapeOrNull = shapeOrNull;
|
||||
this.NullableShape = nullableShape;
|
||||
this.Shapes = shapes;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -72,6 +73,12 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "shapes", EmitDefaultValue = false)]
|
||||
public List<Shape> Shapes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -85,6 +92,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
sb.Append(" Shapes: ").Append(Shapes).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -143,6 +151,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Shapes.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,6 +62,7 @@ namespace Org.OpenAPITools.Model
|
||||
this.ObjectNullableProp = objectNullableProp;
|
||||
this.ObjectAndItemsNullableProp = objectAndItemsNullableProp;
|
||||
this.ObjectItemsNullable = objectItemsNullable;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -137,6 +138,12 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "object_items_nullable", EmitDefaultValue = false)]
|
||||
public Dictionary<string, Object> ObjectItemsNullable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -158,6 +165,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ObjectNullableProp: ").Append(ObjectNullableProp).Append("\n");
|
||||
sb.Append(" ObjectAndItemsNullableProp: ").Append(ObjectAndItemsNullableProp).Append("\n");
|
||||
sb.Append(" ObjectItemsNullable: ").Append(ObjectItemsNullable).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -248,6 +256,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectItemsNullable.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace Org.OpenAPITools.Model
|
||||
this.ShapeOrNull = shapeOrNull;
|
||||
this.NullableShape = nullableShape;
|
||||
this.Shapes = shapes;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -71,6 +72,12 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "shapes", EmitDefaultValue = false)]
|
||||
public List<Shape> Shapes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -84,6 +91,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
sb.Append(" Shapes: ").Append(Shapes).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -142,6 +150,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Shapes.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,6 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
this.ObjectNullableProp = objectNullableProp;
|
||||
this.ObjectAndItemsNullableProp = objectAndItemsNullableProp;
|
||||
this.ObjectItemsNullable = objectItemsNullable;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -136,6 +137,12 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "object_items_nullable", EmitDefaultValue = false)]
|
||||
public Dictionary<string, Object> ObjectItemsNullable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -157,6 +164,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ObjectNullableProp: ").Append(ObjectNullableProp).Append("\n");
|
||||
sb.Append(" ObjectAndItemsNullableProp: ").Append(ObjectAndItemsNullableProp).Append("\n");
|
||||
sb.Append(" ObjectItemsNullable: ").Append(ObjectItemsNullable).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -247,6 +255,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectItemsNullable.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace Org.OpenAPITools.Model
|
||||
this.ShapeOrNull = shapeOrNull;
|
||||
this.NullableShape = nullableShape;
|
||||
this.Shapes = shapes;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -71,6 +72,12 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "shapes", EmitDefaultValue = false)]
|
||||
public List<Shape> Shapes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -84,6 +91,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
sb.Append(" Shapes: ").Append(Shapes).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -142,6 +150,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Shapes.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,6 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
this.ObjectNullableProp = objectNullableProp;
|
||||
this.ObjectAndItemsNullableProp = objectAndItemsNullableProp;
|
||||
this.ObjectItemsNullable = objectItemsNullable;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -136,6 +137,12 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "object_items_nullable", EmitDefaultValue = false)]
|
||||
public Dictionary<string, Object> ObjectItemsNullable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -157,6 +164,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ObjectNullableProp: ").Append(ObjectNullableProp).Append("\n");
|
||||
sb.Append(" ObjectAndItemsNullableProp: ").Append(ObjectAndItemsNullableProp).Append("\n");
|
||||
sb.Append(" ObjectItemsNullable: ").Append(ObjectItemsNullable).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -247,6 +255,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectItemsNullable.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace Org.OpenAPITools.Model
|
||||
this.ShapeOrNull = shapeOrNull;
|
||||
this.NullableShape = nullableShape;
|
||||
this.Shapes = shapes;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -71,6 +72,12 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "shapes", EmitDefaultValue = false)]
|
||||
public List<Shape> Shapes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -84,6 +91,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
sb.Append(" Shapes: ").Append(Shapes).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -142,6 +150,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Shapes.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,6 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
this.ObjectNullableProp = objectNullableProp;
|
||||
this.ObjectAndItemsNullableProp = objectAndItemsNullableProp;
|
||||
this.ObjectItemsNullable = objectItemsNullable;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -136,6 +137,12 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "object_items_nullable", EmitDefaultValue = false)]
|
||||
public Dictionary<string, Object> ObjectItemsNullable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -157,6 +164,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ObjectNullableProp: ").Append(ObjectNullableProp).Append("\n");
|
||||
sb.Append(" ObjectAndItemsNullableProp: ").Append(ObjectAndItemsNullableProp).Append("\n");
|
||||
sb.Append(" ObjectItemsNullable: ").Append(ObjectItemsNullable).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -247,6 +255,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectItemsNullable.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ namespace Org.OpenAPITools.Model
|
||||
this.ShapeOrNull = shapeOrNull;
|
||||
this.NullableShape = nullableShape;
|
||||
this.Shapes = shapes;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -69,6 +70,12 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "shapes", EmitDefaultValue = false)]
|
||||
public List<Shape> Shapes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -82,6 +89,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
sb.Append(" Shapes: ").Append(Shapes).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -137,7 +145,8 @@ namespace Org.OpenAPITools.Model
|
||||
this.Shapes != null &&
|
||||
input.Shapes != null &&
|
||||
this.Shapes.SequenceEqual(input.Shapes)
|
||||
);
|
||||
)
|
||||
&& (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -165,6 +174,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Shapes.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,6 +59,7 @@ namespace Org.OpenAPITools.Model
|
||||
this.ObjectNullableProp = objectNullableProp;
|
||||
this.ObjectAndItemsNullableProp = objectAndItemsNullableProp;
|
||||
this.ObjectItemsNullable = objectItemsNullable;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -134,6 +135,12 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "object_items_nullable", EmitDefaultValue = false)]
|
||||
public Dictionary<string, Object> ObjectItemsNullable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -155,6 +162,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ObjectNullableProp: ").Append(ObjectNullableProp).Append("\n");
|
||||
sb.Append(" ObjectAndItemsNullableProp: ").Append(ObjectAndItemsNullableProp).Append("\n");
|
||||
sb.Append(" ObjectItemsNullable: ").Append(ObjectItemsNullable).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -255,7 +263,8 @@ namespace Org.OpenAPITools.Model
|
||||
this.ObjectItemsNullable != null &&
|
||||
input.ObjectItemsNullable != null &&
|
||||
this.ObjectItemsNullable.SequenceEqual(input.ObjectItemsNullable)
|
||||
);
|
||||
)
|
||||
&& (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -315,6 +324,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectItemsNullable.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace Org.OpenAPITools.Model
|
||||
this.ShapeOrNull = shapeOrNull;
|
||||
this.NullableShape = nullableShape;
|
||||
this.Shapes = shapes;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -71,6 +72,12 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "shapes", EmitDefaultValue = false)]
|
||||
public List<Shape> Shapes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -84,6 +91,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
sb.Append(" Shapes: ").Append(Shapes).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -142,6 +150,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Shapes.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,6 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
this.ObjectNullableProp = objectNullableProp;
|
||||
this.ObjectAndItemsNullableProp = objectAndItemsNullableProp;
|
||||
this.ObjectItemsNullable = objectItemsNullable;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -136,6 +137,12 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "object_items_nullable", EmitDefaultValue = false)]
|
||||
public Dictionary<string, Object> ObjectItemsNullable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -157,6 +164,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ObjectNullableProp: ").Append(ObjectNullableProp).Append("\n");
|
||||
sb.Append(" ObjectAndItemsNullableProp: ").Append(ObjectAndItemsNullableProp).Append("\n");
|
||||
sb.Append(" ObjectItemsNullable: ").Append(ObjectItemsNullable).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -247,6 +255,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectItemsNullable.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace Org.OpenAPITools.Model
|
||||
this.ShapeOrNull = shapeOrNull;
|
||||
this.NullableShape = nullableShape;
|
||||
this.Shapes = shapes;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -71,6 +72,12 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "shapes", EmitDefaultValue = false)]
|
||||
public List<Shape> Shapes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -84,6 +91,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
sb.Append(" Shapes: ").Append(Shapes).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -142,6 +150,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Shapes.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,6 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
this.ObjectNullableProp = objectNullableProp;
|
||||
this.ObjectAndItemsNullableProp = objectAndItemsNullableProp;
|
||||
this.ObjectItemsNullable = objectItemsNullable;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -136,6 +137,12 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name = "object_items_nullable", EmitDefaultValue = false)]
|
||||
public Dictionary<string, Object> ObjectItemsNullable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
/// </summary>
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
@@ -157,6 +164,7 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" ObjectNullableProp: ").Append(ObjectNullableProp).Append("\n");
|
||||
sb.Append(" ObjectAndItemsNullableProp: ").Append(ObjectAndItemsNullableProp).Append("\n");
|
||||
sb.Append(" ObjectItemsNullable: ").Append(ObjectItemsNullable).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -247,6 +255,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectItemsNullable.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user