Skip to content

Commit

Permalink
fix(specs): correct type for banners [skip-bc] (generated)
Browse files Browse the repository at this point in the history
  • Loading branch information
algolia-bot committed Oct 10, 2024
1 parent c3e3e1a commit 94ba94f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 186 deletions.
4 changes: 2 additions & 2 deletions algoliasearch/Models/Recommend/BannerImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public BannerImage()
/// Gets or Sets Urls
/// </summary>
[JsonPropertyName("urls")]
public BannerImageUrl Urls { get; set; }
public List<BannerImageUrl> Urls { get; set; }

/// <summary>
/// Gets or Sets Title
Expand Down Expand Up @@ -71,7 +71,7 @@ public override bool Equals(object obj)
}

return
(Urls == input.Urls || (Urls != null && Urls.Equals(input.Urls))) &&
(Urls == input.Urls || Urls != null && input.Urls != null && Urls.SequenceEqual(input.Urls)) &&
(Title == input.Title || (Title != null && Title.Equals(input.Title)));
}

Expand Down
88 changes: 0 additions & 88 deletions algoliasearch/Models/Recommend/Banners.cs

This file was deleted.

7 changes: 4 additions & 3 deletions algoliasearch/Models/Recommend/Widgets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ public Widgets()
}

/// <summary>
/// Gets or Sets Banners
/// banners defined in the merchandising studio for the given search.
/// </summary>
/// <value>banners defined in the merchandising studio for the given search.</value>
[JsonPropertyName("banners")]
public Banners Banners { get; set; }
public List<Banner> Banners { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand Down Expand Up @@ -64,7 +65,7 @@ public override bool Equals(object obj)
}

return
(Banners == input.Banners || (Banners != null && Banners.Equals(input.Banners)));
(Banners == input.Banners || Banners != null && input.Banners != null && Banners.SequenceEqual(input.Banners));
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions algoliasearch/Models/Search/BannerImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public BannerImage()
/// Gets or Sets Urls
/// </summary>
[JsonPropertyName("urls")]
public BannerImageUrl Urls { get; set; }
public List<BannerImageUrl> Urls { get; set; }

/// <summary>
/// Gets or Sets Title
Expand Down Expand Up @@ -71,7 +71,7 @@ public override bool Equals(object obj)
}

return
(Urls == input.Urls || (Urls != null && Urls.Equals(input.Urls))) &&
(Urls == input.Urls || Urls != null && input.Urls != null && Urls.SequenceEqual(input.Urls)) &&
(Title == input.Title || (Title != null && Title.Equals(input.Title)));
}

Expand Down
88 changes: 0 additions & 88 deletions algoliasearch/Models/Search/Banners.cs

This file was deleted.

7 changes: 4 additions & 3 deletions algoliasearch/Models/Search/Widgets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ public Widgets()
}

/// <summary>
/// Gets or Sets Banners
/// banners defined in the merchandising studio for the given search.
/// </summary>
/// <value>banners defined in the merchandising studio for the given search.</value>
[JsonPropertyName("banners")]
public Banners Banners { get; set; }
public List<Banner> Banners { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand Down Expand Up @@ -64,7 +65,7 @@ public override bool Equals(object obj)
}

return
(Banners == input.Banners || (Banners != null && Banners.Equals(input.Banners)));
(Banners == input.Banners || Banners != null && input.Banners != null && Banners.SequenceEqual(input.Banners));
}

/// <summary>
Expand Down

0 comments on commit 94ba94f

Please sign in to comment.