Skip to content

Commit eb456c2

Browse files
committed
fix: move config object to standalone file
1 parent d14f3d1 commit eb456c2

File tree

2 files changed

+42
-42
lines changed

2 files changed

+42
-42
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
configurationObject:
2+
type: object
3+
properties:
4+
indices:
5+
type: array
6+
items:
7+
title: configurationObject
8+
type: object
9+
properties:
10+
index:
11+
type: string
12+
affinities:
13+
type: array
14+
items:
15+
type: string
16+
source:
17+
title: source
18+
type: object
19+
properties:
20+
type:
21+
$ref: '../enums.yml#/sourceType'
22+
events:
23+
$ref: './Configuration.yml#/events'
24+
errors:
25+
type: array
26+
items:
27+
$ref: './Configuration.yml#/issue'
28+
warnings:
29+
type: array
30+
items:
31+
$ref: './Configuration.yml#/issue'
32+
lastUpdatedAt:
33+
type: string
34+
required: [index, affinities, source, errors, warnings, lastUpdatedAt]
35+
personalizationReRanking:
36+
$ref: './Configuration.yml#/personalizationReRanking'
37+
profileType:
38+
$ref: './Configuration.yml#/profileType'
39+
status:
40+
$ref: './Configuration.yml#/status'
41+
required: [indices, personalzationReRanking, profileType, status]

specs/ai-personalization/paths/config.yml

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -14,48 +14,7 @@ get:
1414
content:
1515
application/json:
1616
schema:
17-
title: getConfigResponse
18-
type: object
19-
properties:
20-
indices:
21-
type: array
22-
items:
23-
title: configurationObject
24-
type: object
25-
properties:
26-
index:
27-
type: string
28-
affinities:
29-
type: array
30-
items:
31-
type: string
32-
source:
33-
title: source
34-
type: object
35-
properties:
36-
type:
37-
$ref: '../common/enums.yml#/sourceType'
38-
events:
39-
$ref: '../common/schemas/Configuration.yml#/events'
40-
errors:
41-
type: array
42-
items:
43-
$ref: '../common/schemas/Configuration.yml#/issue'
44-
warnings:
45-
type: array
46-
items:
47-
$ref: '../common/schemas/Configuration.yml#/issue'
48-
lastUpdatedAt:
49-
type: string
50-
required:
51-
[index, affinities, source, errors, warnings, lastUpdatedAt]
52-
personalizationReRanking:
53-
$ref: '../common/schemas/Configuration.yml#/personalizationReRanking'
54-
profileType:
55-
$ref: '../common/schemas/Configuration.yml#/profileType'
56-
status:
57-
$ref: '../common/schemas/Configuration.yml#/status'
58-
required: [indices, personalzationReRanking, profileType, status]
17+
$ref: '../common/schemas/ConfigurationObject.yml#/configurationObject'
5918
'401':
6019
$ref: '../common/responses/Unauthorized.yml'
6120
'404':

0 commit comments

Comments
 (0)