Skip to content

Commit ff97f45

Browse files
committed
nest features config
1 parent 9675a58 commit ff97f45

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

specs/advanced-personalization/common/schemas/Configuration.yml

-4
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,3 @@ status:
7575
lastUpdatedAt:
7676
type: string
7777

78-
realtime:
79-
type: string
80-
enum: [enabled, disabled]
81-
description: Whether the realtime personalization feature is enabled.

specs/advanced-personalization/common/schemas/ConfigurationObject.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ configurationObject:
3838
$ref: './Configuration.yml#/profileType'
3939
status:
4040
$ref: './Configuration.yml#/status'
41-
realtime:
42-
$ref: './Configuration.yml#/realtime'
43-
required: [indices, personalzationReRanking, profileType, status, realtime]
41+
features:
42+
$ref: './Configuration.yml#/features'
43+
required: [indices, personalzationReRanking, profileType, status, features]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
features:
2+
type: object
3+
properties:
4+
realtime:
5+
$ref: '#/realtime'
6+
7+
realtime:
8+
type: object
9+
properties:
10+
enabled:
11+
type: bool
12+
description: Whether the realtime personalization feature is enabled.

specs/advanced-personalization/paths/config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ put:
6767
$ref: '../common/schemas/Configuration.yml#/personalizationReRanking'
6868
profileType:
6969
$ref: '../common/schemas/Configuration.yml#/profileType'
70-
realtime:
71-
$ref: '../common/schemas/Configuration.yml#/realtime'
72-
required: [indices, personalizationReRanking, profileType, realtime]
70+
features:
71+
$ref: '../common/schemas/Features.yml#/features'
72+
required: [indices, personalizationReRanking, profileType, features]
7373
responses:
7474
'200':
7575
description: OK

0 commit comments

Comments
 (0)