Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ condition:
You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected.
You can use `filters` on its own or combine it with the `pattern` parameter.
example: 'genre:comedy'
sortBy:
type: string
description: |
Sort criteria that trigger the rule.
You can trigger composition rules based on the selected sorting strategy set by the parameter `sortBy`.
The rule will trigger if the value passed to `sortBy` matches the one defined in the condition.
example: 'price-low-to-high'

anchoring:
type: string
Expand Down
6 changes: 6 additions & 0 deletions tests/CTS/requests/composition/saveRules.json
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@
{
"anchoring": "contains",
"pattern": "harry"
},
{
"sortBy": "price-low-to-high"
}
],
"consequence": {
Expand Down Expand Up @@ -384,6 +387,9 @@
{
"anchoring": "contains",
"pattern": "harry"
},
{
"sortBy": "price-low-to-high"
}
],
"consequence": {
Expand Down