diff options
author | provokateurin <kate@provokateurin.de> | 2023-12-30 17:42:10 +0100 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-01-10 09:10:08 +0100 |
commit | b7ce6d3b5391f324c654e9789e7ffb5e94c79c28 (patch) | |
tree | bf5ef95c2ce0bcd74b2908fd68170d327ddf7459 /apps/weather_status/lib | |
parent | 379d323801ed357bd64147a9a53f65683996d012 (diff) | |
download | nextcloud-server-b7ce6d3b5391f324c654e9789e7ffb5e94c79c28.tar.gz nextcloud-server-b7ce6d3b5391f324c654e9789e7ffb5e94c79c28.zip |
fix(weather_status): Fix forecast format in OpenAPI
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps/weather_status/lib')
-rw-r--r-- | apps/weather_status/lib/ResponseDefinitions.php | 36 |
1 files changed, 10 insertions, 26 deletions
diff --git a/apps/weather_status/lib/ResponseDefinitions.php b/apps/weather_status/lib/ResponseDefinitions.php index 27cc19dafb2..1224a394e33 100644 --- a/apps/weather_status/lib/ResponseDefinitions.php +++ b/apps/weather_status/lib/ResponseDefinitions.php @@ -27,25 +27,18 @@ declare(strict_types=1); namespace OCA\WeatherStatus; /** - * https://api.met.no/doc/ForecastJSON + * https://api.met.no/doc/ForecastJSON compact format according to https://docs.api.met.no/doc/locationforecast/datamodel * @psalm-type WeatherStatusForecast = array{ * time: string, * data: array{ * instant: array{ * details: array{ - * air_pressure_at_sea_level: float, - * air_temperature: float, - * cloud_area_fraction: float, - * cloud_area_fraction_high: float, - * cloud_area_fraction_low: float, - * cloud_area_fraction_medium: float, - * dew_point_temperature: float, - * fog_area_fraction: float, - * relative_humidity: float, - * ultraviolet_index_clear_sky: float, - * wind_from_direction: float, - * wind_speed: float, - * wind_speed_of_gust: float, + * air_pressure_at_sea_level: numeric, + * air_temperature: numeric, + * cloud_area_fraction: numeric, + * relative_humidity: numeric, + * wind_from_direction: numeric, + * wind_speed: numeric, * }, * }, * next_12_hours: array{ @@ -53,7 +46,7 @@ namespace OCA\WeatherStatus; * symbol_code: string, * }, * details: array{ - * probability_of_precipitation: float, + * precipitation_amount?: numeric, * }, * }, * next_1_hours: array{ @@ -61,11 +54,7 @@ namespace OCA\WeatherStatus; * symbol_code: string, * }, * details: array{ - * precipitation_amount: float, - * precipitation_amount_max: float, - * precipitation_amount_min: float, - * probability_of_precipitation: float, - * probability_of_thunder: float, + * precipitation_amount?: numeric, * }, * }, * next_6_hours: array{ @@ -73,12 +62,7 @@ namespace OCA\WeatherStatus; * symbol_code: string, * }, * details: array{ - * air_temperature_max: float, - * air_temperature_min: float, - * precipitation_amount: float, - * precipitation_amount_max: float, - * precipitation_amount_min: float, - * probability_of_precipitation: float, + * precipitation_amount?: numeric, * }, * }, * }, |