Skip to content

Commit 3a600b7

Browse files
fix(specs): consequence is required when saving rules (generated)
algolia/api-clients-automation#4146 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent c1da0ca commit 3a600b7

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ final class Rule {
1414
const Rule({
1515
required this.objectID,
1616
this.conditions,
17-
this.consequence,
17+
required this.consequence,
1818
this.description,
1919
this.enabled,
2020
this.validity,
@@ -29,7 +29,7 @@ final class Rule {
2929
final List<Condition>? conditions;
3030

3131
@JsonKey(name: r'consequence')
32-
final Consequence? consequence;
32+
final Consequence consequence;
3333

3434
/// Description of the rule's purpose to help you distinguish between different rules.
3535
@JsonKey(name: r'description')

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

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

0 commit comments

Comments
 (0)