-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(specs): remove some parameters from trending requests (#1915)
- Loading branch information
Showing
7 changed files
with
87 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.0.91 | ||
0.0.93 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
recommendationsQuery: | ||
allOf: | ||
- type: object | ||
title: baseRecommendationsQuery | ||
additionalProperties: false | ||
properties: | ||
model: | ||
$ref: '#/recommendationModels' | ||
objectID: | ||
$ref: '../../../common/parameters.yml#/objectID' | ||
queryParameters: | ||
$ref: '../../../common/schemas/SearchParams.yml#/searchParamsObject' | ||
fallbackParameters: | ||
$ref: '../../../common/schemas/SearchParams.yml#/searchParamsObject' | ||
required: | ||
- model | ||
- objectID | ||
- $ref: './RecommendationsRequest.yml#/baseRecommendRequest' | ||
|
||
recommendationModels: | ||
description: Recommendation model. | ||
type: string | ||
enum: [related-products, bought-together] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
trendingItemsQuery: | ||
allOf: | ||
- type: object | ||
title: baseTrendingItemsQuery | ||
additionalProperties: false | ||
properties: | ||
facetName: | ||
$ref: '#/facetName' | ||
facetValue: | ||
type: string | ||
description: Facet value for trending models. | ||
model: | ||
$ref: '#/trendingItemsModel' | ||
queryParameters: | ||
$ref: '../../../common/schemas/SearchParams.yml#/searchParamsObject' | ||
fallbackParameters: | ||
$ref: '../../../common/schemas/SearchParams.yml#/searchParamsObject' | ||
- $ref: './RecommendationsRequest.yml#/baseRecommendRequest' | ||
|
||
trendingFacetsQuery: | ||
allOf: | ||
- type: object | ||
title: baseTrendingFacetsQuery | ||
additionalProperties: false | ||
properties: | ||
facetName: | ||
$ref: '#/facetName' | ||
model: | ||
$ref: '#/trendingFacetsModel' | ||
required: | ||
- facetName | ||
- $ref: './RecommendationsRequest.yml#/baseRecommendRequest' | ||
|
||
trendingFacetsModel: | ||
description: Trending facets model. | ||
type: string | ||
enum: [trending-facets] | ||
|
||
trendingItemsModel: | ||
description: Trending items model. | ||
type: string | ||
enum: [trending-items] | ||
|
||
facetName: | ||
type: string | ||
description: Facet name for trending models. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters