Skip to content

Commit

Permalink
fix(specs): consequence is required when saving rules (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4146

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Nov 26, 2024
1 parent c1da0ca commit 3a600b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/client_search/lib/src/model/rule.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class Rule {
const Rule({
required this.objectID,
this.conditions,
this.consequence,
required this.consequence,
this.description,
this.enabled,
this.validity,
Expand All @@ -29,7 +29,7 @@ final class Rule {
final List<Condition>? conditions;

@JsonKey(name: r'consequence')
final Consequence? consequence;
final Consequence consequence;

/// Description of the rule's purpose to help you distinguish between different rules.
@JsonKey(name: r'description')
Expand Down
10 changes: 3 additions & 7 deletions packages/client_search/lib/src/model/rule.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3a600b7

Please sign in to comment.