Feature/changes and comparison queries#43
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds support for historical weather comparisons and weather changes to the OpenWeatherKit API models and mapping logic, while also broadening platform availability for several types and methods. The changes include new models and mapping extensions for these features, updates to the main weather data model, and adjustments throughout the codebase to ensure compatibility with older OS versions.
New Features:
APIHistoricalComparisonsandAPIWeatherChangesalong with their respective mapping extensions (APIHistoricalComparisons+Map.swift,APIWeatherChanges+Map.swift) to facilitate decoding and transformation of historical comparison and weather change data. [1] [2] [3] [4]APIWeathermodel to includehistoricalComparisonsandweatherChangesproperties, enabling these new features to be part of the decoded weather response.WeatherProxystruct to handleweatherChangesandhistoricalComparisons, including updates to its initializer, properties, andcombined(with:)method to merge these data sources. [1] [2] [3]Platform Availability Updates:
StatisticsQuery, mapping extensions for daily/hourly/monthly statistics and summaries, and network client fetch methods) from macOS 15/iOS 18/etc. to macOS 11/iOS 13/etc., increasing compatibility with older OS versions. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]Query and Networking Changes:
changesandcomparisonsto theQueryTypeenum, allowing these new data endpoints to be requested from the API.queriesin thefetchWeathermethod ofNetworkClientfrom variadic to an array, supporting more flexible and varied query requests.