@@ -40,6 +40,7 @@ public enum DescriptionDefaults {
40
40
public static let ignorePropertyMigrationChecksOn = [ String] ( )
41
41
public static let httpMethod : EndpointPayloadTest . HTTPMethod = . get
42
42
public static let cacheSize : EntityCacheSize = . group( . medium)
43
+ public static let sendable = false
43
44
}
44
45
45
46
public extension Entity {
@@ -322,6 +323,7 @@ extension Entity: Codable {
322
323
case queryContext
323
324
case clientQueueName
324
325
case cacheSize
326
+ case sendable
325
327
}
326
328
327
329
public init ( from decoder: Decoder ) throws {
@@ -348,6 +350,7 @@ extension Entity: Codable {
348
350
queryContext = try container. decodeIfPresent ( Bool . self, forKey: . queryContext) ?? DescriptionDefaults . queryContext
349
351
clientQueueName = try container. decodeIfPresent ( String . self, forKey: . clientQueueName) ?? DescriptionDefaults . clientQueueName
350
352
cacheSize = try container. decodeIfPresent ( EntityCacheSize . self, forKey: . cacheSize) ?? DescriptionDefaults . cacheSize
353
+ senable = try container. decodeIfPresent ( Bool . self, forKey: . sendable) ?? DescriptionDefaults . sendable
351
354
352
355
let systemPropertiesSet = Set ( SystemPropertyName . allCases. map { $0. rawValue } )
353
356
for property in properties where systemPropertiesSet. contains ( property. name) {
@@ -754,6 +757,7 @@ extension Subtype: Codable {
754
757
case objc
755
758
case objcNoneCase
756
759
case platforms
760
+ case sendable
757
761
}
758
762
759
763
public init ( from decoder: Decoder ) throws {
@@ -762,6 +766,7 @@ extension Subtype: Codable {
762
766
name = try container. decode ( String . self, forKey: . name)
763
767
manualImplementations = Set ( try container. decodeIfPresent ( [ `Protocol` ] . self, forKey: . manualImplementations) ?? [ ] )
764
768
platforms = try container. decodeIfPresent ( Set< Platform> . self , forKey: . platforms) ?? DescriptionDefaults . platforms
769
+ sendable = try container. decodeIfPresent ( Bool . self, forKey: . sendable) ?? DescriptionDefaults . sendable
765
770
766
771
if let usedCases = try container. decodeIfPresent ( [ String ] . self, forKey: . cases) {
767
772
let unusedCases = try container. decodeIfPresent ( [ String ] . self, forKey: . unusedCases) ?? [ ]
0 commit comments