Skip to content

Commit 0209bc2

Browse files
committed
add search|external layer
1 parent e0441d1 commit 0209bc2

File tree

1 file changed

+28
-18
lines changed

1 file changed

+28
-18
lines changed

specs/composition-full/common/schemas/components/InjectionSource.yml

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,41 @@ SearchSource:
44
type: object
55
additionalProperties: false
66
properties:
7-
index:
8-
type: string
9-
description: Composition Index name.
10-
example: Products
11-
params:
12-
$ref: './Injection.yml#/injectedItemsQueryParameters'
13-
required:
14-
- index
7+
search:
8+
title: searchSource
9+
type: object
10+
additionalProperties: false
11+
properties:
12+
index:
13+
type: string
14+
description: Composition Index name.
15+
example: Products
16+
params:
17+
$ref: './Injection.yml#/injectedItemsQueryParameters'
18+
required:
19+
- index
1520

1621
ExternalSource:
1722
title: external
1823
description: Injected items will originate from externally provided objectIDs (that must exist in the index) given at runtime in the run request payload.
1924
type: object
2025
additionalProperties: false
21-
allOf:
22-
- $ref: '#/SearchSource'
23-
- $ref: '#/externalFields'
24-
25-
externalFields:
26-
title: externalSourceFields
27-
type: object
28-
additionalProperties: false
2926
properties:
30-
ordering:
31-
$ref: '#/externalOrdering'
27+
external:
28+
title: externalSource
29+
type: object
30+
additionalProperties: false
31+
properties:
32+
index:
33+
type: string
34+
description: Composition Index name.
35+
example: Products
36+
params:
37+
$ref: './Injection.yml#/injectedItemsQueryParameters'
38+
ordering:
39+
$ref: '#/externalOrdering'
40+
required:
41+
- index
3242

3343
externalOrdering:
3444
enum: ['default', 'userDefined']

0 commit comments

Comments
 (0)