Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
{{#deprecated}}
[Obsolete]
{{/deprecated}}
public {{{datatypeWithEnum}}}{{#lambda.first}}{{#isNullable}}{{>NullConditionalProperty}} {{/isNullable}}{{^required}}{{nrt?}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}} {{/required}}{{/lambda.first}} {{name}} {{#required}}{ get; {{^isReadOnly}}set; {{/isReadOnly}}}{{/required}}{{^required}}{ get { return this.{{name}}Option; } {{^isReadOnly}}set { this.{{name}}Option = new{{^net70OrLater}} Option<{{{datatypeWithEnum}}}{{>NullConditionalProperty}}>{{/net70OrLater}}(value); } {{/isReadOnly}}}{{/required}}
public {{{datatypeWithEnum}}}{{#lambda.first}}{{#isNullable}}{{>NullConditionalProperty}} {{/isNullable}}{{^required}}{{nrt?}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}} {{/required}}{{/lambda.first}} {{name}} {{#required}}{ get; {{^isReadOnly}}set; {{/isReadOnly}}}{{/required}}{{^required}}{ get { return this.{{name}}Option.Value; } {{^isReadOnly}}set { this.{{name}}Option = new{{^net70OrLater}} Option<{{{datatypeWithEnum}}}{{>NullConditionalProperty}}>{{/net70OrLater}}(value); } {{/isReadOnly}}}{{/required}}

{{/isInherited}}
{{/isEnum}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public HelloWorldPostRequest(Option<string?> message = default)
/// Gets or Sets Message
/// </summary>
[JsonPropertyName("message")]
public string? Message { get { return this.MessageOption; } set { this.MessageOption = new(value); } }
public string? Message { get { return this.MessageOption.Value; } set { this.MessageOption = new(value); } }

/// <summary>
/// Returns the string presentation of the object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public Foo(Option<string?> bar = default)
/// Gets or Sets Bar
/// </summary>
[JsonPropertyName("bar")]
public string? Bar { get { return this.BarOption; } set { this.BarOption = new(value); } }
public string? Bar { get { return this.BarOption.Value; } set { this.BarOption = new(value); } }

/// <summary>
/// Returns the string presentation of the object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public IconsDefaultResponse(Option<Foo?> @string = default)
/// Gets or Sets String
/// </summary>
[JsonPropertyName("string")]
public Foo? String { get { return this.StringOption; } set { this.StringOption = new(value); } }
public Foo? String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } }

/// <summary>
/// Returns the string presentation of the object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public TestObject(Option<string?> name = default)
/// Gets or Sets Name
/// </summary>
[JsonPropertyName("name")]
public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } }
public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } }

/// <summary>
/// Returns the string presentation of the object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public Adult(Option<List<Child>?> children = default, Option<string?> firstName
/// Gets or Sets Children
/// </summary>
[JsonPropertyName("children")]
public List<Child>? Children { get { return this.ChildrenOption; } set { this.ChildrenOption = new(value); } }
public List<Child>? Children { get { return this.ChildrenOption.Value; } set { this.ChildrenOption = new(value); } }

/// <summary>
/// Returns the string presentation of the object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public Child(Option<int?> age = default, Option<bool?> boosterSeat = default, Op
/// Gets or Sets Age
/// </summary>
[JsonPropertyName("age")]
public int? Age { get { return this.AgeOption; } set { this.AgeOption = new(value); } }
public int? Age { get { return this.AgeOption.Value; } set { this.AgeOption = new(value); } }

/// <summary>
/// Used to track the state of BoosterSeat
Expand All @@ -72,7 +72,7 @@ public Child(Option<int?> age = default, Option<bool?> boosterSeat = default, Op
/// Gets or Sets BoosterSeat
/// </summary>
[JsonPropertyName("boosterSeat")]
public bool? BoosterSeat { get { return this.BoosterSeatOption; } set { this.BoosterSeatOption = new(value); } }
public bool? BoosterSeat { get { return this.BoosterSeatOption.Value; } set { this.BoosterSeatOption = new(value); } }

/// <summary>
/// Returns the string presentation of the object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public Person(Option<string?> firstName = default, Option<string?> lastName = de
/// Gets or Sets FirstName
/// </summary>
[JsonPropertyName("firstName")]
public string? FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } }
public string? FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new(value); } }

/// <summary>
/// Used to track the state of LastName
Expand All @@ -71,7 +71,7 @@ public Person(Option<string?> firstName = default, Option<string?> lastName = de
/// Gets or Sets LastName
/// </summary>
[JsonPropertyName("lastName")]
public string? LastName { get { return this.LastNameOption; } set { this.LastNameOption = new(value); } }
public string? LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new(value); } }

/// <summary>
/// The discriminator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public Apple(Option<string?> kind = default)
/// Gets or Sets Kind
/// </summary>
[JsonPropertyName("kind")]
public string? Kind { get { return this.KindOption; } set { this.KindOption = new(value); } }
public string? Kind { get { return this.KindOption.Value; } set { this.KindOption = new(value); } }

/// <summary>
/// Gets or Sets additional properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public Banana(Option<decimal?> count = default)
/// Gets or Sets Count
/// </summary>
[JsonPropertyName("count")]
public decimal? Count { get { return this.CountOption; } set { this.CountOption = new(value); } }
public decimal? Count { get { return this.CountOption.Value; } set { this.CountOption = new(value); } }

/// <summary>
/// Gets or Sets additional properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public Fruit(Option<Apple?> apple, Option<Banana?> banana, Option<string?> color
/// Gets or Sets Color
/// </summary>
[JsonPropertyName("color")]
public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } }
public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } }

/// <summary>
/// Gets or Sets additional properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public Apple(Option<string?> kind = default)
/// Gets or Sets Kind
/// </summary>
[JsonPropertyName("kind")]
public string? Kind { get { return this.KindOption; } set { this.KindOption = new(value); } }
public string? Kind { get { return this.KindOption.Value; } set { this.KindOption = new(value); } }

/// <summary>
/// Gets or Sets additional properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public Banana(Option<decimal?> count = default)
/// Gets or Sets Count
/// </summary>
[JsonPropertyName("count")]
public decimal? Count { get { return this.CountOption; } set { this.CountOption = new(value); } }
public decimal? Count { get { return this.CountOption.Value; } set { this.CountOption = new(value); } }

/// <summary>
/// Gets or Sets additional properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public Fruit(Option<Apple?> apple, Option<Banana?> banana, Option<string?> color
/// Gets or Sets Color
/// </summary>
[JsonPropertyName("color")]
public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } }
public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } }

/// <summary>
/// Gets or Sets additional properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public Activity(Option<Dictionary<string, List<ActivityOutputElementRepresentati
/// Gets or Sets ActivityOutputs
/// </summary>
[JsonPropertyName("activity_outputs")]
public Dictionary<string, List<ActivityOutputElementRepresentation>> ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new(value); } }
public Dictionary<string, List<ActivityOutputElementRepresentation>> ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new(value); } }

/// <summary>
/// Gets or Sets additional properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public ActivityOutputElementRepresentation(Option<string> prop1 = default, Optio
/// Gets or Sets Prop1
/// </summary>
[JsonPropertyName("prop1")]
public string Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new(value); } }
public string Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new(value); } }

/// <summary>
/// Used to track the state of Prop2
Expand All @@ -68,7 +68,7 @@ public ActivityOutputElementRepresentation(Option<string> prop1 = default, Optio
/// Gets or Sets Prop2
/// </summary>
[JsonPropertyName("prop2")]
public Object Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new(value); } }
public Object Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new(value); } }

/// <summary>
/// Gets or Sets additional properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public AdditionalPropertiesClass(Option<Object> anytype1 = default, Option<Objec
/// Gets or Sets Anytype1
/// </summary>
[JsonPropertyName("anytype_1")]
public Object Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new(value); } }
public Object Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new(value); } }

/// <summary>
/// Used to track the state of EmptyMap
Expand All @@ -81,7 +81,7 @@ public AdditionalPropertiesClass(Option<Object> anytype1 = default, Option<Objec
/// </summary>
/// <value>an object with no declared properties and no undeclared properties, hence it&#39;s an empty map.</value>
[JsonPropertyName("empty_map")]
public Object EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new(value); } }
public Object EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new(value); } }

/// <summary>
/// Used to track the state of MapOfMapProperty
Expand All @@ -94,7 +94,7 @@ public AdditionalPropertiesClass(Option<Object> anytype1 = default, Option<Objec
/// Gets or Sets MapOfMapProperty
/// </summary>
[JsonPropertyName("map_of_map_property")]
public Dictionary<string, Dictionary<string, string>> MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new(value); } }
public Dictionary<string, Dictionary<string, string>> MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new(value); } }

/// <summary>
/// Used to track the state of MapProperty
Expand All @@ -107,7 +107,7 @@ public AdditionalPropertiesClass(Option<Object> anytype1 = default, Option<Objec
/// Gets or Sets MapProperty
/// </summary>
[JsonPropertyName("map_property")]
public Dictionary<string, string> MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new(value); } }
public Dictionary<string, string> MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new(value); } }

/// <summary>
/// Used to track the state of MapWithUndeclaredPropertiesAnytype1
Expand All @@ -120,7 +120,7 @@ public AdditionalPropertiesClass(Option<Object> anytype1 = default, Option<Objec
/// Gets or Sets MapWithUndeclaredPropertiesAnytype1
/// </summary>
[JsonPropertyName("map_with_undeclared_properties_anytype_1")]
public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } }
public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } }

/// <summary>
/// Used to track the state of MapWithUndeclaredPropertiesAnytype2
Expand All @@ -133,7 +133,7 @@ public AdditionalPropertiesClass(Option<Object> anytype1 = default, Option<Objec
/// Gets or Sets MapWithUndeclaredPropertiesAnytype2
/// </summary>
[JsonPropertyName("map_with_undeclared_properties_anytype_2")]
public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } }
public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } }

/// <summary>
/// Used to track the state of MapWithUndeclaredPropertiesAnytype3
Expand All @@ -146,7 +146,7 @@ public AdditionalPropertiesClass(Option<Object> anytype1 = default, Option<Objec
/// Gets or Sets MapWithUndeclaredPropertiesAnytype3
/// </summary>
[JsonPropertyName("map_with_undeclared_properties_anytype_3")]
public Dictionary<string, Object> MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } }
public Dictionary<string, Object> MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } }

/// <summary>
/// Used to track the state of MapWithUndeclaredPropertiesString
Expand All @@ -159,7 +159,7 @@ public AdditionalPropertiesClass(Option<Object> anytype1 = default, Option<Objec
/// Gets or Sets MapWithUndeclaredPropertiesString
/// </summary>
[JsonPropertyName("map_with_undeclared_properties_string")]
public Dictionary<string, string> MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } }
public Dictionary<string, string> MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } }

/// <summary>
/// Gets or Sets additional properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public Animal(Option<string> color = default)
/// Gets or Sets Color
/// </summary>
[JsonPropertyName("color")]
public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } }
public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } }

/// <summary>
/// Gets or Sets additional properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public ApiResponse(Option<int?> code = default, Option<string> message = default
/// Gets or Sets Code
/// </summary>
[JsonPropertyName("code")]
public int? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } }
public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } }

/// <summary>
/// Used to track the state of Message
Expand All @@ -70,7 +70,7 @@ public ApiResponse(Option<int?> code = default, Option<string> message = default
/// Gets or Sets Message
/// </summary>
[JsonPropertyName("message")]
public string Message { get { return this.MessageOption; } set { this.MessageOption = new(value); } }
public string Message { get { return this.MessageOption.Value; } set { this.MessageOption = new(value); } }

/// <summary>
/// Used to track the state of Type
Expand All @@ -83,7 +83,7 @@ public ApiResponse(Option<int?> code = default, Option<string> message = default
/// Gets or Sets Type
/// </summary>
[JsonPropertyName("type")]
public string Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } }
public string Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } }

/// <summary>
/// Gets or Sets additional properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public Apple(Option<string> colorCode = default, Option<string> cultivar = defau
/// Gets or Sets ColorCode
/// </summary>
[JsonPropertyName("color_code")]
public string ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new(value); } }
public string ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new(value); } }

/// <summary>
/// Used to track the state of Cultivar
Expand All @@ -70,7 +70,7 @@ public Apple(Option<string> colorCode = default, Option<string> cultivar = defau
/// Gets or Sets Cultivar
/// </summary>
[JsonPropertyName("cultivar")]
public string Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new(value); } }
public string Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new(value); } }

/// <summary>
/// Used to track the state of Origin
Expand All @@ -83,7 +83,7 @@ public Apple(Option<string> colorCode = default, Option<string> cultivar = defau
/// Gets or Sets Origin
/// </summary>
[JsonPropertyName("origin")]
public string Origin { get { return this.OriginOption; } set { this.OriginOption = new(value); } }
public string Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new(value); } }

/// <summary>
/// Gets or Sets additional properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public AppleReq(string cultivar, Option<bool?> mealy = default)
/// Gets or Sets Mealy
/// </summary>
[JsonPropertyName("mealy")]
public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new(value); } }
public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new(value); } }

/// <summary>
/// Returns the string presentation of the object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public ArrayOfArrayOfNumberOnly(Option<List<List<decimal>>> arrayArrayNumber = d
/// Gets or Sets ArrayArrayNumber
/// </summary>
[JsonPropertyName("ArrayArrayNumber")]
public List<List<decimal>> ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new(value); } }
public List<List<decimal>> ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new(value); } }

/// <summary>
/// Gets or Sets additional properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public ArrayOfNumberOnly(Option<List<decimal>> arrayNumber = default)
/// Gets or Sets ArrayNumber
/// </summary>
[JsonPropertyName("ArrayNumber")]
public List<decimal> ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new(value); } }
public List<decimal> ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new(value); } }

/// <summary>
/// Gets or Sets additional properties
Expand Down
Loading
Loading