Skip to content

Commit 29b2f25

Browse files
committed
fix(specs): correct type for banners [skip-bc] (generated)
algolia/api-clients-automation#3939 Co-authored-by: algolia-bot <[email protected]>
1 parent 13cd1c4 commit 29b2f25

File tree

6 files changed

+8
-38
lines changed

6 files changed

+8
-38
lines changed

client/src/commonMain/kotlin/com/algolia/client/model/recommend/BannerImage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import kotlinx.serialization.json.*
1313
@Serializable
1414
public data class BannerImage(
1515

16-
@SerialName(value = "urls") val urls: BannerImageUrl? = null,
16+
@SerialName(value = "urls") val urls: List<BannerImageUrl>? = null,
1717

1818
@SerialName(value = "title") val title: String? = null,
1919
)

client/src/commonMain/kotlin/com/algolia/client/model/recommend/Banners.kt

Lines changed: 0 additions & 16 deletions
This file was deleted.

client/src/commonMain/kotlin/com/algolia/client/model/recommend/Widgets.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ import kotlinx.serialization.json.*
77
/**
88
* widgets returned from any rules that are applied to the current search.
99
*
10-
* @param banners
10+
* @param banners banners defined in the merchandising studio for the given search.
1111
*/
1212
@Serializable
1313
public data class Widgets(
1414

15-
@SerialName(value = "banners") val banners: Banners? = null,
15+
/** banners defined in the merchandising studio for the given search. */
16+
@SerialName(value = "banners") val banners: List<Banner>? = null,
1617
)

client/src/commonMain/kotlin/com/algolia/client/model/search/BannerImage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import kotlinx.serialization.json.*
1313
@Serializable
1414
public data class BannerImage(
1515

16-
@SerialName(value = "urls") val urls: BannerImageUrl? = null,
16+
@SerialName(value = "urls") val urls: List<BannerImageUrl>? = null,
1717

1818
@SerialName(value = "title") val title: String? = null,
1919
)

client/src/commonMain/kotlin/com/algolia/client/model/search/Banners.kt

Lines changed: 0 additions & 16 deletions
This file was deleted.

client/src/commonMain/kotlin/com/algolia/client/model/search/Widgets.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ import kotlinx.serialization.json.*
77
/**
88
* widgets returned from any rules that are applied to the current search.
99
*
10-
* @param banners
10+
* @param banners banners defined in the merchandising studio for the given search.
1111
*/
1212
@Serializable
1313
public data class Widgets(
1414

15-
@SerialName(value = "banners") val banners: Banners? = null,
15+
/** banners defined in the merchandising studio for the given search. */
16+
@SerialName(value = "banners") val banners: List<Banner>? = null,
1617
)

0 commit comments

Comments
 (0)