Made forecast-period conditionCode optional
All checks were successful
ci/woodpecker/manual/build-image Pipeline was successful
All checks were successful
ci/woodpecker/manual/build-image Pipeline was successful
This commit is contained in:
@@ -71,9 +71,9 @@ type WeatherForecastPeriod struct {
|
||||
// Providers vary in whether they explicitly include this.
|
||||
IsDay *bool `json:"isDay,omitempty"`
|
||||
|
||||
// Canonical internal representation (provider-independent).
|
||||
// Like WeatherObservation, this is required; use an “unknown” WMOCode if unmappable.
|
||||
ConditionCode WMOCode `json:"conditionCode"`
|
||||
// Canonical internal representation (provider-independent), when applicable.
|
||||
// Some products (notably narrative) may not provide or imply a canonical WMO code.
|
||||
ConditionCode *WMOCode `json:"conditionCode,omitempty"`
|
||||
|
||||
// Human-facing narrative summary for this period.
|
||||
TextDescription string `json:"textDescription,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user