forked from loafle/openapi-generator-original
update samples
This commit is contained in:
@@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int32Range
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<int?> Int32RangeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Negative
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -235,7 +235,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64NegativeExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Positive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -261,7 +261,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64PositiveExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int32Range
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<int?> Int32RangeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Negative
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -235,7 +235,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64NegativeExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Positive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -261,7 +261,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64PositiveExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int32Range
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<int?> Int32RangeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Negative
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -235,7 +235,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64NegativeExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Positive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -261,7 +261,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64PositiveExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int32Range
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<int?> Int32RangeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Negative
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -235,7 +235,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64NegativeExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Positive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -261,7 +261,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64PositiveExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int32Range
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<int?> Int32RangeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Negative
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -235,7 +235,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64NegativeExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Positive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -261,7 +261,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64PositiveExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -198,7 +198,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int32Range
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<int?> Int32RangeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -224,7 +224,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Negative
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -237,7 +237,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64NegativeExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -250,7 +250,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Positive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -263,7 +263,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64PositiveExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int32Range
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<int?> Int32RangeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Negative
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -235,7 +235,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64NegativeExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Positive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -261,7 +261,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64PositiveExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -199,7 +199,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int32Range
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<int?> Int32RangeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -225,7 +225,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Negative
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -238,7 +238,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64NegativeExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -251,7 +251,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Positive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -264,7 +264,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64PositiveExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int32Range
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<int?> Int32RangeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Negative
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -235,7 +235,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64NegativeExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64Positive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -261,7 +261,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Used to track the state of Int64PositiveExclusive
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -69,6 +69,7 @@ func (o *FilterTypeRange) SetType(v string) {
|
||||
o.Type = v
|
||||
}
|
||||
|
||||
|
||||
// GetData returns the Data field value if set, zero value otherwise.
|
||||
func (o *FilterTypeRange) GetData() []string {
|
||||
if o == nil || IsNil(o.Data) {
|
||||
@@ -131,6 +132,11 @@ func (o *FilterTypeRange) UnmarshalJSON(data []byte) (err error) {
|
||||
"type",
|
||||
}
|
||||
|
||||
// defaultValueFuncMap captures the default values for required properties.
|
||||
// These values are used when required properties are missing from the payload.
|
||||
defaultValueFuncMap := map[string]func() interface{} {
|
||||
}
|
||||
var defaultValueApplied bool
|
||||
allProperties := make(map[string]interface{})
|
||||
|
||||
err = json.Unmarshal(data, &allProperties)
|
||||
@@ -140,11 +146,23 @@ func (o *FilterTypeRange) UnmarshalJSON(data []byte) (err error) {
|
||||
}
|
||||
|
||||
for _, requiredProperty := range(requiredProperties) {
|
||||
if _, exists := allProperties[requiredProperty]; !exists {
|
||||
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
|
||||
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
|
||||
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
|
||||
defaultValueApplied = true
|
||||
}
|
||||
}
|
||||
if value, exists := allProperties[requiredProperty]; !exists || value == ""{
|
||||
return fmt.Errorf("no value given for required property %v", requiredProperty)
|
||||
}
|
||||
}
|
||||
|
||||
if defaultValueApplied {
|
||||
data, err = json.Marshal(allProperties)
|
||||
if err != nil{
|
||||
return err
|
||||
}
|
||||
}
|
||||
varFilterTypeRange := _FilterTypeRange{}
|
||||
|
||||
err = json.Unmarshal(data, &varFilterTypeRange)
|
||||
|
||||
@@ -69,6 +69,7 @@ func (o *FilterTypeRegex) SetType(v string) {
|
||||
o.Type = v
|
||||
}
|
||||
|
||||
|
||||
// GetRegex returns the Regex field value if set, zero value otherwise.
|
||||
func (o *FilterTypeRegex) GetRegex() string {
|
||||
if o == nil || IsNil(o.Regex) {
|
||||
@@ -131,6 +132,11 @@ func (o *FilterTypeRegex) UnmarshalJSON(data []byte) (err error) {
|
||||
"type",
|
||||
}
|
||||
|
||||
// defaultValueFuncMap captures the default values for required properties.
|
||||
// These values are used when required properties are missing from the payload.
|
||||
defaultValueFuncMap := map[string]func() interface{} {
|
||||
}
|
||||
var defaultValueApplied bool
|
||||
allProperties := make(map[string]interface{})
|
||||
|
||||
err = json.Unmarshal(data, &allProperties)
|
||||
@@ -140,11 +146,23 @@ func (o *FilterTypeRegex) UnmarshalJSON(data []byte) (err error) {
|
||||
}
|
||||
|
||||
for _, requiredProperty := range(requiredProperties) {
|
||||
if _, exists := allProperties[requiredProperty]; !exists {
|
||||
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
|
||||
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
|
||||
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
|
||||
defaultValueApplied = true
|
||||
}
|
||||
}
|
||||
if value, exists := allProperties[requiredProperty]; !exists || value == ""{
|
||||
return fmt.Errorf("no value given for required property %v", requiredProperty)
|
||||
}
|
||||
}
|
||||
|
||||
if defaultValueApplied {
|
||||
data, err = json.Marshal(allProperties)
|
||||
if err != nil{
|
||||
return err
|
||||
}
|
||||
}
|
||||
varFilterTypeRegex := _FilterTypeRegex{}
|
||||
|
||||
err = json.Unmarshal(data, &varFilterTypeRegex)
|
||||
|
||||
Reference in New Issue
Block a user