Skip to content

Commit b7129c0

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 db1329b commit b7129c0

File tree

2 files changed

+4
-28
lines changed

2 files changed

+4
-28
lines changed

algoliasearch/Models/Recommend/TimeRange.cs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,21 @@ public partial class TimeRange
1919
/// <summary>
2020
/// Initializes a new instance of the TimeRange class.
2121
/// </summary>
22-
[JsonConstructor]
2322
public TimeRange() { }
2423

25-
/// <summary>
26-
/// Initializes a new instance of the TimeRange class.
27-
/// </summary>
28-
/// <param name="from">When the rule should start to be active, in Unix epoch time. (required).</param>
29-
/// <param name="until">When the rule should stop to be active, in Unix epoch time. (required).</param>
30-
public TimeRange(long from, long until)
31-
{
32-
From = from;
33-
Until = until;
34-
}
35-
3624
/// <summary>
3725
/// When the rule should start to be active, in Unix epoch time.
3826
/// </summary>
3927
/// <value>When the rule should start to be active, in Unix epoch time.</value>
4028
[JsonPropertyName("from")]
41-
public long From { get; set; }
29+
public long? From { get; set; }
4230

4331
/// <summary>
4432
/// When the rule should stop to be active, in Unix epoch time.
4533
/// </summary>
4634
/// <value>When the rule should stop to be active, in Unix epoch time.</value>
4735
[JsonPropertyName("until")]
48-
public long Until { get; set; }
36+
public long? Until { get; set; }
4937

5038
/// <summary>
5139
/// Returns the string presentation of the object

algoliasearch/Models/Search/TimeRange.cs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,21 @@ public partial class TimeRange
1919
/// <summary>
2020
/// Initializes a new instance of the TimeRange class.
2121
/// </summary>
22-
[JsonConstructor]
2322
public TimeRange() { }
2423

25-
/// <summary>
26-
/// Initializes a new instance of the TimeRange class.
27-
/// </summary>
28-
/// <param name="from">When the rule should start to be active, in Unix epoch time. (required).</param>
29-
/// <param name="until">When the rule should stop to be active, in Unix epoch time. (required).</param>
30-
public TimeRange(long from, long until)
31-
{
32-
From = from;
33-
Until = until;
34-
}
35-
3624
/// <summary>
3725
/// When the rule should start to be active, in Unix epoch time.
3826
/// </summary>
3927
/// <value>When the rule should start to be active, in Unix epoch time.</value>
4028
[JsonPropertyName("from")]
41-
public long From { get; set; }
29+
public long? From { get; set; }
4230

4331
/// <summary>
4432
/// When the rule should stop to be active, in Unix epoch time.
4533
/// </summary>
4634
/// <value>When the rule should stop to be active, in Unix epoch time.</value>
4735
[JsonPropertyName("until")]
48-
public long Until { get; set; }
36+
public long? Until { get; set; }
4937

5038
/// <summary>
5139
/// Returns the string presentation of the object

0 commit comments

Comments
 (0)