From 6731f73ddb5fad78f5c5c62bd4627e592a5bc182 Mon Sep 17 00:00:00 2001 From: Pierre Millot Date: Fri, 3 Jan 2025 10:05:28 +0100 Subject: [PATCH] fix(specs): personalization uses plural names --- .../schemas/{eventScoring.yml => eventsScoring.yml} | 2 +- .../schemas/{facetScoring.yml => facetsScoring.yml} | 2 +- .../common/schemas/personalizationStrategy.yml | 12 ++++++------ .../personalization/setPersonalizationStrategy.json | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) rename specs/personalization/common/schemas/{eventScoring.yml => eventsScoring.yml} (96%) rename specs/personalization/common/schemas/{facetScoring.yml => facetsScoring.yml} (93%) diff --git a/specs/personalization/common/schemas/eventScoring.yml b/specs/personalization/common/schemas/eventsScoring.yml similarity index 96% rename from specs/personalization/common/schemas/eventScoring.yml rename to specs/personalization/common/schemas/eventsScoring.yml index 7998456910..f3422d210e 100644 --- a/specs/personalization/common/schemas/eventScoring.yml +++ b/specs/personalization/common/schemas/eventsScoring.yml @@ -1,4 +1,4 @@ -eventScoring: +eventsScoring: type: object additionalProperties: false required: diff --git a/specs/personalization/common/schemas/facetScoring.yml b/specs/personalization/common/schemas/facetsScoring.yml similarity index 93% rename from specs/personalization/common/schemas/facetScoring.yml rename to specs/personalization/common/schemas/facetsScoring.yml index 40f8fee8ad..264a0492c7 100644 --- a/specs/personalization/common/schemas/facetScoring.yml +++ b/specs/personalization/common/schemas/facetsScoring.yml @@ -1,4 +1,4 @@ -facetScoring: +facetsScoring: type: object additionalProperties: false required: diff --git a/specs/personalization/common/schemas/personalizationStrategy.yml b/specs/personalization/common/schemas/personalizationStrategy.yml index 59e6a71f2f..d55ca88033 100644 --- a/specs/personalization/common/schemas/personalizationStrategy.yml +++ b/specs/personalization/common/schemas/personalizationStrategy.yml @@ -2,26 +2,26 @@ personalizationStrategyParams: type: object additionalProperties: false required: - - eventScoring - - facetScoring + - eventsScoring + - facetsScoring - personalizationImpact properties: - eventScoring: + eventsScoring: type: array description: | Scores associated with each event. The higher the scores, the higher the impact of those events on the personalization of search results. items: - $ref: 'eventScoring.yml#/eventScoring' - facetScoring: + $ref: 'eventsScoring.yml#/eventsScoring' + facetsScoring: type: array description: | Scores associated with each facet. The higher the scores, the higher the impact of those events on the personalization of search results. items: - $ref: 'facetScoring.yml#/facetScoring' + $ref: 'facetsScoring.yml#/facetsScoring' personalizationImpact: type: integer minimum: 0 diff --git a/tests/CTS/requests/personalization/setPersonalizationStrategy.json b/tests/CTS/requests/personalization/setPersonalizationStrategy.json index 6e412de819..e8a244c642 100644 --- a/tests/CTS/requests/personalization/setPersonalizationStrategy.json +++ b/tests/CTS/requests/personalization/setPersonalizationStrategy.json @@ -2,14 +2,14 @@ { "testName": "set setPersonalizationStrategy", "parameters": { - "eventScoring": [ + "eventsScoring": [ { "score": 42, "eventName": "Algolia", "eventType": "click" } ], - "facetScoring": [ + "facetsScoring": [ { "score": 42, "facetName": "Event" @@ -21,14 +21,14 @@ "path": "/1/strategies/personalization", "method": "POST", "body": { - "eventScoring": [ + "eventsScoring": [ { "score": 42, "eventName": "Algolia", "eventType": "click" } ], - "facetScoring": [ + "facetsScoring": [ { "score": 42, "facetName": "Event"