Skip to content

Commit 461575c

Browse files
feat(specs): add A/B testing hypothesis (#6829)
1 parent 4606f6c commit 461575c

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

โ€Žspecs/abtesting-v3/common/parameters.ymlโ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ name:
4444
description: A/B test name.
4545
example: Custom ranking sales rank test
4646

47+
hypothesis:
48+
type: string
49+
description: Expected outcome of the A/B test.
50+
example: Enabling the feature increases conversion rate
51+
4752
description:
4853
type: string
4954
description: Description for this variant.

โ€Žspecs/abtesting-v3/common/schemas/ABTest.ymlโ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ ABTest:
2222
$ref: '../parameters.yml#/stoppedAt'
2323
name:
2424
$ref: '../parameters.yml#/name'
25+
hypothesis:
26+
$ref: '../parameters.yml#/hypothesis'
2527
status:
2628
$ref: '#/Status'
2729
variants:
@@ -33,6 +35,7 @@ ABTest:
3335
required:
3436
- status
3537
- name
38+
- hypothesis
3639
- createdAt
3740
- endAt
3841
- updatedAt

โ€Žspecs/abtesting-v3/paths/abtests.ymlโ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ post:
1717
properties:
1818
name:
1919
$ref: '../common/parameters.yml#/name'
20+
hypothesis:
21+
$ref: '../common/parameters.yml#/hypothesis'
2022
variants:
2123
type: array
2224
description: A/B test variants.

0 commit comments

Comments
ย (0)