Skip to content

Commit 2925f56

Browse files
authored
fix(specs): more accurate composition behavior typing (#5892)
1 parent 580494e commit 2925f56

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

specs/composition/common/schemas/components/CompositionBehavior.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,26 @@ compositionBehavior:
22
type: object
33
additionalProperties: false
44
description: An object containing either an `injection` or `multifeed` behavior schema, but not both.
5+
oneOf:
6+
- $ref: '#/compositionInjectionBehavior'
7+
- $ref: '#/compositionMultifeedBehavior'
8+
9+
compositionInjectionBehavior:
10+
type: object
11+
additionalProperties: false
12+
description: An object containing an `injection` behavior.
513
properties:
614
injection:
715
$ref: './injection/Behaviour.yml#/injection'
16+
required:
17+
- injection
18+
19+
compositionMultifeedBehavior:
20+
type: object
21+
additionalProperties: false
22+
description: An object containing a `multifeed` behavior.
23+
properties:
824
multifeed:
925
$ref: './multifeed/Behaviour.yml#/multifeed'
26+
required:
27+
- multifeed

0 commit comments

Comments
 (0)