diff --git a/ReactiveAPI.xcodeproj/project.pbxproj b/ReactiveAPI.xcodeproj/project.pbxproj index 5adff64..308a26a 100644 --- a/ReactiveAPI.xcodeproj/project.pbxproj +++ b/ReactiveAPI.xcodeproj/project.pbxproj @@ -795,7 +795,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.10.0; + MARKETING_VERSION = 1.10.1; PRODUCT_BUNDLE_IDENTIFIER = it.sky.ReactiveAPI; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; @@ -827,7 +827,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.10.0; + MARKETING_VERSION = 1.10.1; PRODUCT_BUNDLE_IDENTIFIER = it.sky.ReactiveAPI; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; @@ -856,7 +856,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.9.2; + MARKETING_VERSION = 1.10.1; PRODUCT_BUNDLE_IDENTIFIER = it.sky.ReactiveAPIExt; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; @@ -885,7 +885,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.9.2; + MARKETING_VERSION = 1.10.1; PRODUCT_BUNDLE_IDENTIFIER = it.sky.ReactiveAPIExt; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; diff --git a/ReactiveAPIExt/FailableCodables.swift b/ReactiveAPIExt/FailableCodables.swift index 7306732..9cce58e 100644 --- a/ReactiveAPIExt/FailableCodables.swift +++ b/ReactiveAPIExt/FailableCodables.swift @@ -1,7 +1,7 @@ import Foundation -public struct FailableCodable: Codable { - let base: Base? +public struct FailableCodable: Codable, Hashable { + public let base: Base? public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() @@ -14,10 +14,10 @@ public struct FailableCodable: Codable { } } -public struct FailableCodableArray: Codable { +public struct FailableCodableArray: Codable, Hashable { public let elements: [Element] - public init(elements: [Element]) { + init(elements: [Element]) { self.elements = elements } diff --git a/ReactiveAPIExtTests/FailableCodableArrayTests.swift b/ReactiveAPIExtTests/FailableCodableArrayTests.swift index 09bfd1c..c6cd412 100644 --- a/ReactiveAPIExtTests/FailableCodableArrayTests.swift +++ b/ReactiveAPIExtTests/FailableCodableArrayTests.swift @@ -2,11 +2,11 @@ import XCTest @testable import ReactiveAPIExt final class FailableCodableArrayTests: XCTestCase { - struct Root: Codable { + struct Root: Codable, Hashable { let items: FailableCodableArray } - struct SUT: Codable, Equatable { + struct SUT: Codable, Hashable { enum Foobar: String, Codable { case foo, bar }