Skip to content

Commit

Permalink
fix(specs): adjust style for banner descriptions (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4362

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Kai Welke <[email protected]>
Co-authored-by: Pierre Millot <[email protected]>
  • Loading branch information
3 people committed Jan 16, 2025
1 parent 01f3583 commit fdaa94d
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Sources/Recommend/Models/RecommendBanner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Foundation
import Core
#endif

/// a search banner with image and url.
/// Banner with image and link to redirect users.
public struct RecommendBanner: Codable, JSONEncodable {
public var image: RecommendBannerImage?
public var link: RecommendBannerLink?
Expand Down
2 changes: 1 addition & 1 deletion Sources/Recommend/Models/RecommendBannerImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Foundation
import Core
#endif

/// image of a search banner.
/// Image to show inside a banner.
public struct RecommendBannerImage: Codable, JSONEncodable {
public var urls: [RecommendBannerImageUrl]?
public var title: String?
Expand Down
2 changes: 1 addition & 1 deletion Sources/Recommend/Models/RecommendBannerImageUrl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Foundation
import Core
#endif

/// url for a search banner image.
/// URL for an image to show inside a banner.
public struct RecommendBannerImageUrl: Codable, JSONEncodable {
public var url: String?

Expand Down
2 changes: 1 addition & 1 deletion Sources/Recommend/Models/RecommendBannerLink.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Foundation
import Core
#endif

/// link for a banner defined in merchandising studio.
/// Link for a banner defined in the Merchandising Studio.
public struct RecommendBannerLink: Codable, JSONEncodable {
public var url: String?

Expand Down
4 changes: 2 additions & 2 deletions Sources/Recommend/Models/RecommendWidgets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import Foundation
import Core
#endif

/// widgets returned from any rules that are applied to the current search.
/// Widgets returned from any rules that are applied to the current search.
public struct RecommendWidgets: Codable, JSONEncodable {
/// banners defined in the merchandising studio for the given search.
/// Banners defined in the Merchandising Studio for a given search.
public var banners: [RecommendBanner]?

public init(banners: [RecommendBanner]? = nil) {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Search/Models/SearchBanner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Foundation
import Core
#endif

/// a search banner with image and url.
/// Banner with image and link to redirect users.
public struct SearchBanner: Codable, JSONEncodable {
public var image: SearchBannerImage?
public var link: SearchBannerLink?
Expand Down
2 changes: 1 addition & 1 deletion Sources/Search/Models/SearchBannerImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Foundation
import Core
#endif

/// image of a search banner.
/// Image to show inside a banner.
public struct SearchBannerImage: Codable, JSONEncodable {
public var urls: [SearchBannerImageUrl]?
public var title: String?
Expand Down
2 changes: 1 addition & 1 deletion Sources/Search/Models/SearchBannerImageUrl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Foundation
import Core
#endif

/// url for a search banner image.
/// URL for an image to show inside a banner.
public struct SearchBannerImageUrl: Codable, JSONEncodable {
public var url: String?

Expand Down
2 changes: 1 addition & 1 deletion Sources/Search/Models/SearchBannerLink.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Foundation
import Core
#endif

/// link for a banner defined in merchandising studio.
/// Link for a banner defined in the Merchandising Studio.
public struct SearchBannerLink: Codable, JSONEncodable {
public var url: String?

Expand Down
4 changes: 2 additions & 2 deletions Sources/Search/Models/SearchWidgets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import Foundation
import Core
#endif

/// widgets returned from any rules that are applied to the current search.
/// Widgets returned from any rules that are applied to the current search.
public struct SearchWidgets: Codable, JSONEncodable {
/// banners defined in the merchandising studio for the given search.
/// Banners defined in the Merchandising Studio for a given search.
public var banners: [SearchBanner]?

public init(banners: [SearchBanner]? = nil) {
Expand Down

0 comments on commit fdaa94d

Please sign in to comment.