Skip to content

Commit 99566f3

Browse files
committed
fix: future proof type
1 parent 2ddec72 commit 99566f3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

specs/ai-personalization/common/enums.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ errorCodes:
1010
- no_events_last_30_days
1111
- pending_pipelines
1212
- invalid_config
13-
13+
1414
status:
1515
title: status
1616
type: string
1717
enum: [pending, active, paused]
1818

19-
type:
19+
sourceType:
2020
title: type
2121
type: string
2222
enum: [insights]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ event:
22
type: object
33
properties:
44
type:
5-
$ref: '#/type'
5+
$ref: '#/eventType'
66
subtype:
77
$ref: '#/subtype'
88
name:
@@ -56,7 +56,7 @@ profileType:
5656
Basic profiles are based on past behaviors, ensuring search results align with previous interests.
5757
Predictive profiles are AI-powered profiles that predict and adapt to users' interests, ensuring search results align with evolving preferences.
5858
59-
type:
59+
eventType:
6060
type: string
6161
enum: [view, click, conversion]
6262

specs/ai-personalization/paths/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ get:
3434
type: object
3535
properties:
3636
type:
37-
$ref: '../common/enums.yml#/type'
37+
$ref: '../common/enums.yml#/sourceType'
3838
events:
3939
$ref: '../common/schemas/Configuration.yml#/events'
4040
errors:
@@ -109,7 +109,7 @@ put:
109109
type: object
110110
properties:
111111
type:
112-
$ref: '../common/enums.yml#/type'
112+
$ref: '../common/enums.yml#/sourceType'
113113
events:
114114
$ref: '../common/schemas/Configuration.yml#/events'
115115
required: [type]

0 commit comments

Comments
 (0)