Skip to content

fix(specs): built-in ops accept also int #3450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 31, 2024
Merged
Changes from 1 commit
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
10 changes: 8 additions & 2 deletions specs/search/paths/objects/common/schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ builtInOperationType:
- IncrementSet
description: How to change the attribute.

builtInOperationValue:
oneOf:
- type: string
description: A string to append or remove for the `Add`, `Remove`, and `AddUnique` operations.
- type: integer
description: A number fo add, remove, or append, depending on the operation.

attribute:
type: string
description: Value of the attribute to update.
Expand All @@ -22,8 +29,7 @@ builtInOperation:
_operation:
$ref: '#/builtInOperationType'
value:
type: string
description: Value that corresponds to the operation, for example an `Increment` or `Decrement` step, or an `Add` or `Remove` value.
$ref: '#/builtInOperationValue'
required:
- _operation
- value
Expand Down
Loading