Skip to content

Commit 340d539

Browse files
algolia-botmillotp
andcommitted
fix(specs): allow one sided rule validity (generated)
algolia/api-clients-automation#5060 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 717adad commit 340d539

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

packages/client_recommend/lib/src/model/time_range.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ part 'time_range.g.dart';
99
final class TimeRange {
1010
/// Returns a new [TimeRange] instance.
1111
const TimeRange({
12-
required this.from,
13-
required this.until,
12+
this.from,
13+
this.until,
1414
});
1515

1616
/// When the rule should start to be active, in Unix epoch time.
1717
@JsonKey(name: r'from')
18-
final int from;
18+
final int? from;
1919

2020
/// When the rule should stop to be active, in Unix epoch time.
2121
@JsonKey(name: r'until')
22-
final int until;
22+
final int? until;
2323

2424
@override
2525
bool operator ==(Object other) =>

packages/client_recommend/lib/src/model/time_range.g.dart

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

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ part 'time_range.g.dart';
99
final class TimeRange {
1010
/// Returns a new [TimeRange] instance.
1111
const TimeRange({
12-
required this.from,
13-
required this.until,
12+
this.from,
13+
this.until,
1414
});
1515

1616
/// When the rule should start to be active, in Unix epoch time.
1717
@JsonKey(name: r'from')
18-
final int from;
18+
final int? from;
1919

2020
/// When the rule should stop to be active, in Unix epoch time.
2121
@JsonKey(name: r'until')
22-
final int until;
22+
final int? until;
2323

2424
@override
2525
bool operator ==(Object other) =>

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

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

0 commit comments

Comments
 (0)