diff --git a/internal/pkg/domain/weather_event.go b/internal/pkg/domain/weather_event.go index d1c2efe..cccc8d0 100644 --- a/internal/pkg/domain/weather_event.go +++ b/internal/pkg/domain/weather_event.go @@ -5,13 +5,13 @@ import "time" type Celsius float64 type Temperature struct { - Value Celsius + Value Celsius `json:"value"` } type WeatherEvent struct { - Date time.Time + Date time.Time `json:"date"` Condition WeatherCondition `json:"condition"` - Temperature *Temperature `json:"temperature"` + Temperature *Temperature `json:"temperature,omitempty"` High *Temperature `json:"high,omitempty"` Low *Temperature `json:"low,omitempty"` }