Skip to content

Commit 2fd3ce5

Browse files
committed
Fix default Entity implementations
1 parent 35d2471 commit 2fd3ce5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/CoreModel/Decoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Foundation
99

1010
// MARK: - Default Codable Implementation
1111

12-
extension Entity where Self: Decodable, Self.ID: Decodable, Self.ID: ObjectIDConvertible {
12+
extension Entity where Self: Decodable {
1313

1414
public init(
1515
from model: ModelData

Sources/CoreModel/Encoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
extension Entity where Self: Encodable, Self.ID: Encodable {
10+
extension Entity where Self: Encodable {
1111

1212
public func encode() throws -> ModelData {
1313
try encode(log: nil)

0 commit comments

Comments
 (0)