Skip to content

Commit 45d433d

Browse files
authoredOct 10, 2024··
fix(specs): correct type for banners [skip-bc] (#3939)
1 parent 0b2d1f5 commit 45d433d

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed
 

‎generators/src/main/java/com/algolia/codegen/AlgoliaSwiftGenerator.java

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public class AlgoliaSwiftGenerator extends Swift5ClientCodegen {
4242
"bannerimage",
4343
"bannerimageurl",
4444
"bannerlink",
45-
"banners",
4645
"baseindexsettings",
4746
"basesearchparams",
4847
"basesearchparamswithoutquery",

‎specs/common/schemas/IndexSettings.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1036,9 +1036,8 @@ banners:
10361036
description: banners defined in the merchandising studio for the given search.
10371037
type: array
10381038
additionalProperties: false
1039-
properties:
1040-
banners:
1041-
$ref: '#/banner'
1039+
items:
1040+
$ref: '#/banner'
10421041

10431042
banner:
10441043
description: a search banner with image and url.
@@ -1064,13 +1063,15 @@ bannerImage:
10641063
additionalProperties: false
10651064
properties:
10661065
urls:
1067-
$ref: '#/bannerImageUrl'
1066+
type: array
1067+
items:
1068+
$ref: '#/bannerImageUrl'
10681069
title:
10691070
type: string
10701071

10711072
bannerImageUrl:
10721073
description: url for a search banner image.
1073-
type: array
1074+
type: object
10741075
additionalProperties: false
10751076
properties:
10761077
url:

‎templates/javascript/clients/algoliasearch/builds/models.mustache

-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import type {
1616
BannerImage,
1717
BannerImageUrl,
1818
BannerLink,
19-
Banners,
2019
BaseIndexSettings,
2120
BaseSearchParams,
2221
BaseSearchParamsWithoutQuery,
@@ -112,7 +111,6 @@ export {
112111
BannerImage,
113112
BannerImageUrl,
114113
BannerLink,
115-
Banners,
116114
BaseIndexSettings,
117115
BaseSearchParams,
118116
BaseSearchParamsWithoutQuery,

0 commit comments

Comments
 (0)
Please sign in to comment.