Skip to content

Commit 8846e66

Browse files
algolia-botkai687millotp
committed
fix(specs): built-in ops accept also int (generated)
algolia/api-clients-automation#3450 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Kai Welke <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 8ec44fa commit 8846e66

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

packages/client_search/lib/src/model/built_in_operation.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ final class BuiltInOperation {
1717
@JsonKey(name: r'_operation')
1818
final BuiltInOperationType operation;
1919

20-
/// Value that corresponds to the operation, for example an `Increment` or `Decrement` step, or an `Add` or `Remove` value.
20+
/// One of types:
21+
/// - [String]
22+
/// - [int]
2123
@JsonKey(name: r'value')
22-
final String value;
24+
final dynamic value;
2325

2426
@override
2527
bool operator ==(Object other) =>

packages/client_search/lib/src/model/built_in_operation.g.dart

Lines changed: 15 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)