Skip to content

Commit 3f74902

Browse files
committed
Add property for bestVariant
1 parent 1f4fc9a commit 3f74902

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

example/responseWithVariantsAndScoreSummary.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"Blubbergurken International Inc."
6363
]
6464
},
65-
"variantScoresIdentical": false,
65+
"bestVariant": "123ab-A",
6666
"variants": [
6767
{
6868
"id": "123ab-A",

resources/schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@
290290
},
291291
"description": "In one or more Push Rules match a product, these are the names."
292292
},
293-
"variantScoresIdentical": {
294-
"description": "Indicates whether all variants of this product have the same score.",
295-
"type": "boolean"
293+
"bestVariant": {
294+
"description": "ID of the variant that best matches the user query. null if there is no clear best match.",
295+
"type": ["string", "null"]
296296
},
297297
"variants": {
298298
"type": "array",

0 commit comments

Comments
 (0)