Skip to content

Commit aa54f43

Browse files
committed
fix(specs): built-in ops accept also int
1 parent dfb2aa7 commit aa54f43

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

specs/search/paths/objects/common/schemas.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ builtInOperationType:
1010
- IncrementSet
1111
description: How to change the attribute.
1212

13+
builtInOperationValue:
14+
oneOf:
15+
- type: string
16+
description: A string to append or remove for the `Add`, `Remove`, and `AddUnique` operations.
17+
- type: integer
18+
description: A number fo add, remove, or append, depending on the operation.
19+
1320
attribute:
1421
type: string
1522
description: Value of the attribute to update.
@@ -22,8 +29,7 @@ builtInOperation:
2229
_operation:
2330
$ref: '#/builtInOperationType'
2431
value:
25-
type: string
26-
description: Value that corresponds to the operation, for example an `Increment` or `Decrement` step, or an `Add` or `Remove` value.
32+
$ref: '#/builtInOperationValue'
2733
required:
2834
- _operation
2935
- value

0 commit comments

Comments
 (0)