We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 661ff6e commit 921bcefCopy full SHA for 921bcef
1 file changed
Sources/JSONAPI/Resource/Id.swift
@@ -8,7 +8,7 @@
8
/// Any type that you would like to be encoded to and
9
/// decoded from JSON API ids should conform to this
10
/// protocol. Conformance for `String` is given.
11
-public protocol RawIdType: Codable, Equatable {}
+public protocol RawIdType: Codable, Hashable {}
12
13
/// If you would like to be able to create new
14
/// Entities with Ids backed by a RawIdType then
@@ -32,7 +32,7 @@ public struct Unidentified<EntityDescription: JSONAPI.EntityDescription>: Identi
32
public var description: String { return "Id(Unidentified)" }
33
}
34
35
-public protocol IdType: Identifier, CustomStringConvertible {
+public protocol IdType: Identifier, Hashable, CustomStringConvertible {
36
associatedtype RawType: RawIdType
37
38
var rawValue: RawType { get }
0 commit comments