Skip to content

Commit 6a3e608

Browse files
raed667Fluf22
andauthored
fix(specs): remove baseRecommendRequest from trendingFacets [CR-10264] (#5858)
Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
1 parent d554307 commit 6a3e608

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

specs/recommend/common/schemas/TrendingFacetsQuery.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,38 @@
11
trendingFacetsQuery:
22
title: Trending facet values
33
allOf:
4-
- $ref: './RecommendationsRequest.yml#/baseRecommendRequest'
54
- $ref: '#/trendingFacets'
65

76
trendingFacets:
87
type: object
8+
additionalProperties: false
99
properties:
10+
indexName:
11+
$ref: '../../../common/parameters.yml#/indexName'
12+
threshold:
13+
type: number
14+
format: double
15+
minimum: 0
16+
maximum: 100
17+
description: Minimum score a recommendation must have to be included in the response.
18+
maxRecommendations:
19+
type: integer
20+
minimum: 1
21+
maximum: 30
22+
default: 30
23+
description: |
24+
Maximum number of recommendations to retrieve.
25+
By default, all recommendations are returned and no fallback request is made.
26+
Depending on the available recommendations and the other request parameters,
27+
the actual number of recommendations may be lower than this value.
1028
facetName:
1129
type: string
1230
description: Facet attribute for which to retrieve trending facet values.
1331
model:
1432
$ref: '#/trendingFacetsModel'
15-
fallbackParameters:
16-
$ref: './QueryParameters.yml#/fallbackParams'
1733
required:
34+
- indexName
35+
- threshold
1836
- facetName
1937
- model
2038

0 commit comments

Comments
 (0)