Allow ManyResourceBody to use any PrimaryResource type

This commit is contained in:
Mathew Polzin
2018-11-26 18:57:34 -08:00
parent 8927938d56
commit b93580c900
+1 -1
View File
@@ -18,7 +18,7 @@ public struct SingleResourceBody<Entity: JSONAPI.PrimaryResource>: ResourceBody
}
}
public struct ManyResourceBody<Entity: JSONAPI.EntityType>: ResourceBody {
public struct ManyResourceBody<Entity: JSONAPI.PrimaryResource>: ResourceBody {
public let values: [Entity]
public init(entities: [Entity]) {