Skip to content

Commit

Permalink
fix(specs): correct type for banners [skip-bc] (#3939)
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp authored Oct 10, 2024
1 parent 0b2d1f5 commit 45d433d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public class AlgoliaSwiftGenerator extends Swift5ClientCodegen {
"bannerimage",
"bannerimageurl",
"bannerlink",
"banners",
"baseindexsettings",
"basesearchparams",
"basesearchparamswithoutquery",
Expand Down
11 changes: 6 additions & 5 deletions specs/common/schemas/IndexSettings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1036,9 +1036,8 @@ banners:
description: banners defined in the merchandising studio for the given search.
type: array
additionalProperties: false
properties:
banners:
$ref: '#/banner'
items:
$ref: '#/banner'

banner:
description: a search banner with image and url.
Expand All @@ -1064,13 +1063,15 @@ bannerImage:
additionalProperties: false
properties:
urls:
$ref: '#/bannerImageUrl'
type: array
items:
$ref: '#/bannerImageUrl'
title:
type: string

bannerImageUrl:
description: url for a search banner image.
type: array
type: object
additionalProperties: false
properties:
url:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import type {
BannerImage,
BannerImageUrl,
BannerLink,
Banners,
BaseIndexSettings,
BaseSearchParams,
BaseSearchParamsWithoutQuery,
Expand Down Expand Up @@ -112,7 +111,6 @@ export {
BannerImage,
BannerImageUrl,
BannerLink,
Banners,
BaseIndexSettings,
BaseSearchParams,
BaseSearchParamsWithoutQuery,
Expand Down

0 comments on commit 45d433d

Please sign in to comment.