Skip to content

Commit d7a4d4c

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 1c158c5 commit d7a4d4c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

client/src/commonMain/kotlin/com/algolia/client/model/recommend/TimeRange.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import kotlinx.serialization.json.*
1414
public data class TimeRange(
1515

1616
/** When the rule should start to be active, in Unix epoch time. */
17-
@SerialName(value = "from") val from: Long,
17+
@SerialName(value = "from") val from: Long? = null,
1818

1919
/** When the rule should stop to be active, in Unix epoch time. */
20-
@SerialName(value = "until") val until: Long,
20+
@SerialName(value = "until") val until: Long? = null,
2121
)

client/src/commonMain/kotlin/com/algolia/client/model/search/TimeRange.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import kotlinx.serialization.json.*
1414
public data class TimeRange(
1515

1616
/** When the rule should start to be active, in Unix epoch time. */
17-
@SerialName(value = "from") val from: Long,
17+
@SerialName(value = "from") val from: Long? = null,
1818

1919
/** When the rule should stop to be active, in Unix epoch time. */
20-
@SerialName(value = "until") val until: Long,
20+
@SerialName(value = "until") val until: Long? = null,
2121
)

0 commit comments

Comments
 (0)