Skip to content

Commit 77783fb

Browse files
algolia-botmillotp
andcommitted
fix(specs): add tags and scope to rules (generated)
algolia/api-clients-automation#5625 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent baea050 commit 77783fb

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ final class Rule {
1818
this.description,
1919
this.enabled,
2020
this.validity,
21+
this.tags,
22+
this.scope,
2123
});
2224

2325
/// Unique identifier of a rule object.
@@ -43,6 +45,12 @@ final class Rule {
4345
@JsonKey(name: r'validity')
4446
final List<TimeRange>? validity;
4547

48+
@JsonKey(name: r'tags')
49+
final List<String>? tags;
50+
51+
@JsonKey(name: r'scope')
52+
final String? scope;
53+
4654
@override
4755
bool operator ==(Object other) =>
4856
identical(this, other) ||
@@ -52,7 +60,9 @@ final class Rule {
5260
other.consequence == consequence &&
5361
other.description == description &&
5462
other.enabled == enabled &&
55-
other.validity == validity;
63+
other.validity == validity &&
64+
other.tags == tags &&
65+
other.scope == scope;
5666

5767
@override
5868
int get hashCode =>
@@ -61,7 +71,9 @@ final class Rule {
6171
consequence.hashCode +
6272
description.hashCode +
6373
enabled.hashCode +
64-
validity.hashCode;
74+
validity.hashCode +
75+
tags.hashCode +
76+
scope.hashCode;
6577

6678
factory Rule.fromJson(Map<String, dynamic> json) => _$RuleFromJson(json);
6779

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

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

0 commit comments

Comments
 (0)