Skip to content

Commit 5bca96b

Browse files
committed
fix(apix): nullable params
Coordinates must always be defined, but the other values may be null.
1 parent 37b09e2 commit 5bca96b

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.openmeteo.apix.common.query
22

33
interface QueryDaily : Query {
4-
val daily: Iterable<Options>
4+
val daily: Iterable<Options>?
55

66
interface Options
77
}

lib/src/main/kotlin/com/openmeteo/apix/common/query/QueryDateRange.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import kotlinx.serialization.SerialName
55

66
interface QueryDateRange : Query {
77
@SerialName("start_date")
8-
val startDate: Date
8+
val startDate: Date?
99

1010
@SerialName("end_date")
11-
val endDate: Date
11+
val endDate: Date?
1212

1313
@SerialName("past_days")
14-
val pastDays: Int
14+
val pastDays: Int?
1515
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.openmeteo.apix.common.query
22

33
interface QueryHourly : QueryTimeZone {
4-
val hourly: Iterable<Options>
4+
val hourly: Iterable<Options>?
55

66
interface Options
77
}

lib/src/main/kotlin/com/openmeteo/apix/common/query/QueryTimeZone.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import kotlinx.serialization.SerialName
55

66
interface QueryTimeZone : Query {
77
@SerialName("timezone")
8-
val timeZone: TimeZone
8+
val timeZone: TimeZone?
99
}

0 commit comments

Comments
 (0)