WeatherProvider / NationalWeatherService-Swift

A multi-platform Swift wrapper for the National Weather Service's weather.gov API.
10 stars 10 forks source link

NWS API changed to `updateTime` #17

Open roblabs opened 2 months ago

roblabs commented 2 months ago

The Forecast model has been changed and now uses updatedTime.

"On or about June 20, 2024 at 1400 Coordinated Universal Time (UTC), the National Weather Service API Application Programming Interface (Website) will be upgraded to version 1.13. With this upgrade comes the following user-impactful changes: A) Users who are using the “updated” parameter in their parsing of the data can use the “updateTime” field which shows the same time."


Tests all pass on Xcode 16, but requires this change:


Huge shoutout to https://app.quicktype.io/?l=swift, which allows the models to be automatically generated from JSON data passed.