Skip to content

Commit

Permalink
build samples
Browse files Browse the repository at this point in the history
  • Loading branch information
devhl-labs committed Aug 5, 2024
1 parent f722327 commit 7027a40
Show file tree
Hide file tree
Showing 18 changed files with 54 additions and 108 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public Adult(Option<string> lastName = default, Option<string> firstName = defau
/// The discriminator
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public new string Type { get; } = "Adult";

/// <summary>
Expand All @@ -64,13 +64,6 @@ public Adult(Option<string> lastName = default, Option<string> firstName = defau
[JsonPropertyName("children")]
public List<Child> Children { get { return this.ChildrenOption; } set { this.ChildrenOption = new Option<List<Child>>(value); } }

/// <summary>
/// The discriminator
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public new string Type { get; } = "Adult";

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public Child(Option<string> lastName = default, Option<string> firstName = defau
/// The discriminator
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public new string Type { get; } = "Child";

/// <summary>
Expand All @@ -66,13 +66,6 @@ public Child(Option<string> lastName = default, Option<string> firstName = defau
[JsonPropertyName("age")]
public int? Age { get { return this.AgeOption; } set { this.AgeOption = new Option<int?>(value); } }

/// <summary>
/// The discriminator
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public new string Type { get; } = "Child";

/// <summary>
/// Used to track the state of BoosterSeat
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,7 @@ public Person(Option<string> lastName = default, Option<string> firstName = defa
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> FirstNameOption { get; private set; }

/// <summary>
/// Gets or Sets FirstName
/// </summary>
[JsonPropertyName("firstName")]
public string FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new Option<string>(value); } }
public string Type { get; } = "Person";

/// <summary>
/// Used to track the state of LastName
Expand All @@ -75,7 +69,13 @@ public Person(Option<string> lastName = default, Option<string> firstName = defa
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public string Type { get; } = "Person";
public Option<string> FirstNameOption { get; private set; }

/// <summary>
/// Gets or Sets FirstName
/// </summary>
[JsonPropertyName("firstName")]
public string FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new Option<string>(value); } }

/// <summary>
/// Gets or Sets additional properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4286,14 +4286,10 @@ public async Task<ITestEnumParametersApiResponse> TestEnumParametersAsync(Option
if (enumQueryString.IsSet)
parseQueryStringLocalVar["enum_query_string"] = ClientUtils.ParameterToString(enumQueryString.Value);

if (enumQueryDouble.IsSet)
parseQueryStringLocalVar["enum_query_double"] = ClientUtils.ParameterToString(enumQueryDouble.Value);

if (enumQueryInteger.IsSet)
parseQueryStringLocalVar["enum_query_integer"] = ClientUtils.ParameterToString(enumQueryInteger.Value);

if (enumQueryDouble.IsSet)
// here too
parseQueryStringLocalVar["enum_query_double"] = ClientUtils.ParameterToString(enumQueryDouble.Value);

uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4295,14 +4295,14 @@ public async Task<ITestEnumParametersApiResponse> TestEnumParametersAsync(Option
if (enumQueryStringArray.IsSet)
parseQueryStringLocalVar["enum_query_string_array"] = ClientUtils.ParameterToString(enumQueryStringArray.Value);

if (enumQueryDouble.IsSet)
parseQueryStringLocalVar["enum_query_double"] = ClientUtils.ParameterToString(enumQueryDouble.Value);
if (enumQueryString.IsSet)
parseQueryStringLocalVar["enum_query_string"] = ClientUtils.ParameterToString(enumQueryString.Value);

if (enumQueryInteger.IsSet)
parseQueryStringLocalVar["enum_query_integer"] = ClientUtils.ParameterToString(enumQueryInteger.Value);

if (enumQueryString.IsSet)
parseQueryStringLocalVar["enum_query_string"] = ClientUtils.ParameterToString(enumQueryString.Value);
if (enumQueryDouble.IsSet)
parseQueryStringLocalVar["enum_query_double"] = ClientUtils.ParameterToString(enumQueryDouble.Value);

uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public Adult(Option<string> lastName = default, Option<string> firstName = defau
/// The discriminator
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public new string Type { get; } = "Adult";

/// <summary>
Expand All @@ -64,13 +64,6 @@ public Adult(Option<string> lastName = default, Option<string> firstName = defau
[JsonPropertyName("children")]
public List<Child> Children { get { return this.ChildrenOption; } set { this.ChildrenOption = new Option<List<Child>>(value); } }

/// <summary>
/// The discriminator
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public new string Type { get; } = "Adult";

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public Child(Option<string> lastName = default, Option<string> firstName = defau
/// The discriminator
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public new string Type { get; } = "Child";

/// <summary>
Expand All @@ -66,13 +66,6 @@ public Child(Option<string> lastName = default, Option<string> firstName = defau
[JsonPropertyName("age")]
public int? Age { get { return this.AgeOption; } set { this.AgeOption = new Option<int?>(value); } }

/// <summary>
/// The discriminator
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public new string Type { get; } = "Child";

/// <summary>
/// Used to track the state of BoosterSeat
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,7 @@ public Person(Option<string> lastName = default, Option<string> firstName = defa
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string> FirstNameOption { get; private set; }

/// <summary>
/// Gets or Sets FirstName
/// </summary>
[JsonPropertyName("firstName")]
public string FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new Option<string>(value); } }
public string Type { get; } = "Person";

/// <summary>
/// Used to track the state of LastName
Expand All @@ -75,7 +69,13 @@ public Person(Option<string> lastName = default, Option<string> firstName = defa
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public string Type { get; } = "Person";
public Option<string> FirstNameOption { get; private set; }

/// <summary>
/// Gets or Sets FirstName
/// </summary>
[JsonPropertyName("firstName")]
public string FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new Option<string>(value); } }

/// <summary>
/// Gets or Sets additional properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4286,14 +4286,10 @@ public async Task<ITestEnumParametersApiResponse> TestEnumParametersAsync(Option
if (enumQueryString.IsSet)
parseQueryStringLocalVar["enum_query_string"] = ClientUtils.ParameterToString(enumQueryString.Value);

if (enumQueryDouble.IsSet)
parseQueryStringLocalVar["enum_query_double"] = ClientUtils.ParameterToString(enumQueryDouble.Value);

if (enumQueryInteger.IsSet)
parseQueryStringLocalVar["enum_query_integer"] = ClientUtils.ParameterToString(enumQueryInteger.Value);

if (enumQueryDouble.IsSet)
// here too
parseQueryStringLocalVar["enum_query_double"] = ClientUtils.ParameterToString(enumQueryDouble.Value);

uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4295,14 +4295,14 @@ public async Task<ITestEnumParametersApiResponse> TestEnumParametersAsync(Option
if (enumQueryStringArray.IsSet)
parseQueryStringLocalVar["enum_query_string_array"] = ClientUtils.ParameterToString(enumQueryStringArray.Value);

if (enumQueryDouble.IsSet)
parseQueryStringLocalVar["enum_query_double"] = ClientUtils.ParameterToString(enumQueryDouble.Value);
if (enumQueryString.IsSet)
parseQueryStringLocalVar["enum_query_string"] = ClientUtils.ParameterToString(enumQueryString.Value);

if (enumQueryInteger.IsSet)
parseQueryStringLocalVar["enum_query_integer"] = ClientUtils.ParameterToString(enumQueryInteger.Value);

if (enumQueryString.IsSet)
parseQueryStringLocalVar["enum_query_string"] = ClientUtils.ParameterToString(enumQueryString.Value);
if (enumQueryDouble.IsSet)
parseQueryStringLocalVar["enum_query_double"] = ClientUtils.ParameterToString(enumQueryDouble.Value);

uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public Adult(Option<string?> lastName = default, Option<string?> firstName = def
/// The discriminator
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public new string Type { get; } = "Adult";

/// <summary>
Expand All @@ -66,13 +66,6 @@ public Adult(Option<string?> lastName = default, Option<string?> firstName = def
[JsonPropertyName("children")]
public List<Child>? Children { get { return this.ChildrenOption; } set { this.ChildrenOption = new(value); } }

/// <summary>
/// The discriminator
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public new string Type { get; } = "Adult";

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public Child(Option<string?> lastName = default, Option<string?> firstName = def
/// The discriminator
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public new string Type { get; } = "Child";

/// <summary>
Expand All @@ -68,13 +68,6 @@ public Child(Option<string?> lastName = default, Option<string?> firstName = def
[JsonPropertyName("age")]
public int? Age { get { return this.AgeOption; } set { this.AgeOption = new(value); } }

/// <summary>
/// The discriminator
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public new string Type { get; } = "Child";

/// <summary>
/// Used to track the state of BoosterSeat
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,7 @@ public Person(Option<string?> lastName = default, Option<string?> firstName = de
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<string?> FirstNameOption { get; private set; }

/// <summary>
/// Gets or Sets FirstName
/// </summary>
[JsonPropertyName("firstName")]
public string? FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } }
public string Type { get; } = "Person";

/// <summary>
/// Used to track the state of LastName
Expand All @@ -77,7 +71,13 @@ public Person(Option<string?> lastName = default, Option<string?> firstName = de
/// </summary>
[JsonIgnore]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public string Type { get; } = "Person";
public Option<string?> FirstNameOption { get; private set; }

/// <summary>
/// Gets or Sets FirstName
/// </summary>
[JsonPropertyName("firstName")]
public string? FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } }

/// <summary>
/// Gets or Sets additional properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4295,14 +4295,10 @@ public async Task<ITestEnumParametersApiResponse> TestEnumParametersAsync(Option
if (enumQueryString.IsSet)
parseQueryStringLocalVar["enum_query_string"] = ClientUtils.ParameterToString(enumQueryString.Value);

if (enumQueryDouble.IsSet)
parseQueryStringLocalVar["enum_query_double"] = ClientUtils.ParameterToString(enumQueryDouble.Value);

if (enumQueryInteger.IsSet)
parseQueryStringLocalVar["enum_query_integer"] = ClientUtils.ParameterToString(enumQueryInteger.Value);

if (enumQueryDouble.IsSet)
// here too
parseQueryStringLocalVar["enum_query_double"] = ClientUtils.ParameterToString(enumQueryDouble.Value);

uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4306,14 +4306,14 @@ public async Task<ITestEnumParametersApiResponse> TestEnumParametersAsync(Option
if (enumQueryStringArray.IsSet)
parseQueryStringLocalVar["enum_query_string_array"] = ClientUtils.ParameterToString(enumQueryStringArray.Value);

if (enumQueryDouble.IsSet)
parseQueryStringLocalVar["enum_query_double"] = ClientUtils.ParameterToString(enumQueryDouble.Value);
if (enumQueryString.IsSet)
parseQueryStringLocalVar["enum_query_string"] = ClientUtils.ParameterToString(enumQueryString.Value);

if (enumQueryInteger.IsSet)
parseQueryStringLocalVar["enum_query_integer"] = ClientUtils.ParameterToString(enumQueryInteger.Value);

if (enumQueryString.IsSet)
parseQueryStringLocalVar["enum_query_string"] = ClientUtils.ParameterToString(enumQueryString.Value);
if (enumQueryDouble.IsSet)
parseQueryStringLocalVar["enum_query_double"] = ClientUtils.ParameterToString(enumQueryDouble.Value);

uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4304,14 +4304,14 @@ public async Task<ITestEnumParametersApiResponse> TestEnumParametersAsync(Option
if (enumQueryStringArray.IsSet)
parseQueryStringLocalVar["enum_query_string_array"] = ClientUtils.ParameterToString(enumQueryStringArray.Value);

if (enumQueryDouble.IsSet)
parseQueryStringLocalVar["enum_query_double"] = ClientUtils.ParameterToString(enumQueryDouble.Value);
if (enumQueryString.IsSet)
parseQueryStringLocalVar["enum_query_string"] = ClientUtils.ParameterToString(enumQueryString.Value);

if (enumQueryInteger.IsSet)
parseQueryStringLocalVar["enum_query_integer"] = ClientUtils.ParameterToString(enumQueryInteger.Value);

if (enumQueryString.IsSet)
parseQueryStringLocalVar["enum_query_string"] = ClientUtils.ParameterToString(enumQueryString.Value);
if (enumQueryDouble.IsSet)
parseQueryStringLocalVar["enum_query_double"] = ClientUtils.ParameterToString(enumQueryDouble.Value);

uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4306,14 +4306,14 @@ public async Task<ITestEnumParametersApiResponse> TestEnumParametersAsync(Option
if (enumQueryStringArray.IsSet)
parseQueryStringLocalVar["enum_query_string_array"] = ClientUtils.ParameterToString(enumQueryStringArray.Value);

if (enumQueryDouble.IsSet)
parseQueryStringLocalVar["enum_query_double"] = ClientUtils.ParameterToString(enumQueryDouble.Value);
if (enumQueryString.IsSet)
parseQueryStringLocalVar["enum_query_string"] = ClientUtils.ParameterToString(enumQueryString.Value);

if (enumQueryInteger.IsSet)
parseQueryStringLocalVar["enum_query_integer"] = ClientUtils.ParameterToString(enumQueryInteger.Value);

if (enumQueryString.IsSet)
parseQueryStringLocalVar["enum_query_string"] = ClientUtils.ParameterToString(enumQueryString.Value);
if (enumQueryDouble.IsSet)
parseQueryStringLocalVar["enum_query_double"] = ClientUtils.ParameterToString(enumQueryDouble.Value);

uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString();

Expand Down
Loading

0 comments on commit 7027a40

Please sign in to comment.