Skip to content

Commit e7dfb35

Browse files
authored
refactor(specs): group files for composition api (#5122)
1 parent 8c15554 commit e7dfb35

25 files changed

+1013
-1009
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
compositionObjectID:
2+
type: string
3+
example: 'my_composition_object_id'
4+
description: Composition unique identifier.
5+
6+
compositionRuleObjectID:
7+
type: string
8+
example: 'my_composition_rule_object_id'
9+
description: Composition rule unique identifier.

specs/composition-full/common/schemas/SearchParams.yml

Lines changed: 1 addition & 955 deletions
Large diffs are not rendered by default.

specs/composition-full/common/schemas/Composition.yml renamed to specs/composition-full/common/schemas/components/Composition.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ composition:
33
additionalProperties: false
44
properties:
55
objectID:
6-
$ref: '../../../common/parameters.yml#/objectID'
6+
$ref: '../Identifiers.yml#/compositionObjectID'
77
name:
88
type: string
99
description: Composition name.

specs/composition-full/common/schemas/CompositionBehavior.yml renamed to specs/composition-full/common/schemas/components/CompositionBehavior.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ compositionBehavior:
2727
description: Composition Main Index name.
2828
example: Products
2929
params:
30-
$ref: './SearchParams.yml#/mainInjectionQueryParameters'
30+
$ref: './Injection.yml#/mainInjectionQueryParameters'
3131
required:
3232
- index
3333
required:
@@ -68,7 +68,7 @@ injectedItem:
6868
description: Composition Main Index name.
6969
example: Products
7070
params:
71-
$ref: './SearchParams.yml#/injectedItemsQueryParameters'
71+
$ref: './Injection.yml#/injectedItemsQueryParameters'
7272
required:
7373
- index
7474
required:

specs/composition-full/common/schemas/CompositionRule.yml renamed to specs/composition-full/common/schemas/components/CompositionRule.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ compositionRule:
33
additionalProperties: false
44
properties:
55
objectID:
6-
$ref: '../../../common/parameters.yml#/objectID'
6+
$ref: '../Identifiers.yml#/compositionRuleObjectID'
77
conditions:
88
type: array
99
minItems: 0
@@ -33,7 +33,7 @@ compositionRule:
3333
type: array
3434
description: Time periods when the rule is active.
3535
items:
36-
$ref: '../../../common/schemas/Rule.yml#/timeRange'
36+
$ref: '../../../../common/schemas/Rule.yml#/timeRange'
3737
required:
3838
- objectID
3939
- conditions
@@ -55,7 +55,7 @@ condition:
5555
anchoring:
5656
$ref: '#/anchoring'
5757
context:
58-
$ref: '../../../common/schemas/Rule.yml#/context'
58+
$ref: '../../../../common/schemas/Rule.yml#/context'
5959
filters:
6060
type: string
6161
description: |
@@ -76,4 +76,4 @@ anchoring:
7676
- `contains`. The pattern must match anywhere in the query.
7777
7878
Empty queries are only allowed as patterns with `anchoring: is`.
79-
enum: [is, startsWith, endsWith, contains]
79+
enum: [is, startsWith, endsWith, contains]

0 commit comments

Comments
 (0)