Skip to content

Commit d1d482f

Browse files
Update external injected item specs for metadata
Co-authored-by: Clara Muller <[email protected]>
1 parent 41aff32 commit d1d482f

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

specs/composition-full/common/params/Composition.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,16 @@ externalInjectedItem:
4646
objectID:
4747
type: string
4848
metadata:
49-
$ref: '#/injectedItemMetadata'
50-
description: |
51-
An objectID injected into an external source.
49+
type: object
50+
additionalProperties: true
51+
description: |
52+
User-defined key-values that will be added to the injected item in the response.
53+
This is identical to Hits metadata defined in Composition or Composition Rule,
54+
with the benefit of being set at runtime.
55+
example: {'my-field': 'my-value'}
5256
required:
5357
- objectID
58+
description: |
59+
An objectID injected into an external source.
5460
example: {'objectID': 'my-object-1', 'metadata': {'my-field': 'my-value'}}
5561

56-
injectedItemMetadata:
57-
type: object
58-
additionalProperties: true
59-
description: |
60-
User defined key-values that will be added to injected item in the response.
61-
This is identical to Hits metadata which is defined in Composition or Composition Rule, with the benefit of being set at runtime.
62-
example: {'my-value': 'my-field'}

0 commit comments

Comments
 (0)