From 5e4868dd4d876677336460802e607a64ab13b38b Mon Sep 17 00:00:00 2001 From: Kai Welke Date: Tue, 22 Jul 2025 11:50:24 +0200 Subject: [PATCH 1/2] fix: value/price clarifications --- specs/insights/common/schemas/EventAttributes.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/insights/common/schemas/EventAttributes.yml b/specs/insights/common/schemas/EventAttributes.yml index 71839754d8c..003ca477de0 100644 --- a/specs/insights/common/schemas/EventAttributes.yml +++ b/specs/insights/common/schemas/EventAttributes.yml @@ -97,7 +97,7 @@ positions: example: [1, 2, 5] price: - description: Total price of a product, including any discounts, in units of `currency`. + description: Final price of a single product, including any discounts, in units of `currency`. oneOf: - type: number format: double @@ -179,7 +179,7 @@ currency: example: EUR value: - description: Total monetary value of this event in units of `currency`. + description: Total monetary value of this event in units of `currency`. This should be equal to `price` times `quantity`. oneOf: - type: number format: double From 239b6df2f93d510170591d985b7abacf5f1377a1 Mon Sep 17 00:00:00 2001 From: Kai Welke Date: Tue, 22 Jul 2025 11:58:11 +0200 Subject: [PATCH 2/2] fix: value is a sum of all items --- specs/insights/common/schemas/EventAttributes.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specs/insights/common/schemas/EventAttributes.yml b/specs/insights/common/schemas/EventAttributes.yml index 003ca477de0..2e6c3e91d6a 100644 --- a/specs/insights/common/schemas/EventAttributes.yml +++ b/specs/insights/common/schemas/EventAttributes.yml @@ -179,7 +179,9 @@ currency: example: EUR value: - description: Total monetary value of this event in units of `currency`. This should be equal to `price` times `quantity`. + description: | + Total monetary value of this event in units of `currency`. + This should be equal to the sum of `price` times `quantity`. oneOf: - type: number format: double