From b6c682ca1b9f69084d13b78aff49d5691dd4aae8 Mon Sep 17 00:00:00 2001 From: hyouuu Date: Wed, 12 Jun 2019 03:36:19 -0700 Subject: [PATCH 1/2] Make Sys.id & WeatherData.id also optional (#4) * Update Sys.swift * Update WeatherData.swift --- Sources/Model/Sys.swift | 2 +- Sources/Model/WeatherData.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Model/Sys.swift b/Sources/Model/Sys.swift index 16caacf..492f705 100644 --- a/Sources/Model/Sys.swift +++ b/Sources/Model/Sys.swift @@ -9,7 +9,7 @@ import Foundation public struct Sys: Codable { - public let id: Int + public let id: Int? public let type: Int? public let message: Double? public let country: String? diff --git a/Sources/Model/WeatherData.swift b/Sources/Model/WeatherData.swift index 1c3e8df..4b39603 100644 --- a/Sources/Model/WeatherData.swift +++ b/Sources/Model/WeatherData.swift @@ -9,7 +9,7 @@ import Foundation public struct WeatherData: Codable { - public let id: Int + public let id: Int? public let main: String? public let description: String? public let icon: String? From f159a01b8e1e45c7f176670bd6190a69fd5673c0 Mon Sep 17 00:00:00 2001 From: Marinel maxime Date: Wed, 12 Jun 2019 12:37:08 +0200 Subject: [PATCH 2/2] Update spec --- OpenWeatherKit.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenWeatherKit.podspec b/OpenWeatherKit.podspec index 76deba4..c02dc8f 100644 --- a/OpenWeatherKit.podspec +++ b/OpenWeatherKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "OpenWeatherKit" - s.version = "2.1.0" + s.version = "2.2.0" s.summary = "Use easly OpenWeatherMap with simple api" s.description = <<-DESC OpenWeatherKit is a simple library for OpenWeatherMap API