Skip to content

Commit f42790d

Browse files
committed
Add Sendable conformance
1 parent 3f8d7d6 commit f42790d

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

Sources/CoreModel/Attribute.swift

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

1010
/// CoreModel `Attribute`
11-
public struct Attribute: Property, Codable, Equatable, Hashable, Identifiable {
11+
public struct Attribute: Property, Codable, Equatable, Hashable, Identifiable, Sendable {
1212

1313
public let id: PropertyKey
1414

Sources/CoreModel/Entity.swift

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

1111
/// CoreModel Entity for Codable types
12-
public protocol Entity: Identifiable where CodingKeys: Hashable, Self.ID: ObjectIDConvertible {
12+
public protocol Entity: Identifiable, Sendable where CodingKeys: Hashable, Self.ID: ObjectIDConvertible {
1313

1414
static var entityName: EntityName { get }
1515

Sources/CoreModel/EntityDescription.swift

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

1010
/// Defines the model for an entity
11-
public struct EntityDescription: Codable, Identifiable, Hashable {
11+
public struct EntityDescription: Codable, Identifiable, Hashable, Sendable {
1212

1313
public let id: EntityName
1414

Sources/CoreModel/Model.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Foundation
1010
/**
1111
The model contains one or more `Entity` objects representing the entities in the schema.
1212
*/
13-
public struct Model: Hashable {
13+
public struct Model: Hashable, Sendable {
1414

1515
public var entities: [EntityDescription]
1616

Sources/CoreModel/Relationship.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99

1010
/// CoreModel `Relationship`
11-
public struct Relationship: Property, Codable, Equatable, Hashable, Identifiable {
11+
public struct Relationship: Property, Codable, Equatable, Hashable, Identifiable, Sendable {
1212

1313
public let id: PropertyKey
1414

@@ -31,7 +31,7 @@ public struct Relationship: Property, Codable, Equatable, Hashable, Identifiable
3131
}
3232

3333
/// CoreModel `Relationship` Type
34-
public enum RelationshipType: String, Codable, CaseIterable {
34+
public enum RelationshipType: String, Codable, CaseIterable, Sendable {
3535

3636
case toOne
3737
case toMany

0 commit comments

Comments
 (0)